cordova - Can't build android - Multiple dex files -


i'm trying build apk app using adobe phonegap , i'm getting error. tried older versions of app apk building succeeded in past same error now.

i'll appreciate help. found in logs:

running dex in-process requires build tools 23.0.2. faster builds update project use latest build tools. dex: error converting bytecode dex: cause: com.android.dex.dexexception: multiple dex files define landroid/support/v4/accessibilityservice/accessibilityserviceinfocompat$accessibilityserviceinfoversionimpl; unexpected top-level exception: com.android.dex.dexexception: multiple dex files define landroid/support/v4/accessibilityservice/accessibilityserviceinfocompat$accessibilityserviceinfoversionimpl; @ com.android.dx.merge.dexmerger.readsortabletypes(dexmerger.java:596) @ com.android.dx.merge.dexmerger.getsortedtypes(dexmerger.java:554) @ com.android.dx.merge.dexmerger.mergeclassdefs(dexmerger.java:535) @ com.android.dx.merge.dexmerger.mergedexes(dexmerger.java:171) @ com.android.dx.merge.dexmerger.merge(dexmerger.java:189) @ com.android.dx.command.dexer.main.mergelibrarydexbuffers(main.java:502) @ com.android.dx.command.dexer.main.runmonodex(main.java:334) @ com.android.dx.command.dexer.main.run(main.java:277) @ com.android.dx.command.dexer.main.main(main.java:245) @ com.android.dx.command.main.main(main.java:106) :transformclasseswithdexforrelease failed failure: build failed exception. 

try adding default config , invalidate caches , restart android studio:

 // enabling multidex support.  multidexenabled true 

if running unit tests, want include in application class:

public class youapplication extends application {      @override     protected void attachbasecontext(context base) {         super.attachbasecontext(base);         multidex.install(this);     }  } 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -