java.util.zip.ZipException: Duplicate entry name: adapter1.class
at java.util.zip.ZipFile.readCentralDir(ZipFile.java:452)
at java.util.zip.ZipFile.(ZipFile.java:175)
at java.util.zip.ZipFile.(ZipFile.java:131)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:672)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.faendir.rhino_android.AndroidClassLoader.dexJar(AndroidClassLoader.java:103)
at com.faendir.rhino_android.AndroidClassLoader.defineClass(AndroidClassLoader.java:64)
at org.mozilla.javascript.JavaAdapter.loadAdapterClass(JavaAdapter.java:535)
at org.mozilla.javascript.JavaAdapter.getAdapterClass(JavaAdapter.java:333)
at org.mozilla.javascript.JavaAdapter.js_createAdapter(JavaAdapter.java:173)
......
Hello! first, thx your project!
I'm making a game and using JS to create game UI, when I enter (RhinoAndroidHelper.enter()) the context and create the first JavaAdapter, it works, but when I exit() the context and sometimes re-enter context and create another JavaAdapter, it's throw an Exception like above.
And this script on desktop-java is works.
PS: I created first JavaAdapter and it extend A.class, and second JavaAdapter extend B.class, when I creating second JavaAdapter(B.class), it's seem like still create an Adapter extend A.class, just like somethings not clear after first create. (im sorry for my bad English...)