Android Failed to instantiate one or more classes

前端 未结 3 1320
太阳男子
太阳男子 2020-12-01 08:10

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.

相关标签:
3条回答
  • 2020-12-01 08:53

    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.

    0 讨论(0)
  • 2020-12-01 08:57

    In styles.xml,

    Changing the theme from Theme.AppCompat.Light.DarkActionBar to Base.Theme.AppCompat.Light.DarkActionBar has worked for me.

    0 讨论(0)
  • 2020-12-01 08:58

    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.

    0 讨论(0)
提交回复
热议问题