macdonst / VideoPlayer

149 stars 124 forks source link

Can't build app #17

Open lkalneus opened 10 years ago

lkalneus commented 10 years ago

Hello! I added VideoPlayer to Hello World PhoneGap application.

But while building I get next problems:

-dex: [dex] input: D:\Build\Android\PhoneGap\video\platforms\android\bin\classes [dex] input: D:\Build\Android\PhoneGap\video\platforms\android\libs\cordova-3.0.0.jar [dex] Pre-Dexing D:\Build\Android\PhoneGap\video\platforms\android\libs\cordova-3.0.0.jar -> cordova-3.0.0-dcb01b803346297fc6233e00d113c728.jar [dex] Converting compiled files and external libraries into D:\Build\Android\PhoneGap\video\platforms\android\bin\classes.dex... [dx] [dx] UNEXPECTED TOP-LEVEL EXCEPTION: [dx] com.android.dx.util.DexException: Multiple dex files define Lcom/phonegap/hello_world/HelloWorld; [dx] at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:592) [dx] at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:550) [dx] at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:531) Failed to find apk, make sure you project is built and there is an apk in \bin. To build your project use '\cordova\build'

Please advise solution to that problem?

macdonst commented 10 years ago

You've got this class com/phonegap/hello_world/HelloWorld in your build path twice. Check for any included jars that may also have that class in it.