错误:任务执行失败':onyxenrollwizardsampleapp:processDebugResources'。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令' C:\ Android \ sdk \ build-tools \ 23.0.2 \ aapt.exe& #39;'完成非零退出值1
这是我的Gradle文件。请帮助我
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.onyx_enroll_wizard_sample_app"
minSdkVersion 14
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
maven {
url 'http://nexus.diamondfortress.com/nexus/content/repositories/releases'
}
maven {
url 'http://nexus.diamondfortress.com/nexus/content/repositories/snapshots'
}
}
dependencies {
compile 'com.android.support:support-v13:23.0.1'
compile 'com.dft.android:onyx-enroll-wizard:4.1.3'
}
答案 0 :(得分:6)
转到Build菜单 - Clear Project,Rebuild Project,它对我有用..
答案 1 :(得分:0)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1" //Just change this from 23.0.2 to 23.0.1
defaultConfig {
applicationId "com.example.onyx_enroll_wizard_sample_app"
minSdkVersion 14
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
lintOptions {
abortOnError false
}
}
repositories {
mavenCentral()
maven {
url 'http://nexus.diamondfortress.com/nexus/content/repositories/releases'
}
maven {
url 'http://nexus.diamondfortress.com/nexus/content/repositories/snapshots'
}
}
dependencies {
compile 'com.android.support:support-v13:23.0.1'
compile 'com.dft.android:onyx-enroll-wizard:4.1.3'
}
答案 2 :(得分:0)
这是由于AndroidManifest配置不正确造成的。例如,
package="com.mypackage.myname"
可能不正确,或者与 build.gradle 中的applicationId不匹配:
applicationId "com.mypackage.myname"
确保修复它们。
答案 3 :(得分:0)
有时它会在更新后发生。接下来的两个步骤可能有所帮助:
From" Build"菜单。
Build -> Clean Project
Build -> Rebuild Project
答案 4 :(得分:0)
检查是否安装了sdk版本23。
答案 5 :(得分:0)
我导致此错误,因为下面的代码
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
在AndroidMainfest.xml
文件中的,我删除此代码将正常工作。