Error: app:transformClassesWithDexBuilderForDebug

前端 未结 4 1704
既然无缘
既然无缘 2021-01-14 13:14

I have a class HillfortStore in this package:

package org.wit.hillforts.models

Messed up the package name in the class (missing the \'s\'):

相关标签:
4条回答
  • 2021-01-14 13:52

    just do this :

    in main project folder ,in terminal type

    cd android
    

    then type this

    ./gradlew clean
    

    then build your app again

    0 讨论(0)
  • 2021-01-14 14:05

    I needed to complete a rebuild of the app. This is all it took to fix the issue. It is working now.

    0 讨论(0)
  • 2021-01-14 14:05

    I had a similar problem because Lombok plugin didn't work with new gradle. Just removed these lines:

    compileOnly 'org.projectlombok:lombok:1.18.4'
    annotationProcessor 'org.projectlombok:lombok:1.18.4'
    

    and the problem disappeared.

    Maybe you also have some kind of "troubled" plugin that doesn't get along with new gradle)

    0 讨论(0)
  • 2021-01-14 14:11

    Delete .gradle file from your project folder then clean the project and Rebuild

    0 讨论(0)
提交回复
热议问题