【发布时间】:2022-05-22 17:47:23
【问题描述】:
我曾尝试使用 Flutter 进行开发,但是当我使用 android 模拟器时出现此错误。
Execution failed for task ':firebase_core:compileDebugJavaWithJavac'. Could not find tools.jar
我尝试添加
android.useAndroidX=true android.enableJetifier=true
或
org.gradle.java.home=/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
在 gradle.properties 中,但这是同样的问题。
当我指挥颤振医生时,我得到了这个信息。
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-x64, locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[!] Android Studio
✗ Android Studio not found at /path/to/android/studio/Contents
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
! Error: S iPhone is busy: Fetching debug symbols for S iPhone. Xcode will
continue when S iPhone is finished. (code -10)
! Doctor found issues in 1 category.
如何解决?
【问题讨论】: