gpt4 book ai didi

Android/Sdk/build-tools/22.0.1/aapt'' 以非零退出值 1 完成

转载 作者:行者123 更新时间:2023-11-30 01:57:53 24 4
gpt4 key购买 nike

我在我的项目中遇到了这个问题,我已经尝试了这篇文章中的解决方案: Post 1 Post 2 ,但对我不起作用。项目在1.2版本的Android Studio上完美运行,升级到1.3版本后出现问题

这是我的build.gradle文件

buildscript {
repositories {
mavenCentral()
}
dependencies {

classpath 'com.android.tools.build:gradle:1.3.0'

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.6'
}
}

repositories {
mavenCentral()
mavenLocal()
}

apply plugin: 'com.android.application'
apply plugin: 'android-apt'

android {
compileSdkVersion 22
buildToolsVersion '22.0.1'

defaultConfig {
applicationId "br.appname"
minSdkVersion 11
targetSdkVersion 22
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
}

apt {
arguments {
resourcePackageName android.defaultConfig.applicationId
androidManifestFile variant.outputs[0].processResources.manifestFile
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

apt "org.androidannotations:androidannotations:3.3.2"

compile 'org.androidannotations:androidannotations-api:3.3.2'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.android:support-v4:r7'
compile 'com.loopj.android:android-async-http:1.4.8'
compile 'commons-lang:commons-lang:2.6'
compile 'com.crittercism:crittercism-android-agent:5.2.0'
compile 'com.j256.ormlite:ormlite-android:4.48'
compile 'com.j256.ormlite:ormlite-core:4.48'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'

compile files('libs/android-smart-image-view-1.0.0.jar')
compile files('libs/libGoogleAnalyticsServices.jar')

compile 'com.android.support:support-v4:21.0.0'
compile "com.android.support:appcompat-v7:21.0.0"


}

完整的错误是这样的:

Error:Execution failed for task ':appName:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/user/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

在 gradle 控制台中我有这个错误:

:appName:processDebugResources

AGPBI: {"kind":"simple","text":"/home/user/Desktop/projects/UMobile/trunk/uniforMobile/build/intermediates/res/merged/debug/mipmap-xhdpi-v4/ic_launcher.png: error: Duplicate file.","sources":[{}]}

AGPBI: {"kind":"simple","text":"/home/user/Desktop/projects/UMobile/trunk/uniforMobile/build/intermediates/res/merged/debug/mipmap-xhdpi/ic_launcher.png: Original is here. The version qualifier may be implied.","sources":[{}]}

我该如何解决这个问题?

最佳答案

问题解决了!

我只是在最后用 -v4 重命名了 mipmap 文件夹。

关于Android/Sdk/build-tools/22.0.1/aapt'' 以非零退出值 1 完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31943981/

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