How soon will this problem be resolved, or do I need to update the code?
How soon will this problem be resolved, or do I need to update the code?
Can you post the error you’re getting?
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…
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
Is this happening for anyone else?
I’m getting this too
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
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)
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.
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.
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
ok, i try to remove google play services from build.settings and get error: could not load provider (admob).
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.
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(?)
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
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
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
There is a conflict between Google Analytics and AdMob. For now, you can’t use both.
Rob
Ok, then. I’ll wait