0

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

3
  • yes, sorry for my English Commented Jan 8, 2013 at 18:37
  • What does "written in properties" mean? You do not need to adjust any properties files to use a JAR located in libs/. You might also consider posting the logs plus the source code that triggers the crash. Commented Jan 8, 2013 at 18:40
  • android-developers.blogspot.in/2011/10/… Commented Jan 8, 2013 at 19:45

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

5 Comments

This has been out of date for a year or so.
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.
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.
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.
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.