city_pickers
city_pickers copied to clipboard
The example can't build apk in flutter 1.12.13 + hotfix.6
example git:(master) ✗ flutter build apk --target-platform android-arm,android-arm64 --split-per-abi [!] Your app isn't using AndroidX. To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:processReleaseResources'.
Android resource linking failed
Output: /Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:186: error: resource android:attr/fontVariationSettings not found. /Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/incremental/mergeReleaseResources/merged.dir/values/values.xml:187: error: resource android:attr/ttcIndex not found. error: failed linking references.
Command: /Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/067c550bab45744a730d55ac6d07bb79/aapt2-3.2.1-4818971-osx/aapt2 link -I
/Users/dengwenhao/Library/Android/sdk/platforms/android-27/android.jar
--manifest\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/merged_manifests/release/processReleaseManifest/merged/armeabi-v7a/AndroidManifest.xml
-o\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/processed_res/release/processReleaseResources/out/resources-armeabi-v7aRelease.ap_
-R\
@/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/incremental/processReleaseResources/resources-list-for-resources-armeabi-v7aRelease.ap_.txt
--auto-add-overlay\
--java\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/generated/not_namespaced_r_class_sources/release/processReleaseResources/r
--proguard\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/proguard-rules/release/aapt_rules.txt
--custom-package\
com.example.citypickersexample\
-0\
apk\
--output-text-symbols\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/symbols/release/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: /Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/d1e31fc57430ff614027e4e63f629ecb/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/d1e31fc57430ff614027e4e63f629ecb/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: /Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/067c550bab45744a730d55ac6d07bb79/aapt2-3.2.1-4818971-osx/aapt2 link -I
/Users/dengwenhao/Library/Android/sdk/platforms/android-27/android.jar
--manifest\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/merged_manifests/release/processReleaseManifest/merged/armeabi-v7a/AndroidManifest.xml
-o\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/processed_res/release/processReleaseResources/out/resources-armeabi-v7aRelease.ap_
-R\
@/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/incremental/processReleaseResources/resources-list-for-resources-armeabi-v7aRelease.ap_.txt
--auto-add-overlay\
--java\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/generated/not_namespaced_r_class_sources/release/processReleaseResources/r
--proguard\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/proguard-rules/release/aapt_rules.txt
--custom-package\
com.example.citypickersexample\
-0\
apk\
--output-text-symbols\
/Users/dengwenhao/coding/learn/city_pickers/example/build/app/intermediates/symbols/release/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 35s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 37.1s
AndroidX incompatibilities may have caused this build to fail. Please migrate your app to
AndroidX. See https://goo.gl/CP92wY.
Gradle task assembleRelease failed with exit code 1
When the AndroidX used, it is also failed
I met the same question
我正在处理这个问题.
问题已经解决. 亲可以试一下.
OK了哦
没有迁移androidX就迁移啊,这是什么问题,现在很多插件都是androidx,与时俱进呗,
@ismanong 我会尽快的. 年底事情太多要做了
@hanxu317317 我不是说你 不好意思 我表达不好,我意思提这种问题不太好,因为我用的时候没问题,如果打包提示更新androidX,开发者应该第一时间了解androidX并尝试去更新,而且更新androidx并不是什么坏事,但如果提问题到这里,还得麻烦作者去兼容什么的,这个兼容可要可不要。反而冗余,哈哈。 另外还是感谢作者,再贫瘠的pub库里做了这么一个稳定的省市区选择器插件。目前没出过问题,已经用了大半年了
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'city_pickers'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 1s
Finished with error: The plugin city_pickers could not be built due to the issue above. flutterv1.12.13+hotfix.5 完美报错
失败:构建失败,发生异常。
- 出了什么问题: 配置根项目“ city_pickers”时发生问题。
找不到SDK位置。使用local.properties文件中的sdk.dir或使用ANDROID_HOME环境变量定义位置。
- 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。与--scan一起运行以获取完整的见解。
- 在https://help.gradle.org上获得更多帮助
1秒内失败
错误完成:由于上述问题,无法构建插件city_pickers。 flutterv1.12.13 + hotfix.5完美报错
I met the same question
我也遇到这样的问题
- What went wrong: A problem occurred configuring root project 'city_pickers'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 0s
希望作者早点解决一下吧 我只能flutter SDK 版本回退才能使用这个插件
我是在添加 image_picker插件后出现的这个问题,照着这个处理,暂时没有那个问题了: https://github.com/flutter/flutter/issues/27254#issuecomment-458689343
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'city_pickers'.
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 1s
Finished with error: The plugin city_pickers could not be built due to the issue above. flutterv1.12.13+hotfix.5 完美报错
The same version with you. I try to update my project to be Androidx, and problem was solved! modify file android/gradle.properties
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
问题没有解决 city_pickers: ^0.1.30
问题没有解决 city_pickers: ^0.1.30
我也遇到了这个问题
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.