hanxu317317 / city_pickers

flutter ios city_pickers
MIT License
374 stars 195 forks source link

The example can't build apk in flutter 1.12.13 + hotfix.6 #76

Open aboutmydreams opened 4 years ago

aboutmydreams commented 4 years ago

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.

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

TreeLiked commented 4 years ago

I met the same question

hanxu317317 commented 4 years ago

我正在处理这个问题.

hanxu317317 commented 4 years ago

问题已经解决. 亲可以试一下.

TreeLiked commented 4 years ago

OK了哦

ismanong commented 4 years ago

没有迁移androidX就迁移啊,这是什么问题,现在很多插件都是androidx,与时俱进呗,

hanxu317317 commented 4 years ago

@ismanong 我会尽快的. 年底事情太多要做了

ismanong commented 4 years ago

@hanxu317317 我不是说你 不好意思 我表达不好,我意思提这种问题不太好,因为我用的时候没问题,如果打包提示更新androidX,开发者应该第一时间了解androidX并尝试去更新,而且更新androidx并不是什么坏事,但如果提问题到这里,还得麻烦作者去兼容什么的,这个兼容可要可不要。反而冗余,哈哈。 另外还是感谢作者,再贫瘠的pub库里做了这么一个稳定的省市区选择器插件。目前没出过问题,已经用了大半年了

Sansuihe commented 4 years ago

FAILURE: Build failed with an exception.

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 完美报错

newljs commented 4 years ago

失败:构建失败,发生异常。

  • 出了什么问题: 配置根项目“ 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

laorencel commented 4 years ago

我也遇到这样的问题

BUILD FAILED in 0s

Sansuihe commented 4 years ago

希望作者早点解决一下吧 我只能flutter SDK 版本回退才能使用这个插件

k-dylan commented 4 years ago

我是在添加 image_picker插件后出现的这个问题,照着这个处理,暂时没有那个问题了: https://github.com/flutter/flutter/issues/27254#issuecomment-458689343

954545647 commented 4 years ago

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
lanxbibei commented 4 years ago

问题没有解决 city_pickers: ^0.1.30

lanxbibei commented 4 years ago

问题没有解决 city_pickers: ^0.1.30

jethroHuang commented 4 years ago

我也遇到了这个问题

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.