Comment #2 on issue 326 by [email protected]: protobuf shared library works
well in android 2.3(NDK), but can not work on Android 2.1(NDK) and 2.2NDK
http://code.google.com/p/protobuf/issues/detail?id=326
I build a protobuf-lite version . Then it worked very well on android 2.1
and 2.2, but on android 2.3 ,it carshed .......so strange .....
when it run System.loadLibrary("protobuflite");
then it crashed.. here is the logcat
08-25 15:04:37.688: ERROR/cocosdenshion(7816): "begin to load
protobuflite ..."
08-25 15:04:37.708: INFO/wpa_supplicant(5513): Reset vh_switch_counter due
to receive LINKSPEED cmd
08-25 15:04:37.708: WARN/dalvikvm(7816): Exception
Ljava/lang/UnsatisfiedLinkError; thrown while initializing
Lcom/JCAmbitionAndroid/JCAmbitionAndroid;
08-25 15:04:37.708: WARN/dalvikvm(7816): Class init failed in newInstance
call (Lcom/JCAmbitionAndroid/JCAmbitionAndroid;)
08-25 15:04:37.708: DEBUG/AndroidRuntime(7816): Shutting down VM
08-25 15:04:37.708: WARN/dalvikvm(7816): threadid=1: thread exiting with
uncaught exception (group=0x4001d5a0)
08-25 15:04:37.708: DEBUG/ConnectivityService(25014): getMobileDataEnabled
returning false
08-25 15:04:37.738: WARN/dalvikvm(17379): disableGcForExternalAlloc: false
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): FATAL EXCEPTION: main
08-25 15:04:37.738: ERROR/AndroidRuntime(7816):
java.lang.ExceptionInInitializerError
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
java.lang.Class.newInstanceImpl(Native Method)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
java.lang.Class.newInstance(Class.java:1409)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.app.Instrumentation.newActivity(Instrumentation.java:1061)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1730)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.app.ActivityThread.access$1500(ActivityThread.java:132)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.os.Handler.dispatchMessage(Handler.java:99)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.os.Looper.loop(Looper.java:143)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
android.app.ActivityThread.main(ActivityThread.java:4196)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
java.lang.reflect.Method.invokeNative(Native Method)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
java.lang.reflect.Method.invoke(Method.java:507)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
dalvik.system.NativeStart.main(Native Method)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): Caused by:
java.lang.UnsatisfiedLinkError: Couldn't load protobuf: findLibrary
returned null
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
java.lang.Runtime.loadLibrary(Runtime.java:429)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
java.lang.System.loadLibrary(System.java:554)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): at
com.JCAmbitionAndroid.JCAmbitionAndroid.<clinit>(JCAmbitionAndroid.java:55)
08-25 15:04:37.738: ERROR/AndroidRuntime(7816): ... 15 more
08-25 15:04:37.808: WARN/ActivityManager(25014): Force finishing activity
com.JCAmbitionAndroid/.JCAmbitionAndroid
08-25 15:04:37.868: DEBUG/dalvikvm(4811): GC_EXPLICIT freed 566K, 43% free
4029K/7047K, external 5122K/6043K, paused 774ms
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" 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/protobuf?hl=en.