Showing "Finished with error: Gradle task assembleDebug failed with exit code 1". Was running Flutter in Android Studio.What should I do?
Showing "Finished with error: Gradle task assembleDebug failed with exit code 1". Was running Flutter in Android Studio.What should I do?
这已显示在控制台中
dyld:库未加载:@rpath/libswiftCore.dylib
参考自:/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
原因:找不到图片
git:错误:无法定位xcodebuild,请确保Xcode文件夹的路径设置正确!
git:错误:您可以使用 /usr/bin/xcode-select -switch 设置 Xcode 文件夹的路径
在调试模式下在 vivo 1951 上启动 lib/main.dart...
运行宁Gradle任务'assembleDebug'...
在 /Users/macbook/Library/Android/sdk/licenses 中检查软件包 Android SDK Build-Tools 28.0.3 的许可证
警告:不接受包 Android SDK Build-Tools 28.0.3 的许可证。
在 /Users/macbook/Library/Android/sdk/licenses 中检查软件包 Android SDK Platform 28 的许可证
警告:未接受包 Android SDK 平台 28 的许可证。
失败:构建失败,出现异常。
出了什么问题:
无法确定任务“:app:compileDebugJavaWithJavac”的依赖项。
Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;28.0.3 Android SDK Build-Tools 28.0.3
platforms;android-28 Android SDK Platform 28
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
使用 Android SDK:/Users/macbook/Library/Android/sdk
尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
获取更多帮助
2 秒内构建失败
已完成并出现错误:Gradle 任务 assembleDebug 失败,退出代码为 1
有人请帮助我。
运行 flutter doctor --android-licenses in console 并接受 android licenses
然后运行flutter doctor确保一切正常
这已显示在控制台中
dyld:库未加载:@rpath/libswiftCore.dylib 参考自:/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild 原因:找不到图片 git:错误:无法定位xcodebuild,请确保Xcode文件夹的路径设置正确! git:错误:您可以使用 /usr/bin/xcode-select -switch 设置 Xcode 文件夹的路径 在调试模式下在 vivo 1951 上启动 lib/main.dart... 运行宁Gradle任务'assembleDebug'... 在 /Users/macbook/Library/Android/sdk/licenses 中检查软件包 Android SDK Build-Tools 28.0.3 的许可证 警告:不接受包 Android SDK Build-Tools 28.0.3 的许可证。 在 /Users/macbook/Library/Android/sdk/licenses 中检查软件包 Android SDK Platform 28 的许可证 警告:未接受包 Android SDK 平台 28 的许可证。
失败:构建失败,出现异常。
出了什么问题: 无法确定任务“:app:compileDebugJavaWithJavac”的依赖项。
Failed to install the following Android SDK packages as some licences have not been accepted. build-tools;28.0.3 Android SDK Build-Tools 28.0.3 platforms;android-28 Android SDK Platform 28 To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager. Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
使用 Android SDK:/Users/macbook/Library/Android/sdk
尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
- 获取更多帮助
2 秒内构建失败 已完成并出现错误:Gradle 任务 assembleDebug 失败,退出代码为 1
有人请帮助我。
运行 flutter doctor --android-licenses in console 并接受 android licenses 然后运行flutter doctor确保一切正常