I'm getting “Error: No resource found that mat

2020-02-23 04:56发布

I'm developing an app on Ionic Framework/cordova, and when I try "cordova run android" I get this:

"Error: No resource found that matches the given name (at value with value @integer/google_play_services_version)"

I don't really know what is happening, I tried to set the value with a fixed value (I know is not the best solution), and the problem continues.

Thanks in advance!

7条回答
够拽才男人
2楼-- · 2020-02-23 05:38

You need to add the play services library to your project. This doesn't work by jus adding an external jar. You need to import the play_services_lib project into your workspace. And then add this library to you project by going to

Your Project -> Properties -> Android -> Library

Checkout this link for detailed explanation on how to import the play_services_lib into your workspace

http://developer.android.com/google/play-services/setup.html

After this the error will vanish and you need not add any fixed value.

查看更多
登录 后发表回答