Monday, November 23, 2015

Java libs on Android cannot use local resources

If you are developing an Android library in Eclipse or Android Studio, and you are having problems using it in your Android application, please make sure that your library does not use local resource in its res/ folder. Those resources won't be exported to final lib(.jar), and your target application will miss them (by generating either ClassNotFound or similar Exception). EDIT: If you want to deploy resources with your library, you can use AAR format instead of JAR format.

No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...