颤振:迁移到AndroidX后,无法在中生成发布apk,相机插件出错
在将我的应用程序迁移到AndroidX之后,我能够在我的颤振项目中生成并运行调试apk,但是当我尝试构建发布apk时,我得到了以下错误颤振:迁移到AndroidX后,无法在中生成发布apk,相机插件出错,android,flutter,apk,release,androidx,Android,Flutter,Apk,Release,Androidx,在将我的应用程序迁移到AndroidX之后,我能够在我的颤振项目中生成并运行调试apk,但是当我尝试构建发布apk时,我得到了以下错误 Running Gradle task 'assembleRelease'... Running Gradle task 'assembleRelease'... Done
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 293.0s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin camera...
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 0.8s
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'camera'.
> 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
The plugin camera could not be built due to the issue above.
颤振版本:v1.12.13+修补程序
颤振通道:稳定
编译SDK版本:28
Min SDK版本:21
目标SDK版本:28。似乎您的SDK位置错误!尝试删除android/local.properties,然后运行
flatterclean&&flatterpackages-get
看起来你的SDK位置不对!尝试删除android/local.properties,然后运行flatterclean&&flatterpackagesget