Sorry I said Java files means it is also using android packages. As you said uses-library is for only sdk add-ons. Can't we generate add ons to include in my applications
My overall idea is to make use some repeated functionality as an library. If i want to generate jar file i need to write it as pure Java application but here it is also using some android api's. what is the way to achieve this. On May 10, 4:45 pm, Mark Murphy <[email protected]> wrote: > Karteek N wrote: > > In android manifest file there is a tag to include libraries called > > <uses-library>. > > This is for SDK add-ons, like the Google Maps add-on. > > > Suppose if i have some java files in the package hierarchy called > > com.my.lib > > i used the following tag in my manifest file > > <uses-library android:name="com.my.lib" /> > > Now it is compiled successfully. > > But if i want to launch to emulator it is throwing the following error > > [2010-05-10 10:38:18 - MyMusicPlayer] Installing MyMusicPlayer.apk... > > [2010-05-10 10:38:20 - MyMusicPlayer] Installation error: > > INSTALL_FAILED_MISSING_SHARED_LIBRARY > > [2010-05-10 10:38:20 - MyMusicPlayer] Please check logcat output for > > more details. > > [2010-05-10 10:38:20 - MyMusicPlayer] Launch canceled! > > And application is not running on emulator. > > Any help please > > Don't use <uses-library>. Put the JAR in your libs/ directory (and, in > the case of Eclipse users, add it to your build path). > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android 2.x Programming Books:http://commonsware.com/books > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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

