Heim >Datenbank >MySQL-Tutorial >java.lang.IllegalAccessException: access to class not allowe

java.lang.IllegalAccessException: access to class not allowe

WBOY
WBOYOriginal
2016-06-07 15:43:441747Durchsuche

一个Actiivty进入另一个Actiivty时报的错误 错误原因: 因为 目标Activity的权限不是public class ***Activity 改为 public class ***Activity FATAL EXCEPTION: main java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.duguang

一个Actiivty进入另一个Actiivty时报的错误

错误原因: 因为目标Activity的权限不是public

class ***Activity  改为  public  class ***Activity


FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.duguang.baseanimation/com.duguang.baseanimation.ui.imitate.OutTicketActivity}: java.lang.IllegalAccessException: access to class not allowed
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2118)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2242)
at android.app.ActivityThread.access$600(ActivityThread.java:142)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1235)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5068)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
t com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalAccessException: access to class not allowed
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newActivity(Instrumentation.java:1060)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2109)
... 11 more

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn