После переноса моего приложения в AndroidX я могу сгенерировать и запустить debug apk в своем проекте flutter, но когда я пытаюсь создать релиз apk, я получаю следующую ошибку.
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.
Версия Flutter : v1.12.13 + hotfix.5.
Канал флаттера: стабильный.
Версия компиляции SDK: 28.
Мин версия SDK: 21.
Версия целевого SDK: 28.