ad_728x90

參觀我的【 伊生活小舖】

2015年10月29日 星期四

How to resolve the error “No resource found that matches the given name” when adding library v7 AppCompat in Eclipse?


Q :

How to resolve the error “No resource found that matches the given name” when adding library v7 AppCompat in Eclipse?


Ans :
You should add that support library to your project. To add:
Right click on project, then go to :
properties > Java Build Path > Libraries
here Add External JARs...
add android-support-v7-appcompat.jar (path/to/sdk/extras\android\support\v7\appcompat\libs)
Additionally you also have to copy that jar to libs folder of your project, if it is not there automatically.
and you should use the @style/Theme.AppCompat theme for your application for support-v7 to be working

COMMENTS HAVE BEEN DISABLED FOR THIS POST [文章的評論已被禁用]

Ratings and Recommendations by outbrain