Java. lang. IllegalAccessException: accesstoclassnotallowe

Source: Internet
Author: User
Error cause returned when one Actiivty enters another Actiivty: because the target Activity's permission is not changed to publicclass *** ActivityFATALEXCEPTION: mainjava. lang. RuntimeException: UnabletoinstantiateactivityComponentInfo {com. duguang

Error cause returned when one Actiivty enters another Actiivty: because the target Activity has the permission not to change public class *** Activity to public class *** Activity fatal exception: main java. lang. runtimeException: Unable to instantiate activity ComponentInfo {com. duguang

Error reported when one Actiivty enters another Actiivty

Cause of error: the permission of the target Activity is not public.

Change class *** Activity to 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. javasmlaunchactivity (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. lorule. loop (lorule. 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. javasmlaunchactivity (ActivityThread. java: 2109)
... 11 more

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.