No resource found that matches the given name '@style/Theme.AppCompat.Light'

后端 未结 4 1759
春和景丽
春和景丽 2020-11-22 14:25

I have been on this problem for a couple hours. After downloading a repository from github, the only error in any .xml file is:

No resource found that matche         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 14:47

    What are the steps for that? where is AppCompat located?

    Download the support library here:

    http://developer.android.com/tools/support-library/setup.html

    If you are using Eclipse:

    Go to the tabs at the top and select ( Windows -> Android SDK Manager ). Under the 'extras' section, check 'Android Support Library' and check it for installation.

    enter image description here

    After that, the AppCompat library can be found at:

    android-sdk/extras/android/support/v7/appcompat
    

    You need to reference this AppCompat library in your Android project.

    Import the library into Eclipse.

    1. Right click on your Android project.
    2. Select properties.
    3. Click 'add...' at the bottom to add a library.
    4. Select the support library
    5. Clean and rebuild your project.

提交回复
热议问题