-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#3955Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.dependency: androidAndroid team may need to help usAndroid team may need to help usp: in_app_purchasePlugin for in-app purchasePlugin for in-app purchasep: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Android
Description
The ./gradlew test in in_app_purchase/example fails because it uses a lower version of gradle and gradle tool than in_app_purchase_android: See https://cirrus-ci.com/task/4784259358523392?logs=main#L6537, failed because BuildConfig.LIBRARY_PACKAGE_NAME is not available in a lower gradle version.
Steps to reproduce:
- Get ready with a clean in_app_purchase/example project,
git clean -dfxif necessary. - cd to in_app_purchase/example/android/build.gradle, change 'com.android.tools.build:gradle:4.1.0' to `'com.android.tools.build:gradle:3.3.0'
- cd to in_app_purchase/example/android/gradle/gradle-wrapper.properties, change
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.ziptodistributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip - cd to in_app_purchase/example/, run
flutter build apk - cd to in_app_purchase/example/android, run
./gradlew test, see the error
A workaround is provided to temporarily fix the tree, however, the ./gradlew test in in_app_purchase should not build the test targets in in_app_purchase_android. If this is the default behavior of the gradle tool, then all the flutter app that depends on in_app_purchase_android and use a lower gradle version will fail when running gradlew test
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.dependency: androidAndroid team may need to help usAndroid team may need to help usp: in_app_purchasePlugin for in-app purchasePlugin for in-app purchasep: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on Android