小编kit*_*fer的帖子

Android Studio 错误:“检查 AAR 元数据时发现 6 个问题”

这是一个 Gradle 错误,当我运行空的“hello world”(从空 Activity 模板构建)而没有任何添加的代码时出现此错误,以下是错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 6 issues were found when checking AAR metadata:
 

  1.  Dependency 'androidx.appcompat:appcompat-resources:1.6.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.

      :app is currently compiled against android-32.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 7.2.0 is 32.

      Recommended …
Run Code Online (Sandbox Code Playgroud)

java xml android gradle android-studio

7
推荐指数
2
解决办法
1万
查看次数

Firebase 错误 - 无法计算 Android Studio 中属性“extraGeneeratedResDir”的值

我正在 Android Studio 中使用 Firebase 数据库运行一个简单的应用程序 - 已在 Firebase 仪表板上设置项目并连接到我的 Android Studio 应用程序。构建项目时我收到此错误:

Execution failed for task ':app:mapDebugSourceSetPaths'.
> Error while evaluating property 'extraGeneratedResDir' of task ':app:mapDebugSourceSetPaths'
   > Failed to calculate the value of task ':app:mapDebugSourceSetPaths' property 'extraGeneratedResDir'.
      > Querying the mapped value of provider(java.util.Set) before task ':app:processDebugGoogleServices' has completed is not supported
Run Code Online (Sandbox Code Playgroud)

这是堆栈跟踪:

Executing tasks: [:app:assembleDebug] in project D:\work\Android Studio\FirebaseExample2

    Download https://plugins.gradle.org/m2/com/gradle/gradle-enterprise-gradle-plugin/3.10.2/gradle-enterprise-gradle-plugin-3.10.2.jar, took 1 s 705 ms (2.21 MB)
    > Task :app:createDebugVariantModel
    > Task :app:preBuild UP-TO-DATE
    > Task :app:preDebugBuild …
Run Code Online (Sandbox Code Playgroud)

java android firebase android-studio

3
推荐指数
1
解决办法
1581
查看次数

标签 统计

android ×2

android-studio ×2

java ×2

firebase ×1

gradle ×1

xml ×1