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

后端 未结 2 641
南方客
南方客 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.

提交回复
热议问题