I am trying to define a custom application class as follows:
- Mapstas The empty subclass of the name application,
- 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
Post a Comment