【发布时间】:2021-05-18 18:08:09
【问题描述】:
我是 Flutter 开发的新手,基本上我是一名 ios 开发人员,
虽然我正在为个人资料更新屏幕做一个扑朔迷离的新项目 我为依赖项添加了一个相机插件,以使相机第三方在 ios android 中同时使用。所以当它使用 ios 应用程序运行顺利时没有显示错误但 android 应用程序显示一些错误如下
FAILURE: Build failed with an exception.
* What went wrong:
Task 'assembleAarRelease' not found in root project 'camera'.
* Try:
Run gradlew tasks to get a list of available tasks. 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 1s
Exception: The plugin camera could not be built due to the issue above.
谁能告诉这个问题的解决方案是什么?
【问题讨论】:
-
你想在项目中使用哪个插件?
-
能否提供一个你正在使用的插件,也可以在真机上试试,也可能是模拟器/模拟器造成的。
-
但 ios 应用程序依赖“相机”工作正常。在 ios 模拟器中加载时没有问题 android 模拟器的唯一问题
-
@AraKurghinyan “相机”
-
你可以运行
flutter clean,然后运行pub get,然后尝试通过flutter run --release运行android安装