Flutter: не удается сгенерировать релиз apk в после миграции на AndroidX, появляется ошибка для плагина камеры - PullRequest
1 голос
/ 02 марта 2020

После переноса моего приложения в 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.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...