We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have installed the SDK (a couple of times) but even the simplest sketch fails. I am new at Android but know Processing and Java etc. The error messages make little sense.
For instance: void setup() { size (100, 100); }
void draw () { background (255, 0, 0); }
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] java.nio.BufferOverflowException
[dx] at java.nio.Buffer.nextPutIndex(Buffer.java:499)
[dx] at java.nio.HeapByteBuffer.putShort(HeapByteBuffer.java:296)
[dx] at com.android.dex.Dex$Section.writeShort(Dex.java:818)
[dx] at com.android.dex.Dex$Section.writeTypeList(Dex.java:870)
[dx] at com.android.dx.merge.DexMerger$3.write(DexMerger.java:437)
[dx] at com.android.dx.merge.DexMerger$3.write(DexMerger.java:423)
[dx] at com.android.dx.merge.DexMerger$IdMerger.mergeUnsorted(DexMerger.java:317)
[dx] at com.android.dx.merge.DexMerger.mergeTypeLists(DexMerger.java:423)
[dx] at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:163)
[dx] at com.android.dx.merge.DexMerger.merge(DexMerger.java:187)
[dx] at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
[dx] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
[dx] at com.android.dx.command.dexer.Main.run(Main.java:230)
[dx] at com.android.dx.command.dexer.Main.main(Main.java:199)
[dx] at com.android.dx.command.Main.main(Main.java:103)
I have given processing 1 Gb of memory. I see this posted on the net elsewhere, but no real solution. Any help out there?
Answers
Giving Processing more memory won't change the amount of memory that the Android app has... the PDE and your app run on completely different systems. Besides, that probably isn't even relevant.
Please see this post about the same issue.
Odd, I seem to be unable to delete the rev. 19 build tools. Anyhow, it does seem strange to remove the most recent release. Surely there is a more aesthetic solution?
Still unable to delete rev 19. I'm now trying to delete all of the TOOLS directory and then will reinstall without rev 19. Can't seem to delete TOOLS either.