Error Gradle Build C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1

前端 未结 6 1213
太阳男子
太阳男子 2020-12-21 14:08

Error:Execution failed for task \':app:transformClassesWithDexForDebug\'. com.android.build.api.transform.TransformException: com.android.ide.common.process

6条回答
  •  时光取名叫无心
    2020-12-21 14:42

    Found cause and solution.

    All at the sudden this happened, when I created a class with the same signature (package and name) in 2 different projects of my environment and started the App to try it. Got that message.

    I discovered it by adding multiDexEnabled true and new error message appeared with duplicated class found.

    So, I refactored the class (changed package name), also removed multiDexEnabled support as it was before, the App started.

提交回复
热议问题