Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Unable to download Google Analytics Plugin during Build for Android
Started by gulshandixit Jul 20 2016 03:36 AM

36 replies to this topic
google analytics download failed server problem build android
[TOPIC CONTROLS]
Page 1 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

gulshandixit

[GLOBAL: userInfoPane.html]
gulshandixit
  • Observer

  • 2 posts
  • Corona SDK

How soon will this problem be resolved, or do I need to update the code?

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

Can you post the error you're getting?



[TOPIC: post.html]
#3

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 405 posts
  • Corona SDK

Hey Rob, I'm getting this too.  Same error as what was happening yesterday with OneSignal.  I can comment out my Google Analytics code from build.settings and within the app and it works fine.  Minute I add it back I get this error...

 

ao-googleanalytics-error.jpg



[TOPIC: post.html]
#4

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 405 posts
  • Corona SDK

Ok, I was able to get past that error - realized there was a setting wrong in my build.settings file.  However, the app is fully crashing now and this is the error report I see in adb logcat:

W/dalvikvm(15028): VFY: unable to find class referenced in signature (Lcom/google/android/gms/analytics/Tracker;)
W/dalvikvm(15028): VFY: unable to find class referenced in signature (Lcom/google/android/gms/analytics/Tracker;)
E/dalvikvm(15028): Could not find class 'com.google.android.gms.analytics.HitBuilders$EventBuilder', referenced from method plugin.googleAnalytics.CoronaGoogleAnalytics.logEvent
W/dalvikvm(15028): VFY: unable to resolve new-instance 153 (Lcom/google/android/gms/analytics/HitBuilders$EventBuilder;) in Lplugin/googleAnalytics/CoronaGoogleAnalytics;
W/dalvikvm(15028): VFY: unable to find class referenced in signature (Lcom/google/android/gms/analytics/Tracker;)
E/dalvikvm(15028): Could not find class 'com.google.android.gms.analytics.HitBuilders$EventBuilder', referenced from method plugin.googleAnalytics.CoronaGoogleAnalytics.logEvent
W/dalvikvm(15028): VFY: unable to resolve new-instance 153 (Lcom/google/android/gms/analytics/HitBuilders$EventBuilder;) in Lplugin/googleAnalytics/CoronaGoogleAnalytics;
W/dalvikvm(15028): VFY: unable to find class referenced in signature (Lcom/google/android/gms/analytics/Tracker;)
E/dalvikvm(15028): Could not find class 'com.google.android.gms.analytics.HitBuilders$ExceptionBuilder', referenced from method plugin.googleAnalytics.CoronaGoogleAnalytics.logException
W/dalvikvm(15028): VFY: unable to resolve new-instance 154 (Lcom/google/android/gms/analytics/HitBuilders$ExceptionBuilder;) in Lplugin/googleAnalytics/CoronaGoogleAnalytics;
W/dalvikvm(15028): VFY: unable to find class referenced in signature (Lcom/google/android/gms/analytics/Tracker;)
W/dalvikvm(15028): VFY: unable to resolve virtual method 646: Lcom/google/android/gms/analytics/Tracker;.setScreenName (Ljava/lang/String;)V
W/dalvikvm(15028): VFY: unable to resolve static method 625: Lcom/google/android/gms/analytics/GoogleAnalytics;.getInstance (Landroid/content/Context;)Lcom/google/android/gms/analytics/GoogleAnalytics;
E/dalvikvm(15028): Could not find class 'com.google.android.gms.analytics.Tracker', referenced from method plugin.googleAnalytics.CoronaGoogleAnalytics.get
W/dalvikvm(15028): VFY: unable to resolve check-cast 157 (Lcom/google/android/gms/analytics/Tracker;) in Lplugin/googleAnalytics/CoronaGoogleAnalytics;
W/dalvikvm(15028): threadid=1: thread exiting with uncaught exception (group=0x41027540)
E/AndroidRuntime(15028): FATAL EXCEPTION: main
E/AndroidRuntime(15028): java.lang.NoClassDefFoundError: com.google.android.gms.analytics.GoogleAnalytics
E/AndroidRuntime(15028): 	at plugin.googleAnalytics.CoronaGoogleAnalytics.get(CoronaGoogleAnalytics.java:95)
E/AndroidRuntime(15028): 	at plugin.googleAnalytics.CoronaGoogleAnalytics.init(CoronaGoogleAnalytics.java:47)
E/AndroidRuntime(15028): 	at plugin.googleAnalytics.LuaLoader$1.run(LuaLoader.java:93)
E/AndroidRuntime(15028): 	at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime(15028): 	at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(15028): 	at android.os.Looper.loop(Looper.java:155)
E/AndroidRuntime(15028): 	at android.app.ActivityThread.main(ActivityThread.java:5520)
E/AndroidRuntime(15028): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(15028): 	at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(15028): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
E/AndroidRuntime(15028): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
E/AndroidRuntime(15028): 	at dalvik.system.NativeStart.main(Native Method)
D/InputManager(  544): setFocusedApplication Exception: java.lang.NullPointerException
E/EmbeddedLogger(  544): App crashed! Process: com.borderleap.alphaomega


[TOPIC: post.html]
#5

borderleap

[GLOBAL: userInfoPane.html]
borderleap
  • Contributor

  • 405 posts
  • Corona SDK

Is this happening for anyone else?



[TOPIC: post.html]
#6

andrey.rebrik

[GLOBAL: userInfoPane.html]
andrey.rebrik
  • Observer

  • 4 posts
  • Corona SDK

 I'm getting this too



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

Can you post your build.settings please?

What version of Corona SDK are you using?

What Android Device/OS is it happening on?

 

Can you build and run the GA sample app:  https://github.com/coronalabs/plugins-sample-googleAnalytics

 

Thanks

Rob



[TOPIC: post.html]
#8

andrey.rebrik

[GLOBAL: userInfoPane.html]
andrey.rebrik
  • Observer

  • 4 posts
  • Corona SDK

My previous release works fine in Google Play.

GA sample works fine.

Current build of my game crashed. I add to new version applovin and vungle plugins.

Device Samsung Galaxy S3, OS version 4.3, Corona SDK version 2016.2906

 

build.settings


settings =
{
 
plugins =
    {
    ["CoronaProvider.ads.vungle"] =
        {
            publisherId = "com.vungle",
            supportedPlatforms = { iphone=true, android=true }
        },
        ["plugin.applovin"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true }
        },
        ["plugin.google.play.services"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true }
        },
        ["plugin.googleAnalytics"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true }
        },
    },
orientation =
{
-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight
 
default = "portrait",
supported = { "portrait" }
},
 
excludeFiles =
{
-- Include only the necessary icon files on each platform
iphone = { "Icon-*dpi.png", "assets/AlertIconAndroid*.png" },
android = { "Icon.png", "Icon-Small-*.png", "Icon*@2x.png", "assets/AlertIconIOS*.png", "en.lproj/*", "ru.lproj/*", "S*.png", "LaunchScreen.nib" },
},
 
--
-- iOS Section
--
iphone =
{
plist =
{
UIStatusBarHidden = true,
UIPrerenderedIcon = true, -- set to false for "shine" overlay
UIViewControllerBasedStatusBarAppearance = false,
UILaunchStoryboardName = "LaunchScreen",
MinimumOSVersion = "7.0",
NSAppTransportSecurity =
{
   NSAllowsArbitraryLoads = true,
},
--UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend
 
CFBundleIconFiles =
{
"Icon.png",
"Icon@2x.png",
"Icon-167.png",
"Icon-60.png",
"Icon-60@2x.png",
"Icon-60@3x.png",
"Icon-72.png",
"Icon-72@2x.png",
"Icon-76.png",
"Icon-76@2x.png",
"Icon-Small.png",
"Icon-Small@2x.png",
"Icon-Small@3x.png",
"Icon-Small-40.png",
"Icon-Small-40@2x.png",
"Icon-Small-50.png",
"Icon-Small-50@2x.png",
},
 
CFBundleLocalizations =
            {
                "en",  --English
                "ru",  --Russian
            },
 
            CFBundleDisplayName = "Sudoku",
            CFBundleName = "Sudoku",
 
--[[
-- iOS app URL schemes:
CFBundleURLTypes =
{
{
CFBundleURLSchemes =
{
"fbXXXXXXXXX",  -- replace XXXXXXXXX with your Facebook appId
}
}
}
--]]
}
},
 
--
-- Android Section
--
android =
{
allowAppsReadOnlyAccessToFiles = false,
minSdkVersion = "14",
usesPermissions =
{
"android.permission.INTERNET",
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.WRITE_EXTERNAL_STORAGE"
},
supportsScreens =
        {
            smallScreens  = true,
            normalScreens = true,
            largeScreens  = true,
            xlargeScreens = true,
        },
},
}

 

 

Log from Corona Console:

GT-I9300: mDVFSHelper.acquire()
июля 22 11:01:14.634 GT-I9300: mDVFSHelper.release()
июля 22 11:01:18.541 GT-I9300: Unable to start service Intent { act=com.sec.knox.containeragent.service.containermanager.ContainerManagerService } U=0: not found
июля 22 11:01:23.563 GT-I9300: Unable to start service Intent { cmp=com.google.android.gm.exchange/com.android.exchange.service.EasService } U=0: not found
июля 22 11:01:25.016 GT-I9300: Unable to start service Intent { cmp=com.google.android.gm/com.android.email.service.AttachmentService } U=0: not found
июля 22 11:01:25.841 GT-I9300: Unable to start service Intent { cmp=com.google.android.gm.exchange/com.android.exchange.service.EasService } U=0: not found
июля 22 11:03:24.014 GT-I9300: Platform: GT-I9300 / ARM Neon / 4.3 / Mali-400 MP / OpenGL ES 2.0 / 2016.2906 / русский | RU | ru_RU | ru
июля 22 11:03:24.014 GT-I9300: 720 1280
июля 22 11:03:24.021 GT-I9300: 2 360 640
июля 22 11:03:24.134 GT-I9300: 720 1280
июля 22 11:03:24.140 GT-I9300: 2 360 640
июля 22 11:03:25.689 GT-I9300: Permission Denial: getTasks() from pid=1875, uid=10144 requires android.permission.GET_TASKS
июля 22 11:03:26.291 GT-I9300: FATAL EXCEPTION: main
                    
                    GT-I9300: java.lang.NoClassDefFoundError: com.google.android.gms.analytics.GoogleAnalytics
июля 22 11:03:26.291 GT-I9300:  at plugin.googleAnalytics.CoronaGoogleAnalytics.get(CoronaGoogleAnalytics.java:95)
                    
                    GT-I9300:  at plugin.googleAnalytics.CoronaGoogleAnalytics.init(CoronaGoogleAnalytics.java:47)
                    
                    GT-I9300:  at plugin.googleAnalytics.LuaLoader$1.run(LuaLoader.java:93)
                    
                    GT-I9300:  at android.os.Handler.handleCallback(Handler.java:730)
                    
                    GT-I9300:  at android.os.Handler.dispatchMessage(Handler.java:92)
                    
                    GT-I9300:  at android.os.Looper.loop(Looper.java:176)
                    
                    GT-I9300:  at android.app.ActivityThread.main(ActivityThread.java:5419)
                    
                    GT-I9300:  at java.lang.reflect.Method.invokeNative(Native Method)
                    
                    GT-I9300:  at java.lang.reflect.Method.invoke(Method.java:525)
                    
                    GT-I9300:  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
                    
                    GT-I9300:  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
                    
                    GT-I9300:  at dalvik.system.NativeStart.main(Native Method)


[TOPIC: post.html]
#9

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

@andrey.rebrik

 

What happens if you remove ["plugin.google.play.services"] from your build settings?

The Google Analytics plugin includes its own version of Google Play Services, and I believe having both is causing a conflict during the build process.


  • gulshandixit likes this

[TOPIC: post.html]
#10

jch_apple

[GLOBAL: userInfoPane.html]
jch_apple
  • Enthusiast

  • 41 posts
  • Corona SDK

Got the same and wrote to support. It seems that problem happened after July the 18 in the evening (Paris time). I disabled tha GoogleAnalytics.init line and build stopped crashing. Had no problem when building for iOS.

I suspected a problem at Corona's side because problem occured on a stable version that I built again after changing icons. The build size of correct versions was 17 MB, and the build size of "crashing versions" was 13 MB.



[TOPIC: post.html]
#11

andrey.rebrik

[GLOBAL: userInfoPane.html]
andrey.rebrik
  • Observer

  • 4 posts
  • Corona SDK

I get error when trying build app:

WebServices: XMLRPC request failed
июля 22 11:44:53.475 ERROR: XMLRPC: The operation couldn’t be completed. (HTTP error 503.)
июля 22 11:44:53.475 ERROR: Cannot Login To Build Server: ERROR: The operation couldn’t be completed. (HTTP error 503.)
                    
                    Unexpected connection error occurred: 11


[TOPIC: post.html]
#12

andrey.rebrik

[GLOBAL: userInfoPane.html]
andrey.rebrik
  • Observer

  • 4 posts
  • Corona SDK

ok, i try to remove google play services from build.settings and get error: could not load provider (admob).



[TOPIC: post.html]
#13

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

@andrey.rebrik

Aha. You're using Admob as well?

The issue is that the Admob and Google Analytics plugin (on Android) is using two different versions of the same library. Unfortunately, at the moment they can't be used together.



[TOPIC: post.html]
#14

lmgualandi

[GLOBAL: userInfoPane.html]
lmgualandi
  • Enthusiast

  • 89 posts
  • Corona SDK

I'm having the same problem. I have Admob and Google analytics and analytics is not loading in build since yesterday. I have a released app uploaded in 07/17 working with both plugins. Now I'll have to remove analytics(?)



[TOPIC: post.html]
#15

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

Can you post the error you're betting, preferably copy/pasted from your console log with all the messages around the error.

 

Also, what version of Corona SDK are you using?

What platform are you building on?

What platform are you building for?

 

Thanks

Rob



[TOPIC: post.html]
#16

lmgualandi

[GLOBAL: userInfoPane.html]
lmgualandi
  • Enthusiast

  • 89 posts
  • Corona SDK

Build 2016.2917

Building on Windows 10 for Android. I haven't tested for iOS.
The apk size is 4.5M lower, indicating that a plugin wasn't integrating
When I removed analytics the app worked fine
 
--------- beginning of system
V/Corona  ( 9812): > Class.forName: network.LuaLoader
V/Corona  ( 9812): < Class.forName: network.LuaLoader
V/Corona  ( 9812): Loading via reflection: network.LuaLoader
I/Corona  ( 9812): Platform: SM-P600 / ARM Neon / 5.1.1 / Mali-T628 / OpenGL ES 3.0 / 2016.2917 / English | US | en_US | en
V/Corona  ( 9812): > Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona  ( 9812): < Class.forName: CoronaProvider.licensing.google.LuaLoader
V/Corona  ( 9812): Loading via reflection: CoronaProvider.licensing.google.LuaLoader
I/Corona  ( 9812): SM-P600
V/Corona  ( 9812): > Class.forName: CoronaProvider.ads.admob.LuaLoader
V/Corona  ( 9812): < Class.forName: CoronaProvider.ads.admob.LuaLoader
V/Corona  ( 9812): Loading via reflection: CoronaProvider.ads.admob.LuaLoader
I/Corona  ( 9812): WARNING: ads.init() was already called for admob.
V/Corona  ( 9812): > Class.forName: CoronaProvider.gameNetwork.google.LuaLoader
V/Corona  ( 9812): < Class.forName: CoronaProvider.gameNetwork.google.LuaLoader
V/Corona  ( 9812): Loading via reflection: CoronaProvider.gameNetwork.google.LuaLoader
V/Corona  ( 9812): > Class.forName: plugin.googleAnalytics.LuaLoader
V/Corona  ( 9812): < Class.forName: plugin.googleAnalytics.LuaLoader
V/Corona  ( 9812): Loading via reflection: plugin.googleAnalytics.LuaLoader
D/Corona  ( 9907): Invocation Exception during plugin.parse.LuaLoader.initialize: android.content.res.Resources$NotFoundException: Resource ID #0x0


[TOPIC: post.html]
#17

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

can you build our sample app?
 

https://github.com/coronalabs/plugins-sample-googleAnalytics

 

Rob



[TOPIC: post.html]
#18

lmgualandi

[GLOBAL: userInfoPane.html]
lmgualandi
  • Enthusiast

  • 89 posts
  • Corona SDK

The sample worked and the events were logged. 

My app still crashes on the beginning, though. But I still can't figure out why.

I'm going to post my code

-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight,,

settings = {

	orientation = {
		default = "portrait",
		supported = { "portrait", "portraitUpsideDown" }
	},
	
	android = {
        versionCode = "393",
        usesPermissions = {
            "android.permission.VIBRATE",
            "android.permission.INTERNET",
            "android.permission.ACCESS_NETWORK_STATE",
        },
        googlePlayGamesAppId = "XXX", -- Your Google Play Games App Id
	},

	plugins = {

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

        --GPGS
        ["CoronaProvider.gameNetwork.google"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true },
        },

        --Game Center
        ["CoronaProvider.gameNetwork.apple"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, ["iphone-sim"]=true },
        },

        --Analytics
        ["plugin.googleAnalytics"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true }
        },
    },

    iphone = {
            plist =
            {

                 NSAppTransportSecurity =
                 {
                    NSExceptionDomains =
                    {
                       ["jaguarstds.com"] =
                       {
                          NSIncludesSubdomains = true,
                          NSThirdPartyExceptionAllowsInsecureHTTPLoads = true
                       },

                       ["igrec.ca"] =
                       {
                          NSIncludesSubdomains = true,
                          NSThirdPartyExceptionAllowsInsecureHTTPLoads = true
                       },

                       ["api.wordnik.com"] =
                       {
                          NSIncludesSubdomains = true,
                          NSThirdPartyExceptionAllowsInsecureHTTPLoads = true
                       },
                    },
                 },

                CFBundleLocalizations = {
                    "en",  --English
                    "es",  --Spanish
                    "it",  --Italian
                    "de",  --German
                    "fr",  --French
                    "pt",  --Portuguese
                    "nl",  --Dutch
                    "no",  --Norwegian
                },
                CFBundleDisplayName = "Word Master",
                CFBundleName =        "Word Master",
                CFBundleIconFiles = {  --required
                    "Icon.png",
                    "Icon@2x.png",
                    "Icon-60.png",
                    "Icon-60@2x.png",
                    "Icon-60@3x.png",
                    "Icon-72.png",
                    "Icon-72@2x.png",
                    "Icon-76.png",
                    "Icon-76@2x.png",
                    "Icon-Small-40.png",
                    "Icon-Small-40@2x.png",
                    "Icon-Small-40@3x.png",
                    "Icon-Small-50.png",
                    "Icon-Small-50@2x.png",
                    "Icon-Small.png",
                    "Icon-Small@2x.png",
                    "Icon-Small@3x.png"
                },
                UILaunchImages = {  --required
                    {  -- iPhone 4 Portrait
                        ["UILaunchImageMinimumOSVersion"] = "7.0",
                        ["UILaunchImageName"] = "Default",
                        ["UILaunchImageOrientation"] = "Portrait",
                        ["UILaunchImageSize"] = "{320, 480}"
                    },
                    {  -- iPhone 5 Portrait
                        ["UILaunchImageMinimumOSVersion"] = "7.0",
                        ["UILaunchImageName"] = "Default-568h",
                        ["UILaunchImageOrientation"] = "Portrait",
                        ["UILaunchImageSize"] = "{320, 568}"
                    },
                    {  -- iPad Portrait
                        ["UILaunchImageMinimumOSVersion"] = "7.0",
                        ["UILaunchImageName"] = "Default-Portrait",
                        ["UILaunchImageOrientation"] = "Portrait",
                        ["UILaunchImageSize"] = "{768, 1024}"
                    },
                    {  -- iPhone 6 Portrait
                        ["UILaunchImageMinimumOSVersion"] = "8.0",
                        ["UILaunchImageName"] = "Default-667h",
                        ["UILaunchImageOrientation"] = "Portrait",
                        ["UILaunchImageSize"] = "{375, 667}"
                    },
                    {  -- iPhone 6 Plus Portrait
                        ["UILaunchImageMinimumOSVersion"] = "8.0",
                        ["UILaunchImageName"] = "Default-736h",
                        ["UILaunchImageOrientation"] = "Portrait",
                        ["UILaunchImageSize"] = "{414, 736}"
                    },
                },
                UIPrerenderedIcon = true,
                UIStatusBarHidden = true,
                UIAppFonts = { 
					"AvenirLTStd-Black.otf",
					"SourceCodePro-Black.ttf",
					"Roboto-Medium.ttf",
					"Roboto-MediumItalic.ttf",
					"Dustismo_Roman_Italic_Bold.ttf"
				},
            },
    },

    excludeFiles = {
            all = { ".git/*", ".idea/*" },
            iphone = { "Icon-*dpi.png" },
            android = {
                "Icon.png",
                "Icon*@2x.png",
                "Icon*@3x.png",
                "Icon-Small*.png",
                "Icon-60.png",
                "Icon-72.png",
                "Icon-76.png",
                "Default*.png",
            }
    },
}

local K = require "head.constants"
local googleAnalytics = require( "plugin.googleAnalytics" )

local t = {
    ios = {
        free = "XXX",
        pro = "XXX"
    },
    android = {
        free = "XXX",
        pro = "XXX"
    },
}

local version = "pro"
if K.isFreeVersion then
    version = "free"
end

local trackingId = t[K.targetOS][version]

local analytics = {}

analytics.init = function()
    googleAnalytics.init( system.getInfo("appName"), trackingId )
end

analytics.logEvent = function( category, action, label, value )
    googleAnalytics.logEvent( category, action, label, value )
end

return analytics


[TOPIC: post.html]
#19

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,409 posts
  • Enterprise

There is a conflict between Google Analytics and AdMob. For now, you can't use both.

 

Rob



[TOPIC: post.html]
#20

lmgualandi

[GLOBAL: userInfoPane.html]
lmgualandi
  • Enthusiast

  • 89 posts
  • Corona SDK

Ok, then. I'll wait



[TOPIC: post.html]
#21

gulshandixit

[GLOBAL: userInfoPane.html]
gulshandixit
  • Observer

  • 2 posts
  • Corona SDK

@andrey.rebrik

 

What happens if you remove ["plugin.google.play.services"] from your build settings?

The Google Analytics plugin includes its own version of Google Play Services, and I believe having both is causing a conflict during the build process.

This Worked for me. Thanks for the help. :)


  • gulshandixit likes this

[TOPIC: post.html]
#22

jch_apple

[GLOBAL: userInfoPane.html]
jch_apple
  • Enthusiast

  • 41 posts
  • Corona SDK

I had same problems since July 18th and removing ["plugin.google.play.services"] worked for me too. Thank you Ingemar_corona.



[TOPIC: post.html]
#23

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 924 posts
  • Corona SDK

Is this something that can be fixed at Corona's end, or are the different versions of the Google Play lib embedded within the AdMob/Google Analytics libs making this impossible to fix?

 

Can a note at least be added to the Google Analytic plugin docs for now saying that you cannot use AdMob at the same time?  

I've just spent time trying to add GA to a client's app only to find it doesn't work on Android due to this Google Play issue. These things happen, but would be good if it could have been avoided.



[TOPIC: post.html]
#24

jch_apple

[GLOBAL: userInfoPane.html]
jch_apple
  • Enthusiast

  • 41 posts
  • Corona SDK

In my opinion, AdMob IS NOT the problem,  I re-built the app 

 

 - without plugin.google.play.services

 - with AdMob enabled

 

and it's OK..

 

I cannot be 100% sure because I don't use AdMob in the app, but since march, I use  a build.settings with

 

        ["CoronaProvider.ads.admob"] =
        {
            -- required
            publisherId = "com.coronalabs",
        },
and had no problem until July the 18th.
 
After reading different suggestions in this thread, I tried to disable AdMob without success.
 
Finally I tried ingemar_corona's solution (disable plugin.google.play.services)  and it worked fine.
 
Then I re-enabled AdMob lines and it's still working.
 
Also note that the build's size came back to it's original size when disabling plugin.google.play.services
 
A good test would be to check the Corona GA sample with and without plugin.google.play.services


[TOPIC: post.html]
#25

Alan PlantPot

[GLOBAL: userInfoPane.html]
Alan PlantPot
  • Contributor

  • 924 posts
  • Corona SDK

I've just tried taking out the plugin.google.play.services, but I get this error:

java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  
Expected 8487000 but found 4242000.  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" />

Since this is an SDK build rather than Enterprise I'm not setting the manifest fields manually, so I guess this is being set by either Corona or one of the plugins.

Has anyone else had the same error?




[topic_controls]
Page 1 of 2 1 2
 
[/topic_controls]

Also tagged with one or more of these keywords: google analytics, download failed, server problem, build, android