In logs it writes that the app doesn't see the external lib, but I added it by adding lib in the folder 'libs' and written in properties. Help me pls, who knows
1 Answer
Right click on the external jar file in the you have in the libs folder and then select Build Path -> Add to Build Path.
Check here for a detailed explanation.
5 Comments
CommonsWare
This has been out of date for a year or so.
Swayam
Oh forgive me sir, I wasn't aware of it. The thing is that this works for me whenever I face any problem regarding referenced libraries.
CommonsWare
Your approach does not put the JAR into the APK file, and will give the error the OP is seeing. This change was added to the R16 tools or so early last year.
CommonsWare
Put the JAR in
libs/, and you are done. Both Eclipse and command-line builds will automatically add the JAR to the compile-time class path, plus add the JAR's contents to the APK file.DigCamara
In Eclipse, if you have the Android SDK correctly installed, I'd actually recommend to do a right-button click on the project, select Android Tools->Add Support Library... you can also select with right click the Project->Properties->Android. At the bottom of that screen you should see the Android libraries you're including and whether they are correctly linked.
libs/. You might also consider posting the logs plus the source code that triggers the crash.