Dex Loader Unable to execute dex : Multiple dex files define Android


When we using 3rd party library, sometimes we got this error while running our app, eg:

1
Dex Loader Unable to execute dex : Multiple dex files define Lcom/google/gson/JsonSerializer;

This happen when in our app, we have libs folder with gson jar (eg: gson-2.2.4.jar).
In sametime, our Google Play Service library already have Gson as well.

The solution is uncheck the same libraries in our App.

Capture


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.