Hello,

  I'm trying to use my shared library. The Froyo has this sample source
code. 
<android source tree:froyo>/device/sample/frameworks/PlatformLibrary
I'm following a README.txt in PlatformLibrary.

I couldn't understand 2nd bottom line on the README.txt  "- A
LOCAL_JAVA_LIBRARIES line in the Android.mk to have the build system link
against your shared library."  What do I have to do for this line?  I'm
using a Eclipse. Usually Eclipse does not use Android.mk, does it?

Finally, I got a following LogCat messages. I couldn't solved "Class
resolved by unexpected DEX:" of line #2.
I pushed a (dex).jar file on /system/framework . but I think my application
does not solve to like to this file.
Please help me.

Thanks
kumagai


10-23 14:07:07.414: INFO/ActivityManager(1893): Starting activity: Intent {
cmp=com.jikiba.android.mysample/.client.MySampleClientActivity }
10-23 14:07:07.444: WARN/dalvikvm(2140): Class resolved by unexpected DEX:
Lcom/jikiba/android/mysample/client/MySampleClientSendActivity;(0x43afe2a8):
0x141bd8 ref [Lcom/jikiba/android/io/obex/IMySampleStatusCallBack;]
Lcom/jikiba/android/io/obex/IMySampleStatusCallBack;(0x43afe2a8):0x13a048
10-23 14:07:07.444: WARN/dalvikvm(2140):
(Lcom/jikiba/android/mysample/client/MySampleClientSendActivity; had used a
different Lcom/jikiba/android/io/obex/IMySampleStatusCallBack; during
pre-verification)
10-23 14:07:07.444: INFO/dalvikvm(2140): Failed resolving
Lcom/jikiba/android/mysample/client/MySampleClientSendActivity; 
                                            interface 47
'Lcom/jikiba/android/io/obex/IMySampleStatusCallBack;'
10-23 14:07:07.444: WARN/dalvikvm(2140): Link of class
'Lcom/jikiba/android/mysample/client/MySampleClientSendActivity;' failed
10-23 14:07:07.444: WARN/dalvikvm(2140): Exception
Ljava/lang/NoClassDefFoundError; thrown during
Lcom/jikiba/android/mysample/client/MySampleClientActivity;.<clinit>
10-23 14:07:07.444: WARN/dalvikvm(2140): Class init failed in newInstance
call (Lcom/jikiba/android/mysample/client/MySampleClientActivity;)
10-23 14:07:07.444: DEBUG/AndroidRuntime(2140): Shutting down VM
10-23 14:07:07.454: WARN/dalvikvm(2140): threadid=3: thread exiting with
uncaught exception (group=0x4001b160)
10-23 14:07:07.454: ERROR/AndroidRuntime(2140): Uncaught handler: thread
main exiting due to uncaught exception
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):
java.lang.ExceptionInInitializerError
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
java.lang.Class.newInstanceImpl(Native Method)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
java.lang.Class.newInstance(Class.java:1479)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.os.Handler.dispatchMessage(Handler.java:99)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.os.Looper.loop(Looper.java:123)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
android.app.ActivityThread.main(ActivityThread.java:4363)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
java.lang.reflect.Method.invokeNative(Native Method)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
java.lang.reflect.Method.invoke(Method.java:521)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:8
60)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
dalvik.system.NativeStart.main(Native Method)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140): Caused by:
java.lang.NoClassDefFoundError:
com.jikiba.android.mysample.client.MySampleClientSendActivity
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
com.jikiba.android.mysample.client.MySampleClientActivity.<clinit>(MySampleC
lientActivity.java:23)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     ... 15 more
10-23 14:07:07.464: ERROR/AndroidRuntime(2140): Caused by:
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to
unexpected implementation
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
dalvik.system.DexFile.defineClass(Native Method)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
10-23 14:07:07.464: ERROR/AndroidRuntime(2140):     ... 16 more
10-23 14:07:07.474: INFO/Process(1893): Sending signal. PID: 2140 SIG: 3
10-23 14:07:07.484: INFO/dalvikvm(2140): threadid=7: reacting to signal 3
10-23 14:07:07.484: INFO/dalvikvm(2140): Wrote stack trace to
'/data/anr/traces.txt'

-- 
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

Reply via email to