我刚开始松开头发的新手:
当我在三星推出我的应用程序时,这是每次活动启动时得到的内容:
Pause GC
12-02 12:31:53.791: E/ActivityThread(10642): java.lang.reflect.InvocationTargetException
12-02 12:31:53.791: E/ActivityThread(10642): at java.lang.reflect.Method.invokeNative(Native Method)
12-02 12:31:53.791: E/ActivityThread(10642): at java.lang.reflect.Method.invoke(Method.java:515)
12-02 12:31:53.791: E/ActivityThread(10642): at android.app.ActivityThread.pauseGC(ActivityThread.java:5525)
12-02 12:31:53.791: E/ActivityThread(10642): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
12-02 12:31:53.791: E/ActivityThread(10642): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
12-02 12:31:53.791: E/ActivityThread(10642): at android.app.ActivityThread.access$900(ActivityThread.java:175)
12-02 12:31:53.791: E/ActivityThread(10642): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
12-02 12:31:53.791: E/ActivityThread(10642): at android.os.Handler.dispatchMessage(Handler.java:102)
12-02 12:31:53.791: E/ActivityThread(10642): at android.os.Looper.loop(Looper.java:146)
12-02 12:31:53.791: E/ActivityThread(10642): at android.app.ActivityThread.main(ActivityThread.java:5602)
12-02 12:31:53.791: E/ActivityThread(10642): at java.lang.reflect.Method.invokeNative(Native Method)
12-02 12:31:53.791: E/ActivityThread(10642): at java.lang.reflect.Method.invoke(Method.java:515)
12-02 12:31:53.791: E/ActivityThread(10642): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
12-02 12:31:53.791: E/ActivityThread(10642): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
12-02 12:31:53.791: E/ActivityThread(10642): at dalvik.system.NativeStart.main(Native Method)
12-02 12:31:53.791: E/ActivityThread(10642): Caused by: java.lang.UnsatisfiedLinkError: Native method not found: dalvik.system.VMRuntime.pauseGc:(Ljava/lang/String;)I
12-02 12:31:53.791: E/ActivityThread(10642): at dalvik.system.VMRuntime.pauseGc(Native Method)
12-02 12:31:53.791: E/ActivityThread(10642): ... 15 more
这意味着(我认为)内存未发布,因此当您长时间使用该应用时,应用会崩溃。 我不知道该怎么对我的客户说... 有帮助吗? 谢谢