Android: java.lang.IllegalAccessException when attempting to use a custom "Application" class -


I am trying to define a custom application class as follows:

  1. Mapstas The empty subclass of the name application,
  2. Specify Android :: Name for my application: & lt; Application Android: name = ". MyApp" ...

However, when I try to run my app, I get: java.lang .RuntimeException: Application ComTest. Unable to Instant Java.lang.IllegalAccessException: Access to Class is not allowed

Ensure that your custom class is public , there is a public zero-argument constructor in it, and that the creators are supercl C 'constructor.


Comments