【问题标题】:Execution failed for task ':firebase_core:compileDebugJavaWithJavac'. > Could not find tools.jar任务 ':firebase_core:compileDebugJavaWithJavac' 执行失败。 > 找不到 tools.jar
【发布时间】: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.

如何解决?

【问题讨论】:

标签: android flutter macos


【解决方案1】:

转到 C:/users//.gradle/cache 删除所有内容然后再次运行。我希望这会有所帮助。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2020-03-07
  • 2018-12-23
  • 2021-08-07
  • 2023-03-15
  • 1970-01-01
  • 1970-01-01
  • 2018-08-20
  • 2016-05-02
相关资源
最近更新 更多