org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithDexForDebug'

前端 未结 22 2207
暗喜
暗喜 2020-12-02 21:54

Due to 65K error in my project I need it to migrate to Android Studio . While running

./gradlew assembleDebug

I am

相关标签:
22条回答
  • 2020-12-02 22:36

    Check build.gradle(Module: Android) fixed problem for me.

    Modify it to workable version.

    android {
        buildToolsVersion '23.0.1'
    }
    
    0 讨论(0)
  • 2020-12-02 22:36

    Try to move:

    apply plugin: 'com.google.gms.google-services'
    

    just below:

    apply plugin: 'com.android.application'
    

    In your module Gradle file, then make sure all Google service's have the version 9.0.0.

    Make sure that only this build tools is used:

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

    Make sure in gradle-wrapper.properties:

    distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
    

    After all above is correct, then make menu File -> Invalidate caches and restart.

    0 讨论(0)
  • 2020-12-02 22:36

    for me it was just a little compile error and sadly Android Studio doesn't show it . please search manually . trying to enable work offline and clean&rebuild may help you more

    0 讨论(0)
  • 2020-12-02 22:37

    Its Just Simple the Compiler Did not accept the last changes you've made so go to the last file that you've made a change It will show the error just change it and recompile.

    0 讨论(0)
  • 2020-12-02 22:37

    Apply in ProGuard-rules

    -ignorewarnings
    
    0 讨论(0)
  • 2020-12-02 22:39

    For me the only thing that works is to add to repositories

    maven {
            url "https://maven.google.com"
        }
    

    It should look like this:

    allprojects {
        repositories {
            jcenter()
            maven {
                url "https://maven.google.com"
            }
        }
    
    0 讨论(0)
提交回复
热议问题