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

前端 未结 22 2266
暗喜
暗喜 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

    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.

提交回复
热议问题