I'm trying to create define a custom Application class as follows:
<application android:name=".MyApp" ...
However, when I attempt to run my app, I get: java.lang.RuntimeException: Unable to instantiate application com.test.MyApp java.lang.IllegalAccessException: access to class not allowed
java.lang.RuntimeException: Unable to instantiate application com.test.MyApp java.lang.IllegalAccessException: access to class not allowed
Make sure your custom class is public, has a public zero-argument constructor, and that the constructor chains to the superclass' constructor.
public
1.4m articles
1.4m replys
5 comments
57.0k users