gpt4 book ai didi

android - 在新项目中以非零退出值 1 结束

转载 作者:搜寻专家 更新时间:2023-11-01 08:41:29 25 4
gpt4 key购买 nike

我只是在 64 位系统上设置了我所有的 android 设置,其中安装了 API 级别 21 和 19,每次我尝试创建一个新项目时,无论是 API 21 还是 19 都失败,非零退出值

Error:Gradle: Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1



C:\Users\rahul\IdeaProjects\MyApplication\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v21\values-v21.xml
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.

最佳答案

您正在使用 appcompat v21。

您必须使用 api21 编译您的项目。
在您的 build.gradle 中更改:

android {
compileSdkVersion 21
//...
}

如果要切换到 appcompat 23,则必须使用 API23。

android {
compileSdkVersion 23
//...
}

关于android - 在新项目中以非零退出值 1 结束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32158388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com