Hi Jerry, Could you share how to fix this jni_onload problem? I got the same error but don't know how to solve it. Thanks :)
Yichu On Feb 24, 12:45 am, Jerry Yang <[email protected]> wrote: > Hi, all > I checked the logcat, I find it cannot find the jni_Onload, > Thanks for your information, I find I forget the function jni_Onload method, > it is a new requirement after jni)1.2 > Now my hello world working. > Thanks > With best wishes > Jerry > > On Mon, Feb 23, 2009 at 11:38 PM, Jerry Yang <[email protected]> wrote: > > Hi, Marco and all > > Here is the log: > > > D/AndroidRuntime( 1221): > > D/AndroidRuntime( 1221): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< > > D/AndroidRuntime( 1221): CheckJNI is OFF > > I/ActivityThread( 1223): Publishing provider > > com.android.vending.SuggestionsProv > > ider: com.android.vending.SuggestionsProvider > > D/AndroidRuntime( 1221): --- registering native functions --- > > I/jdwp ( 1221): received file descriptor 23 from ADB > > I/ActivityManager( 52): Stopping service: > > com.android.vending/.LocalDbSyncServ > > ice > > I/ActivityManager( 52): Starting activity: Intent { flags=0x10000000 > > comp={com > > .android.hello/com.android.hello.HelloAndroid} } > > I/ActivityManager( 52): Start proc com.android.hello for activity > > com.android. > > hello/.HelloAndroid: pid=1240 uid=10023 gids={} > > D/AndroidRuntime( 1221): Shutting down VM > > D/dalvikvm( 1221): DestroyJavaVM waiting for non-daemon threads to exit > > I/dalvikvm( 1221): DestroyJavaVM shutting VM down > > D/dalvikvm( 1221): HeapWorker thread shutting down > > D/dalvikvm( 1221): HeapWorker thread has shut down > > D/jdwp ( 1221): JDWP shutting down net... > > D/jdwp ( 1221): +++ peer disconnected > > I/dalvikvm( 1221): Debugger has detached; object registry had 1 entries > > D/dalvikvm( 1221): VM cleaning up > > D/dalvikvm( 1221): LinearAlloc 0x0 used 541332 of 4194304 (12%) > > I/jdwp ( 1240): received file descriptor 10 from ADB > > D/dalvikvm( 1240): Trying to load lib /system/lib/libhello.so 0x433b50d8 > > D/dalvikvm( 1240): Added shared lib /system/lib/libhello.so 0x433b50d8 > > D/dalvikvm( 1240): No JNI_OnLoad found in /system/lib/libhello.so > > 0x433b50d8 > > W/ActivityManager( 52): Activity pause timeout for HistoryRecord{435ae750 > > {com.android.hello/com.android.hello.HelloAndroid}} > > I/ActivityManager( 52): Displayed activity > > com.android.hello/.HelloAndroid: 2025 ms > > I/ActivityManager( 52): Stopping service: > > com.android.vending/.PackageMonitorReceiver$UpdateCheckinDatabaseService > > D/dalvikvm( 90): GC freed 2431 objects / 127176 bytes in 276ms > > D/dalvikvm( 1223): GC freed 2076 objects / 140976 bytes in 128ms > > With best wishes > > Jerry > > > On Tue, Feb 24, 2009 at 1:36 AM, Marco Nelissen <[email protected]>wrote: > > >> On Sun, Feb 22, 2009 at 10:23 PM, Jerry Yang <[email protected]> > >> wrote: > >> (...) > >> > 3. push the .apk to the phone and run from eclips > >> > always a run time error like:"the application hello.android has stopped > >> > unexpectedly, pla try again" > > >> What does it say in the system log? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

