Corona: Developer Error Google Play Services

Everything works fine on simulator, but on Android device I get this pop up note:

Corona: Developer Error 

App does not target the Google Play store, but includes Google Plays Services.

This is adding annecessary bloat to your app as Google Play Services depends on the Google Play store.

Please remove Google Play Services from build that do not target Google Play.

I don’t think I use any gp services in the app. I get this when I build in Debug mode and copy to a device. I haven’t tried using the actual store yet. The app runs for a few seconds till this note appears and then stops. Please help me get some sleep after loosing a night on this…

I’m struggling with the same thing, but on another level.  To get past the error, look into the supported platforms attribute for plugins. Some examples below…

  ["plugin.appodeal"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { android=true }         },         ["plugin.amazon.iap"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { ["android-kindle"]=true }         }, 

hmm, I am not using any one of those either. I only use google analytics, but I’ve included that.

after I have removed all references and analytics plugin it works. so It’s smth to with that:

https://docs.coronalabs.com/plugin/googleAnalytics/index.html

I have included it in build settings as required and all works fine with the iOS app.

Corona please have a look at building for Android and analytics plugin. thanks

What where the “Build” screen options when you built your APK?

Rob

do you mean build.settings? I had them very streamed I think it was somethink like the one I am posting here - I might have deleted smth else as I tried to solve the issue.

settings ={   splashScreen =   {       enable = true,       image = "launchImage.png"   },      android  =      {         usesExpansionFile = false,         usesPermissions  =         {              "android.permission.RECORD\_AUDIO",              "android.permission.WRITE\_EXTERNAL\_STORAGE",              "android.permission.INTERNET",              "android.permission.ACCESS\_NETWORK\_STATE"         },      },      orientation =      {          default = "landscapeRight",          supported = { "landscapeLeft", "landscapeRight" }       },     plugins =     {         ["plugin.googleAnalytics"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=false, android=true }         },         ["plugin.utf8"] =         {         publisherId = "com.coronalabs"         },     }, }

sorry, you probably meant build window… it was Target App Store “none” and Debug…

Okay, then it’s probably just a warning since you didn’t pick Google as a store.  If you need Google Analytics, then you need Google Play Services. Just make sure to select Google as the store and you should be good to go.

Rob

I’m struggling with the same thing, but on another level.  To get past the error, look into the supported platforms attribute for plugins. Some examples below…

  ["plugin.appodeal"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { android=true }         },         ["plugin.amazon.iap"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { ["android-kindle"]=true }         }, 

hmm, I am not using any one of those either. I only use google analytics, but I’ve included that.

after I have removed all references and analytics plugin it works. so It’s smth to with that:

https://docs.coronalabs.com/plugin/googleAnalytics/index.html

I have included it in build settings as required and all works fine with the iOS app.

Corona please have a look at building for Android and analytics plugin. thanks

What where the “Build” screen options when you built your APK?

Rob

do you mean build.settings? I had them very streamed I think it was somethink like the one I am posting here - I might have deleted smth else as I tried to solve the issue.

settings ={   splashScreen =   {       enable = true,       image = "launchImage.png"   },      android  =      {         usesExpansionFile = false,         usesPermissions  =         {              "android.permission.RECORD\_AUDIO",              "android.permission.WRITE\_EXTERNAL\_STORAGE",              "android.permission.INTERNET",              "android.permission.ACCESS\_NETWORK\_STATE"         },      },      orientation =      {          default = "landscapeRight",          supported = { "landscapeLeft", "landscapeRight" }       },     plugins =     {         ["plugin.googleAnalytics"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=false, android=true }         },         ["plugin.utf8"] =         {         publisherId = "com.coronalabs"         },     }, }

sorry, you probably meant build window… it was Target App Store “none” and Debug…

Okay, then it’s probably just a warning since you didn’t pick Google as a store.  If you need Google Analytics, then you need Google Play Services. Just make sure to select Google as the store and you should be good to go.

Rob