[英]Flutter - Executing build on android
我有一個問題,當我在我的項目上運行 flutter 時出現以下錯誤,我該如何解決:
錯誤:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'flutter_full_pdf_viewer'.
> Failed to find target with hash string 'android-28' in: /usr/local/share/android-sdk
* 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
Exception: The plugin flutter_full_pdf_viewer could not be built due to the issue
above.
嘗試清理您的項目,然后運行。
flutter clean
flutter pub cache repair
例外清楚地說明了一切
無法在 /usr/local/share/android-sdk 中找到帶有 hash 字符串“android-28”的目標
解決方案
打開 SDK 管理器並更新您的 Android SDK。
這是用於從官方 Android 站點啟動和執行預期命令的 CLI
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.