简体   繁体   中英

class not found when running

I'm getting "could not find class" error when I run my app. Understand that compilation and execution path different but I followed the recommendations of another question to create a sub dir under my project of lib and put the jar there but still no luck.

using Eclipse and it is when I run on a device from eclipse (unable to get the broadcast events I want to trigger this code from simulator, ie wifi and blue-tooth).

Any way to look at the apk to see what's in it like this jar file? looking around did not see anything.

You probably didn't tell Eclipse to export the required jar files along with other things in your apk file.

Right-click on your Android project and go to Properties . Then go to Java Build Path > Order and Export . Tick the jar files your want to be delivered by your apk file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM