I have a running project and all the xml files are showing me the error message Android Failed to instantiate one or more classes
. The program still works.
Finally, after 4 days of facing the same error I resolved this on my own:
Click on
Build--> Make Build
and then
Refresh the layout.
In styles.xml
,
Changing the theme from Theme.AppCompat.Light.DarkActionBar
to Base.Theme.AppCompat.Light.DarkActionBar
has worked for me.
In the build.gradle
(Module: app
) change the implementation of appcompat
to a previous version by searching the developer.google
This is an error in the android framework usually happens in the alpha and beta appcompat versions.
Hope this helps.