EDIT: I have a solution for my problem, see below in the answers
I have searched and read all related questions on this issue, but none has worked for me. I have an app which uses ViewPager Indicator as Library and it has a class application.
The app runs fine on the emulator, but when I try to export as signed apk.
Depending on the answers given for this exception and those which I have tried, it sometimes failed with error "Conversion to Dalvik format failed with error 1" or It exports correctly and crashes on the device.
Something peculiar though, when I run on the emulator, the apk generated is 600kb+ and when i export as signed apk it is around 300kb. It is somehow not referencing the library.
What I tried:
- Default settings with only ViewPager referenced as library in the android properties
- Adding JARs(ViewPager indicator and support ) in the libs folder
Any help will be much appreciated. Thanks