[英]'C:\Users\HP\AppData\Local\Android\sdk2\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1
[英]Process 'command 'C:\Users\Administrator\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe'' finished with non-zero exit value 1
所以每次嘗試在android studio上同步項目時都會遇到此錯誤
錯誤
處理'命令'C:\\ Users \\ Administrator \\ AppData \\ Local \\ Android \\ Sdk \\ build-tools \\ 25.0.2 \\ aapt.exe''完成,退出值非零
這是我的build.grable文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.newcoderplus.moneymachinecash"
minSdkVersion 16
targetSdkVersion 25
versionCode 2
versionName "2.0"
multiDexEnabled = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "2g"
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/MANIFEST.MF'
}
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
maven { url 'http://dl.bintray.com/amulyakhare/maven' }
maven { url "https://bitbucket.org/adscend/androidsdk/raw/master/" }
maven { url "https://dl.bintray.com/ironsource-mobile/android-sdk" }
maven { url "http://dl.bintray.com/ironsource-mobile/android-adapters" }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile project(':fragmentation_swipeback')
compile files('libs/AdxmiSdk_v6.0.0_2016-10-21.jar')
compile files('libs/NativeXMonetizationSDK_v5.5.9.jar')
compile files('libs/gson-2.3.1.jar')
compile files('libs/applovin-sdk-7.0.3.jar')
compile files('libs/SuperRewards-3.1b.jar')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:multidex:1.0.1'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.github.GrenderG:Toasty:1.1.3'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.afollestad.material-dialogs:core:0.9.4.1'
compile 'com.jude:easyrecyclerview:4.4.0'
compile 'com.jude:rollviewpager:1.4.6'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'jp.wasabeef:glide-transformations:2.0.2'
compile 'me.yokeyword:fragmentation:0.10.4'
compile 'com.github.medyo:android-about-page:1.2'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile group: 'com.backendless', name: 'backendless', version: '4.0.0-beta3'
compile 'com.google.android.gms:play-services-ads:10.2.1'
compile 'com.google.android.gms:play-services-base:10.2.1'
compile 'com.google.android.gms:play-services-location:10.2.1'
compile 'com.adcolony:sdk:3.1.2'
compile 'com.ironsource.adapters:admobadapter:3.0.2@jar'
compile 'com.ironsource.sdk:mediationsdk:6.5.3@jar'
compile project(':fragmentation_swipeback')
compile files('libs/AdxmiSdk_v6.0.0_2016-10-21.jar')
compile files('libs/NativeXMonetizationSDK_v5.5.9.jar')
compile files('libs/gson-2.3.1.jar')
compile files('libs/applovin-sdk-7.0.3.jar')
compile files('libs/SuperRewards-3.1b.jar')
testCompile 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.1'
}
}
}
}
apply plugin: 'com.google.gms.google-services'
我今天有最新的android studio版本
我的Android Studio無法正常工作。 我正在使用最新版本的Android Studio,但仍在gradle構建中給我錯誤。 關於如何解決此問題的任何想法?
我昨天有這個問題。 不知道該怎么辦。 所以用谷歌搜索 。 但是無論我遇到什么材料,都沒有確切的解決方案 ,似乎不同的事情在為不同的人工作。
這是我的觀察,可以節省您的時間。 1.請確認您是否在任何地方都弄亂了諸如字符串,變暗,顏色或布局xml文件之類的資源。
By mistake I created some prob. with my strings xml file along with layout file.
即使干凈的構建無法正常工作,每次重新構建/清理后,相同的錯誤也會不斷彈出。
You have to look closely, to identify the prob. with your code.
希望這可以幫助。
首先嘗試從“生成”菜單中清理並重建項目。
步驟1:前往Build-> Clean Project
步驟2:前往Build-> Rebuild Project
這應該可以解決您的問題。
否則,請嘗試從SDK管理器更新Android SDK構建工具,並修改build.gradle以使用最新的buildToolsVersion,即“ 27.0.3”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.