"Failed to instantiate one or more classes" Android Studio new projects

0

I really do not know how to catalog the error, I installed the Android Studio for the first time on this computer and I get this error (Image), I really do not know why, I was supposed to do a normal installation.

At the end of the description of the second message, this comes out: Exception Details java.lang.ClassNotFoundException: android.view.View $ OnUnhandledKeyEventListener

If someone can help me, I would really appreciate it

As an extra data that I forgot to place, in the XML files I can not visualize the design due to this, that's why I urgently need to solve it. Thanks

    
asked by alexander 12.07.2018 в 04:08
source

1 answer

0

Because of what you see in the image, the problem is loading the ActionCar of the AppCompact. The ActionBar is called in the styles.xml file, which is inside the values folder in res, the path is res / values / styles.xml. I just checked how the ActionBar is called in my Android Studio, in my case it does so and it does not give me any errors, check that you also have it like this:

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>

In that file you will also have the resources tags and some items for the colors, but in which the ActionBar is called it is in style and it is in which you possibly have something different so the error arises.

    
answered by 12.07.2018 в 14:19