线程运行时异常

时间:2011-05-11 11:10:33

标签: android

synchronized (this.childrenGroupsLock) {
            for (int i = 0; i < numGroups; i++) {
                suspendCurrent |= this.childrenGroups[i].suspendHelper();
            }
        }
return suspendCurrent;

这是强制关闭我的应用程序(任何Android应用程序)的线程。我不知道如何处理它。

有人可以帮助我吗?

应用程序只有在达到此点后才会强制关闭。

05-12 10:22:28.582: ERROR/AndroidRuntime(352): FATAL EXCEPTION: main
05-12 10:22:28.582: ERROR/AndroidRuntime(352): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android/com.android.GraphicsActivity}: java.lang.IllegalAccessException: access to class not allowed
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1544)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.os.Looper.loop(Looper.java:123)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.ActivityThread.main(ActivityThread.java:3647)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at java.lang.reflect.Method.invokeNative(Native Method)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at java.lang.reflect.Method.invoke(Method.java:507)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at dalvik.system.NativeStart.main(Native Method)
05-12 10:22:28.582: ERROR/AndroidRuntime(352): Caused by: java.lang.IllegalAccessException: access to class not allowed
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at java.lang.Class.newInstanceImpl(Native Method)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at java.lang.Class.newInstance(Class.java:1409)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-12 10:22:28.582: ERROR/AndroidRuntime(352):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1536)

这是我在LogCat中得到的错误

0 个答案:

没有答案