Error using .isTrackingEnabled() from plugin.advertisingId

As the title states, when using the function  isTrackingEnabled from  plugin.advertisingId this happens:

java.lang.IllegalStateException: The meta-data tag in your app’s AndroidManifest.xml does not have the right value.  Expected 4242000 but found 9683000.  You must have the following declaration within the <application> element:     <meta-data android:name=“com.google.android.gms.version” android:value="@integer/google_play_services_version" />

08-16 10:36:47.447 27020 27105 I Corona  : Java Stack Trace:

08-16 10:36:47.447 27020 27105 I Corona  :      com.google.android.gms.common.GooglePlayServicesUtil.n(Unknown Source)

08-16 10:36:47.447 27020 27105 I Corona  :      com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)

08-16 10:36:47.447 27020 27105 I Corona  :      plugin.advertisingId.LuaLoader.isTrackingEnabled(LuaLoader.java:77)

08-16 10:36:47.447 27020 27105 I Corona  :      plugin.advertisingId.LuaLoader$IsTrackingEnabledWrapper.invoke(LuaLoader.java:109)

08-16 10:36:47.447 27020 27105 I Corona  :      com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)

08-16 10:36:47.447 27020 27105 I Corona  :      com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:182)

08-16 10:36:47.447 27020 27105 I Corona  :      com.ansca.corona.Controller.updateRuntimeState(Controller.java:347)

08-16 10:36:47.447 27020 27105 I Corona  :      com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$C

This happens on a device build for Android. Using google play game services as well, so i think this might be some sort of conflict between both. Any ideas on how to fix this?

Can you post your build.settings file please and what version of Corona are you using?

Thanks

Rob

Hi, i am having the exact same problem as basiliogerman. I am using corona verision 2017.3121. This is my build.settings. Hope you can help me, it has never happend to me before.

settings = { build = { neverStripDebugInfo = true }, splashScreen = { enable = false, }, orientation = { default = "landscapeRight", content = "landscapeRight", supported = {"landscapeRight", "landscapeLeft"}, }, window = { defaultMode = "normal", resizable = false, minViewWidth = 1024, minViewHeight = 768, titleText = { default = "My App", }, }, plugins = true and { ["plugin.kochava"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.qrscanner"] = { publisherId = "com.spiralcodestudio", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.zip"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = true, ["android"] = true, }, }, ["plugin.utf8"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, ["appletvos"] = true, }, }, ["plugin.notifications"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, }, }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.advertisingId"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.openssl"] = { publisherId = "com.coronalabs", }, ["plugin.tenjin"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["android"] = true, ["iphone-sim"] = true , } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, } }, }, iphone = { plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, CFBundleShortVersionString = "1.0.0", UIStatusBarHidden = true, UIPrerenderedIcon = true, NSPhotoLibraryUsageDescription = "To select user profile picture", NSCameraUsageDescription = "Used to scan QR codes", CFBundleDisplayName = "AppName", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", }, UIApplicationExitsOnSuspend = false, FacebookAppID = "1111111111", LSApplicationQueriesSchemes = { "fb", "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, CFBundleURLTypes = { { CFBundleURLSchemes = { "fb11111111111", "appName" }, }, }, CFBundleIdentifier = "com.my.App" } }, android = { minSdkVersion = "16", facebookAppId = "11111111111", googlePlayGamesAppId = "11111111", largeHeap = true, versionCode = "1", usesExpansionFile = true, permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, }, usesPermissions = { "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.GET\_ACCOUNTS", "android.permission.RECEIVE\_BOOT\_COMPLETED", "com.google.android.c2dm.permission.RECEIVE", ".permission.C2D\_MESSAGE", }, intentFilters = { { label = "AppName", actions = { "android.intent.action.VIEW" }, categories = { "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = { scheme = "AppName", }, }, }, }, tvos = { icon = { small = { "Icon-tvOS-Small-4.png", "Icon-tvOS-Small-3.png", "Icon-tvOS-Small-2.png", "Icon-tvOS-Small-1.png", }, large = { "Icon-tvOS-Large-4.png", "Icon-tvOS-Large-3.png", "Icon-tvOS-Large-2.png", "Icon-tvOS-Large-1.png", } }, topShelfImage = "Icon-tvOS-TopShelf.png", launchImage = "Icon-tvOS-Launch.png", plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, }, }, }

Thanks in advance.

Hi Ivan and welcome to the forums! Lets see if we can solve this. But first, if this is the same problem someone else was having, it would have been best to ask on that thread rather than starting a new one. As such, we don’t have a reference to what the problem is that you’re experiencing. At a minimum, please provide the link to the other post, or provide us information assuming we are unaware of the other issue.

Next, what platform are you running your app on that you’re getting the error? We need the make, model and OS running on the device.

Are you building on a Mac or on Windows? We need to see if you’re getting errors in your console log. You might want to read this guide:

https://docs.coronalabs.com/guide/basics/debugging/index.html

to help gathering the debug information.

Finally, I don’t know if this is related or not, but this plugin is no longer valid and does not work with build of Corona greater than 3005:

 ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, } },

And should be removed.

Rob

That should be the reason. We are working on the same project. Updating it!

Can you post your build.settings file please and what version of Corona are you using?

Thanks

Rob

Hi, i am having the exact same problem as basiliogerman. I am using corona verision 2017.3121. This is my build.settings. Hope you can help me, it has never happend to me before.

settings = { build = { neverStripDebugInfo = true }, splashScreen = { enable = false, }, orientation = { default = "landscapeRight", content = "landscapeRight", supported = {"landscapeRight", "landscapeLeft"}, }, window = { defaultMode = "normal", resizable = false, minViewWidth = 1024, minViewHeight = 768, titleText = { default = "My App", }, }, plugins = true and { ["plugin.kochava"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.qrscanner"] = { publisherId = "com.spiralcodestudio", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = false, ["android"] = true, }, }, ["plugin.zip"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["appletvos"] = true, ["android"] = true, }, }, ["plugin.utf8"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, ["appletvos"] = true, }, }, ["plugin.notifications"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, }, }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.advertisingId"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["iphone-sim"] = true, ["android"] = true, }, }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android"] = true, }, }, ["plugin.openssl"] = { publisherId = "com.coronalabs", }, ["plugin.tenjin"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["iphone"] = true, ["android"] = true, ["iphone-sim"] = true , } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, } }, }, iphone = { plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, CFBundleShortVersionString = "1.0.0", UIStatusBarHidden = true, UIPrerenderedIcon = true, NSPhotoLibraryUsageDescription = "To select user profile picture", NSCameraUsageDescription = "Used to scan QR codes", CFBundleDisplayName = "AppName", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", }, UIApplicationExitsOnSuspend = false, FacebookAppID = "1111111111", LSApplicationQueriesSchemes = { "fb", "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, CFBundleURLTypes = { { CFBundleURLSchemes = { "fb11111111111", "appName" }, }, }, CFBundleIdentifier = "com.my.App" } }, android = { minSdkVersion = "16", facebookAppId = "11111111111", googlePlayGamesAppId = "11111111", largeHeap = true, versionCode = "1", usesExpansionFile = true, permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, }, usesPermissions = { "com.android.vending.BILLING", "android.permission.INTERNET", "android.permission.ACCESS\_WIFI\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.GET\_ACCOUNTS", "android.permission.RECEIVE\_BOOT\_COMPLETED", "com.google.android.c2dm.permission.RECEIVE", ".permission.C2D\_MESSAGE", }, intentFilters = { { label = "AppName", actions = { "android.intent.action.VIEW" }, categories = { "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = { scheme = "AppName", }, }, }, }, tvos = { icon = { small = { "Icon-tvOS-Small-4.png", "Icon-tvOS-Small-3.png", "Icon-tvOS-Small-2.png", "Icon-tvOS-Small-1.png", }, large = { "Icon-tvOS-Large-4.png", "Icon-tvOS-Large-3.png", "Icon-tvOS-Large-2.png", "Icon-tvOS-Large-1.png", } }, topShelfImage = "Icon-tvOS-TopShelf.png", launchImage = "Icon-tvOS-Launch.png", plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads = true }, }, }, }

Thanks in advance.

Hi Ivan and welcome to the forums! Lets see if we can solve this. But first, if this is the same problem someone else was having, it would have been best to ask on that thread rather than starting a new one. As such, we don’t have a reference to what the problem is that you’re experiencing. At a minimum, please provide the link to the other post, or provide us information assuming we are unaware of the other issue.

Next, what platform are you running your app on that you’re getting the error? We need the make, model and OS running on the device.

Are you building on a Mac or on Windows? We need to see if you’re getting errors in your console log. You might want to read this guide:

https://docs.coronalabs.com/guide/basics/debugging/index.html

to help gathering the debug information.

Finally, I don’t know if this is related or not, but this plugin is no longer valid and does not work with build of Corona greater than 3005:

 ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, } },

And should be removed.

Rob

That should be the reason. We are working on the same project. Updating it!