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
just do this :
in main project folder ,in terminal type
cd android
then type this
./gradlew clean
then build your app again
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With