错误笔记

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是很大区别的。
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/)"
所以别傻乎乎的,以为改了一个数字就能用。
给你这条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以后,发现如下问题

Error:No service of type Factory<LoggingManagerInternal> available in ProjectScopeServices.

解决方法是:发现是关于maven仓库的错误
[解决方案]更新maven-plugin的依赖 classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

http://www.07net01.com/program/2016/09/1674161.html

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合并失败)

http://blog.csdn.net/morrowqin/article/details/52452138

http://blog.csdn.net/liu12921/article/details/53637174

3.2studio导入问题

Android Error:Execution failed for task':app:compileDebugJavaWithJavac'和':app:transformJackWithJackForDebug'.

https://juejin.im/post/5af5516351882542836e14f6

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 175,776评论 25 709
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,680评论 19 139
  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,717评论 2 45
  • 题记:真真切切的一个人物,无论在电视剧还是书本里,他都是让人觉得最贴近生活的人,高傲过,丧失过,野心过,精彩过,堕...
    灯歆先生阅读 3,989评论 0 3
  • 面对信仰,我们一般会提出三个问题: 1、这个世界究竟有没有神?2、世界有上那么多神,谁才是真神?3、神是怎样的一位...
    服从阁下的仆人阅读 20,096评论 0 1