What wrong with my Style? cannot resolve symbol Theme.AppCompat.Light.NoActionBar

后端 未结 2 639
南方客
南方客 2020-12-11 22:35

Currently, my styles.xml file show something not properly. Theme.AppCompat.Light.NoActionBar cannot be resolve. I have restart android studio but it still not w

相关标签:
2条回答
  • 2020-12-11 23:03

    Finally, here is my first solution. The error happen because gradle not work with the libraries which has lower version. It doesn't compile the external library appcompat-v7:23.3.0. What I do now is downgrade gradle plugin frorm 2.+ to 2.2.0 and rebuild project. It works again now.

    This link show how to downgrade version gradle [Link].

    It is not a good idea, thought, but It did saved my problem.

    Any other ideas or comments to improve, welcome.

    0 讨论(0)
  • 2020-12-11 23:03
    1. Exit Android studio.
    2. Go to your project directory.
    3. Something like this in my case( F -> Android -> YourProjectName -> .idea).
    4. Delete libraries folder present in .idea folder.
    5. Restart your Android Studio and your issue is resolved.
    0 讨论(0)
提交回复
热议问题