I have a .properties file be generated in the gen/ classpath.
Both Eclipse and Ant build tools copy the file to bin/ when compiling.
The .apk created by Eclipse works fine.
The .apk created by Ant returns null at class.getResourceAsStream(..).
Unzipping the .apk's, I see the classpath with file in the
Eclipse .apk file but not the Ant built .apk.
Decompiling the classes.dex with dedexer, I see Eclipse built file
decompiles fine, but the Ant built file fails to decompile with the
following exception:
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at
hu.uw.pallergabor.dedexer.DexAnnotationParser.getAnnotationVisibilityFlag(DexAnnotationParser.java:
251)
at
hu.uw.pallergabor.dedexer.JasminStyleCodeGenerator.addMethodAnnotation(JasminStyleCodeGenerator.java:
1012)
at
hu.uw.pallergabor.dedexer.JasminStyleCodeGenerator.generate(JasminStyleCodeGenerator.java:
84)
at hu.uw.pallergabor.dedexer.Dedexer.run(Dedexer.java:158)
at hu.uw.pallergabor.dedexer.Dedexer.main(Dedexer.java:14)
Any idea why the two build tools are treating the file so differently?
Background on my non-Android ways:
I need a resource loaded before I have a Context in a static
initializer. Thus Context.getResources() doesn't help.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en