appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

后端 未结 14 2212
不思量自难忘°
不思量自难忘° 2020-11-22 05:03

When attempting to use the latest appcompat-v7 support library in my project, I get the following error:

/Users/greg/dev/mobile/android_project/app/build/int         


        
14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 05:06

    What I recomend is: (This works to me after many days with errors)

    -Make sure that you have downloaded:

    - the Lastest SDK Platform from the latest Android version
    - Android Suppor Librarie and Repository from EXTRAS 
    

    -Redowload the ADT

    -Make a security copy of your project.

    -You must have the ADT, the workspace and the project that we will import in the same disk (e.g. C:/)

    1. Now delete the app compat and your project.

    2. In eclipse: File > Import > Android existing project > Next > Browse (The folder where you have your ADT)/sdk/extras/android/v7/appcompat > Import > Finish

    3. Now in the eclipse Package Explorer: android-support-v7-appcompat/libs/ Make on the two JARS: Right click > Build Path > Add to Build Path

    4. Right click on libs/ folder > Buil Path > Configure Build Path and check this two JARS > OK

    5. On the upper eclipse bar > Project > Clean

    6. Import your project > File > Import > Browse your project > Finish

    7. Now, Right click on the projectfile and android-support-v7-appcompat > Properties > Android > And select the latest API that appears > OK

    8. Right click on the projectfile > Properties > Android > Add > android-support-v7-appcompat

    9. On the upper eclipse bar > Project > Clean

提交回复
热议问题