美文网首页
错误笔记

错误笔记

作者: 往事一块六毛八 | 来源:发表于2016-11-06 12:27 被阅读37次

    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

    相关文章

      网友评论

          本文标题:错误笔记

          本文链接:https://www.haomeiwen.com/subject/cmlbyttx.html