EsotericSoftware / minlog

Minimal overhead Java logging
BSD 3-Clause "New" or "Revised" License
172 stars 33 forks source link

android build exception #8

Closed fabiitch closed 6 years ago

fabiitch commented 6 years ago

My android gradle

i got this error first :

GPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: com.android.dex.DexException: Multiple dex files define Lcom/esotericsoftware/minlog/Log$Logger;","sources":[{}],"original":"UNEXPECTED TOP-LEVEL EXCEPTION:\ncom.android.dex.DexException: Multiple dex files define Lcom/esotericsoftware/minlog/Log$Logger;\n\tat com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)\n\tat com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)\n\tat com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)\n\tat com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)\n\tat com.android.dx.merge.DexMerger.merge(DexMerger.java:189)\n\tat com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)\n\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)\n\tat com.android.dx.command.dexer.Main.run(Main.java:277)\n\tat com.android.dx.command.dexer.Main.main(Main.java:245)\n\tat com.android.dx.command.Main.main(Main.java:106)\n","tool":"Dex"}

i change this of my android build.gradle defaultConfig { applicationId "com.nzt.mwa" minSdkVersion 9 targetSdkVersion 20 versionCode 1 versionName "1.0" multiDexEnabled true //here !! }

Now new error 🥇

Any idea ?

NathanSweet commented 6 years ago

Multiple dex files define Lcom/esotericsoftware/minlog/Log$Logger

Sounds like you include minlog twice.