首页 > 数据库 > mysql教程 > java.lang.IllegalAccessException: access to class not allowe

java.lang.IllegalAccessException: access to class not allowe

WBOY
发布: 2016-06-07 15:43:44
原创
1745 人浏览过

一个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

来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板