java - Android Service Classpath -


i'm building application starts service uses internal android .jar file located @

/system/framework 

the problem whenever try access class .jar file, classdefnotfound exception.

note: i'm able compile project stub'd version of .jar file, don't know how include internal library in application (service) classpath rid of exception.

(i'm not using eclipse)

add androidmanifest.xml

<uses-library android:name="com.android.library" /> 

from android documentation: http://developer.android.com/guide/topics/manifest/uses-library-element.html

this element tells system include library's code in class loader package.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -