The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app

点点圈 提交于 2019-12-05 07:46:51

add this in android/gradle.properties:

android.useAndroidX=true
android.enableJetifier=true

Ref: https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility

I had the same issue, after checking these 2 links: https://flutter.dev/docs/deployment/android

and proguard. The only thing that worked for me was removing minifyEnabled true fom build.graddle.

Hope it help some one.

It seems you are using a Flutter dependency which is not compatible to Androidx, Try to comment the recent dependency and re-run it, If it's work, Try to use the dependency that's compatible with Androidx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!