gpt4 book ai didi

android - 如何修复 22.0.1\aapt.exe'' 以非零退出值 1 完成

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:23:25 26 4
gpt4 key购买 nike

我在android studio中编码然后会出现这个错误:

cannot resolve symbol 'R'

Error:Execution failed for task ':demo:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android Development\sdk\android-sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

这是我的 Gradle :

apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion '22.0.1'

defaultConfig {
applicationId "br.liveo.ndrawer"
minSdkVersion 21
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}

dependencies {
compile project(':library')
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:design:22.2.0'
compile 'com.android.support:appcompat-v7:22.2.0'
}

我使用的是 Android Studio V 1.0,所有 API 22 和 API 21 以及 SDK Manager 的工具和附加功能都已更新。

这个选项不起作用:

File/ Invalidate Cashes/Restart

Build/ Rebuild Project

Build/ Clean Project

我应该知道什么?

发送

最佳答案

我解决了我的问题:

1) 检查所有 XML 文件中给定的未知 src。 ImageView 或 ImageButton 或任何想法等:

android:src="@drawable/cards"

然后

Build/ Rebuild Project

Build/ Clean Project

File/ Invalidate Cashes/Restart

您的问题肯定会 100% 解决 :D

关于android - 如何修复 22.0.1\aapt.exe'' 以非零退出值 1 完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30899963/

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