Please visit http://source.android.com, click on the Community tab, find a Google Group relevant for your firmware questions, and ask there. This list is for developing with the Android SDK.
On Wed, Nov 2, 2011 at 5:43 AM, xiaodong mao <[email protected]> wrote: > I meet a problem for JAR in android. > > 1. I create a new folder and add some java file and .mk file to > compile the JAR file, it can successfully compiled and output into / > system/frameworks. > 2. Then, in my Client apk, I just import the package name, and found > it compiled failed, cannot found the package, then, I add > LOCAL_JAVA_LIBRARIES := <jar name> in my Client apk’s mk file. Now it > can compiled successfully. > 3. BUT, in runtime, VM still occurred exception that can not found the > Class, and the JAR file already in system/framework/ > 4. Then, I create a xml file, contain below info to register jar, and > add it into system/etc/permissions. BUT, in run time, still VM said > class not found. > > <permissions> > <library name="xxxx" > file="/system/framework/xxx.jar" /> > </permissions> > > > 5. at last, i found i must add <use-libary> in my androidmanifest.xml, > then it can work. > > What is the matter, per my opinion, in runtime, the xml in etc/ > permissions and the jar in /system/frameworks already declare the > JAR's exist in the system, Why must i add use libary in my apk's > manifest file?? > > meanwhile, is it possible to make my Client can compile successfully > without add the LOCAL_JAVA_LIBRARIES := <jar name> in my mk file?? > just like i import the SDK API, i never need add the > LOCAL_JAVA_LIBRARIES := in my mk file. > > Thx a lot > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 4.0 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

