Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 class into other classes with wrong package name, it works just fine:

import org.wit.hillforts.model.HillfortStore

To clean things up I fix the name in the class and all classes its imported into. Now I'm getting this error.

Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.

com.android.build.api.transform.TransformException: java.lang.IllegalStateException: Dex archives: setting .DEX extension only for .CLASS files

like image 371
John O Sullivan Avatar asked Nov 28 '22 13:11

John O Sullivan


1 Answers

just do this :

in main project folder ,in terminal type

cd android

then type this

./gradlew clean

then build your app again

like image 150
Sajad Saderi Avatar answered Dec 04 '22 01:12

Sajad Saderi