我刚刚尝试重新构建项目。

huangapple go评论72阅读模式
英文:

i just tried to rebuild the project

问题

以下是代码部分的翻译:

  • dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) 外部依赖的AAR元数据(META-INF/com/android/build/gradle/aar-metadata.properties)
  • is greater than this module's compileSdkVersion (android-30). 大于此模块的compileSdkVersion(android-30)。
  • Dependency: androidx.window:window-java:1.0.0-beta04. 依赖项:androidx.window:window-java:1.0.0-beta04。
  • AAR metadata file: C:\Users\Admin\.gradle\caches\transforms-2\files-2.1\625039eaad011f884ddd84f857a44b7f\jetified-window-java-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties. AAR元数据文件:C:\Users\Admin.gradle\caches\transforms-2\files-2.1\625039eaad011f884ddd84f857a44b7f\jetified-window-java-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties。
  • A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction 在执行com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction期间发生故障。
  • The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) 在依赖的AAR元数据(META-INF/com/android/build/gradle/aar-metadata.properties)中指定的minCompileSdk(31)
  • is greater than this module's compileSdkVersion (android-30). 大于此模块的compileSdkVersion(android-30)。
  • Dependency: androidx.window:window:1.0.0-beta04. 依赖项:androidx.window:window:1.0.0-beta04。
  • AAR metadata file: C:\Users\Admin\.gradle\caches\transforms-2\files-2.1\a78fdf90e4c1f8464b19895cfb365f3f\jetified-window-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties. AAR元数据文件:C:\Users\Admin.gradle\caches\transforms-2\files-2.1\a78fdf90e4c1f8464b19895cfb365f3f\jetified-window-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties。

如果需要更多帮助,请使用与Gradle相关的选项来获取更多信息。

英文:
    dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
    is greater than this module's compileSdkVersion (android-30).
    Dependency: androidx.window:window-java:1.0.0-beta04.
    AAR metadata file: C:\Users\Admin\.gradle\caches\transforms-2\files-2.15039eaad011f884ddd84f857a44b7f\jetified-window-java-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties.

> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.window:window:1.0.0-beta04.
AAR metadata file: C:\Users\Admin.gradle\caches\transforms-2\files-2.1\a78fdf90e4c1f8464b19895cfb365f3f\jetified-window-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties.

  • 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 1s ┌─ Flutter Fix
> ────────────────────────────────────────────────────────────────────────┐
> │ [!] Your project requires a higher compileSdkVersion.
> │ │ Fix this issue by bumping the compileSdkVersion in
> G:\TOKU\android\app\build.gradle: │ │ android {
> │ │ compileSdkVersion 31
> │ │ }
> │
> └──────────────────────────────────────────────────────────────────────────────────────┘
> Exception: Gradle task assembleDebug failed with exit code 1 Exited
> (sigterm)

i deleted the project and open it again
then , everytime i try run the project this massage is appering

答案1

得分: 1

升级您的compileSdkVersion到33。

英文:

Upgrade your compileSdkVersion 33.

huangapple
  • 本文由 发表于 2023年3月31日 18:00:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/75897203.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定