Skip to content Skip to sidebar Skip to footer

Error: App:transformclasseswithdexbuilderfordebug

I have a class HillfortStore in this package: package org.wit.hillforts.models Messed up the package name in the class (missing the 's'): package org.wit.hillforts.model Imported

Solution 1:

just do this :

in main project folder ,in terminal type

cd android

then type this

./gradlew clean

then build your app again

Solution 2:

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

Solution 3:

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

Solution 4:

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)

Solution 5:

run this in npm $cd android

than run $gradlew clean

than run $cd ..

and finally, run $npx react-native run-android

Post a Comment for "Error: App:transformclasseswithdexbuilderfordebug"