mmin18 / Dex65536

Solve the issue with dalvik compiler limitation on 65536 methods (Unable to execute dex: method ID not in [0, 0xffff]: 65536)
MIT License
351 stars 121 forks source link

Runtime annotated classes not found #3

Closed Sagaris closed 10 years ago

Sagaris commented 10 years ago

Hello.

First of all thank you for sharing your code and build script with us, it is very helpful. I did manage to setup my projects and there are no compilation issues. But there is one thing that I cannot get my head around.

I'm using ORMLite for Android and for some reason the DatabaseHelper (extends OrmLiteSqliteOpenHelper) can't be instantiated cause the annotated model classes cannot be found.

I tried running my project using the provided build file without dexing the libraries to find out if the project would run without the dexTool class loading. It doesn't work. So the problem is not with the dexTool but has something to do with annotation of the data model classes and the build script.

I will try to figure out what is causing the annotated classes missing from the apk but I'm not very familiar with the whole Android build script so any help is appreciated. Thanks.

Brgds, Eduard