1:Error:Execution failed for task ':app:transformClassesWithDexForRelease'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_17\bin\java.exe'' finished with non-zero exit value 3
【結局方案】
apply plugin: 'com.android.application' android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.name.app"
minSdkVersion 17
targetSdkVersion 23
multiDexEnabled true
} dexOptions {
javaMaxHeapSize "4g"
} buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
debuggable true
jniDebuggable
true
renderscriptDebuggable true
}
}
}
2:Error:Cause:org/gradle/api/publication/maven/internal/DefaultMavenFactory Android
首先,要看一下自己的項目使用 “Gradle版本”
接著要看一下項目根目錄的build.gradle文件中的“dependencies”的 classpath 'com.github.dcendents:[Android](http://lib.csdn.net/base/15)-maven-gradle-plugin:1.3'
是1.3還是1.2?
1.2和1.3是很大區(qū)別的光涂。
1.3的項目名是“[android-maven-gradle-plugin/](http://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/)”
1.2的項目名是"[android-maven-plugin](http://repo1.maven.org/maven2/com/github/dcendents/android-maven-plugin/)"
所以別傻乎乎的眷射,以為改了一個數(shù)字就能用旭旭。
給你這條link:http://repo1.maven.org/maven2/com/github/dcendents/
gradle2.10版本的要用classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
2.2.1版本的用 classpath**'com.github.dcendents:android-maven-plugin:1.2'**
3:Error:Execution failed for task ':app:mergeDebugResources'.
2648920-b77c2fb93731c603.png
4:當我把studio升級到2.2以后慢显,發(fā)現(xiàn)如下問題
Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.
解決方法是:發(fā)現(xiàn)是關于maven倉庫的錯誤
[解決方案]更新maven-plugin的依賴 classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
5 studio 錯誤修改http://blog.csdn.net/lxk_1993/article/details/50511172
6 Error:A problem was found with the configuration of task ':app:packageDebug' 問題解決
Manifest合并失敗
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
(Manifest合并失敗)
3.2studio導入問題
Android Error:Execution failed for task':app:compileDebugJavaWithJavac'和':app:transformJackWithJackForDebug'.