Fail Building with Google analytics plugin

I cant build if i add the following lines to my build settings:

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

There is any problem with the plugin?

Thank you.

Can you show your whole build.settings?  What error are you getting?

What version of Corona SDK are you using?

Rob

The error:

12:12:26.136 Using custom build id from app bundle: 00000 (AppSettings.lua) 12:12:26.136 12:12:26.136 Using custom Build Id 00000 12:19:05.481 BuildID: kCoronaBuild [A device build error occurred on the server. 12:19:05.481 12:19:05.481 BuildID: 56cd9018ef5a2 12:19:05.481 Error: 12:19:05.481 ERROR: An error occurred during build. The server returned the following message: 12:19:05.481 --- 12:19:05.481 A device build error occurred on the server. 12:19:05.481 12:19:05.481 BuildID: 56cd9018ef5a2 12:19:05.481 Error: 12:19:05.481 --- 12:19:05.632 Android build failed (5)

And the whole build.settings:

settings = { orientation = { default = "portrait", supported = { "portrait" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.VIBRATE", }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs" }, ["plugin.adbuddiz"] = { publisherId = "com.adbuddiz" }, ["CoronaProvider.analytics.flurry"] = { publisherId = "com.coronalabs" }, ["plugin.fbAudienceNetwork"] = { publisherId = "com.coronalabs" }, ["plugin.googleAnalytics"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, osx=true, win32=true } }, }, }

And i just updated to the latest daily build and the error continues.

Thanks!

Can you build the Hello World sample app?

Yes I can, if I remove the line declaring the google analytics plugin i can also

Engineering is working on the problem.

Rob

Any updates on this issue? I am experiencing the same issue with latest build. If I remove the Google Analytics plugin from the build settings everything works. 

We think this should be fixed. Can you give it another try?

Rob

Still experiencing the issue. The build just hangs now though instead of giving an error code. 

I take that back, as I was typing I received “Error Code: 11”

Okay, let me see if I can get an update. In the mean time, can you try commenting out your other plugins and see if it builds? In other words only build with GA.

Rob

If I only build with GA plugin it is successful. So then I started turning on plugins one at a time until I got a failure and thought I found the issue. But when I repeated the build it failed again. In fact I have tried over 30 different combinations of plugins to see if the issue is a particular set of plugins, but was not able to narrow it down.

Here is my plugins section of build.settings:

 plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, } , ["plugin.facebook.v4"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs" }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.chartboost"] = { -- required publisherId = "com.swipeware" }, ["CoronaProvider.ads.vungle"] = { publisherId = "com.vungle", }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.googleAnalytics"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } } }, 

Maybe, the engineers could take a look at the server-side build logs and see if there is a commonality among my failed builds.

OK saw this in the other  thread with similar issue:

https://forums.coronalabs.com/topic/61841-googleanalytics-plugin-cause-android-build-failed/

“I was able to reproduce the error on Android builds and looked into the cause. The problem comes from trying to include to many plugins. The issue is the JAR file symbol count from all the plugins exceed what is allowed in our current build implementation. We have a task assigned to fix that in the future, but for now the only solution is not build with so many plugins.”

This makes sense as to why I continued to have the issue even after the problem was fixed. Does anyone know what the right number of plugins is? 

Luckily I already had a GA implementation working was just updating it to the new plugin to be consistent. I will just roll back to my earlier implementation for now.