MobileChromeApps / google-play-services

A Cordova plugin for Android that adds Google Play Services
51 stars 96 forks source link

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. #8

Open sebastianzillessen opened 9 years ago

sebastianzillessen commented 9 years ago

As soon as I import this plugin and try to access GooglePlay service data, I get the following error:

 The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

Any idea where this could come from?

mmocny commented 9 years ago

My guess is that this is due to using an older cordova-cli tooling which didn't yet automatically install android libs.

How did you install this plugin?

sebastianzillessen commented 9 years ago

I use the cordova cli, yes. Its version 3.5 (so probably already the latest one?) I installed the plugin by adding the dependency to one of my plugins, where I need the google play support:

     <dependency id="com.google.playservices" url="https://github.com/MobileChromeApps/google-play-services.git"/>

(in plugin.xml)

Is there something wrong with that installation?

agrieve commented 9 years ago

I think this is a result of us packaging the lib as a .jar instead of as an Android Library. This hasn't been a problem for the Auth APIs so far, but other APIs within play services do require some resources that we're not currently bundling.

The good news is that cordova just recently got support for android sub-libraries, so this is now fixable within the plugin. :)

wf9a5m75 commented 9 years ago

@agrieve +1 That's good news!

serenskye commented 9 years ago

Heya, I'm getting that error message too. Has anyone found a fix yet?