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

前端 未结 22 2252
暗喜
暗喜 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:20

    I have been struggling with this problem for 2 days. And tried all options. Finally noticed that after updating my android studio, it was not showing me the compile errors like @v.d. wrote above. My problem was, In my build files, I was using compile(which should be replaced with implementation or api) and testcompile(which also replaced by testimplementation). Notice that I have changed in whole build files(android, app and others - in my case I also had folding-cell library)

    for example instead of this

    compile project(path: ':folding-cell')
    

    write this

    implementation project(path: ':folding-cell')
    

提交回复
热议问题