【发布时间】:2020-10-04 09:05:29
【问题描述】:
我运行 flutter build apk --release 一切正常我运行调试 apk 并且它工作但我在运行发布 apk 时遇到了这个问题
Running Gradle task 'assembleRelease'... 386,9s (!)
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 audioplayers...
Running Gradle task 'assembleAarRelease'... 6,2s
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'audioplayers'.
> 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 5s
The plugin audioplayers could not be built due to the issue above.
Process finished with exit code 1
尽管我的项目使用了AndroidX,因为错误提示我未使用它的包有问题,但在我删除所有包之前,问题总是伴随着另一个问题出现
我需要一些帮助
【问题讨论】: