Android Build Crashes on device now when testing, previously worked ok

Hello,

 

Please can any one help me, I’m at a complete loss and need some help urgently?

I’m desperate to find a solution to this problem that has me completely stumped.

My app is now complete and previously I have been able to test the App on the device in question and now the only aspect I need to test is In-App purchases before launching the game.

 

The device in question that I have been using is a Samsung Galaxy S6, the app was coded using the latest version Corona SDK, Lua Glider, Java Dev Kit 8.

What happens is I build the app without any error messages using a distribution store key and then copy the file across to the device and install, on launching the device the app seems to imediatly freeze and nothing else happens, no images load, no sound files or new scenes etc.

 

I have tried building the app with a debug key rather then distribution and I got the same result and I have also submitted the app to be approved for alpha testing and it failed due to this same problem. I don’t believe it the signing of the app when building it however I could be wrong. Not a lot has changed since the previous version was loaded onto the device and tested, however I did retrace my steps to make sure the fault didn’t lye there but with no luck.

 

I have tried removing plugins incase recent changes to them was causing the error but this also was no good. My knowledge for Android is a little limited as this is my first app game for both Android and IOS. Since all else failed I have downloaded Android Studio and monitored the log report in the monitor section to try and get an idea at what might be causing the problem, however looking at the log, some I understand and I can’t see any problem and the rest is beyond me at this stage and I could do with help understanding it as it hopefully holds the answer I’m looking for:

 

Build Report:

 

Copyright (C) 2009-2016  C o r o n a   L a b s   I n c .Version: 3.0.0 Build: 2016.2830 Activated fonts in 'master\_of\_break.ttf' (MasterOfBreak) Copyright (C) 2009-2016  C o r o n a   L a b s   I n c . Version: 3.0.0 Build: 2016.2830 Platform: iPhone / x86\_64 / 10.11.5 / Intel HD Graphics 4000 OpenGL Engine / 2.1 INTEL-10.14.66 / 2016.2830 / en | GB | en\_GB | en Loading project from:   ~/Desktop/Water Jetter Game/Water Jetters Project sandbox folder: ~/Library/Application Support/Corona Simulator/Water Jetters-1B363A4D07C1C5FB072AB1C9DEFF3DD3 WARNING: Accelerometer events are only available on the device. WARNING: Gyroscope events are only available on the device. WARNING: Disabling the idle timer reduces battery life on the device. Also, there is no timer on the simulator --\> PARTICLE SYSTEM READY. LET'S ROCK. Using java version "1.8.0\_102" Java(TM) SE Runtime Environment (build 1.8.0\_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en Testing credentials for '/Applications/CoronaSDK/Resource Library/Android/swapit.keystore': Picked up JAVA\_TOOL\_OPTIONS: -Duser.language=en jar signed. Building android app for zombieboffinstudioltd@outlook.com with 2016.2830 BUILD SUCCESSFUL Total time: 1 second CreateParamsArray: item.value unexpectedly NULL for item.key 'customBuildId' BuildID: 57c056dde0199 BUILD SUCCESSFUL Total time: 40 seconds Android build succeeded 2016-08-26 15:51:10.449 Corona Simulator[93551:2681118] Corona Simulator: Goodbye

 

Log Report on launching App on Device:

(Using log monitor from Android Studio)

 

08-27 03:56:16.661: I/Timeline(4403): Timeline: Activity\_launch\_request id:com.outlook.zombieboffinstudioltd.Water\_Jetters time:139755556 08-27 03:56:16.661: W/ResourcesManager(3440): getTopLevelResources: /data/app/com.outlook.zombieboffinstudioltd.Water\_Jetters-1/base.apk / 1.0 running in null rsrc of package com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.661: D/GameManagerService(3440): identifyGamePackage. com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.671: D/MultiWindowPolicy(3440): Gamemode - return 0,  when calling  identifyForegroundApp(com.outlook.zombieboffinstudioltd.Water\_Jetters) 08-27 03:56:16.671: V/WindowManager(3440): addAppToken: AppWindowToken{ec7daa6 token=Token{cfd4c01 ActivityRecord{be48de8 u0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity t1799}}} to stack=1 task=1799 at 0 08-27 03:56:16.671: D/ISSUE\_DEBUG(3440): InputChannelName : ad67a39 Starting com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.691: I/ActivityManager(3440): Start proc 15606:com.outlook.zombieboffinstudioltd.Water\_Jetters/u0a187 for activity com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity 08-27 03:56:16.691: W/SELinux(15606): SELinux: seapp\_context\_lookup: seinfo=default, level=s0:c512,c768, pkgname=com.outlook.zombieboffinstudioltd.Water\_Jetters  08-27 03:56:16.741: V/WindowStateAnimator(3440): Finishing drawing window Window{ad67a39 u0 d0 Starting com.outlook.zombieboffinstudioltd.Water\_Jetters}: mDrawState=DRAW\_PENDING 08-27 03:56:16.791: D/ActivityManager(3440):  Launching com.outlook.zombieboffinstudioltd.Water\_Jetters, updated priority 08-27 03:56:16.801: W/ResourcesManager(15606): getTopLevelResources: /data/app/com.outlook.zombieboffinstudioltd.Water\_Jetters-1/base.apk / 1.0 running in com.outlook.zombieboffinstudioltd.Water\_Jetters rsrc of package com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.811: V/MARsPolicyManager(3440): updatePackagesScore PackageInfo name -- com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.831: D/InjectionManager(15606): fillFeatureStoreMap com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.831: I/InjectionManager(15606): Constructor com.outlook.zombieboffinstudioltd.Water\_Jetters, Feature store :{} 08-27 03:56:16.841: W/ResourcesManager(15606): getTopLevelResources: /data/app/com.outlook.zombieboffinstudioltd.Water\_Jetters-1/base.apk / 1.0 running in com.outlook.zombieboffinstudioltd.Water\_Jetters rsrc of package com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:16.861: I/art(15606): Thread[1,tid=15606,Native,Thread\*=0xf4a24500,peer=0x76539460,"main"] recursive attempt to load library "/data/app/com.outlook.zombieboffinstudioltd.Water\_Jetters-1/lib/arm/libjnlua5.1.so" 08-27 03:56:16.991: D/ISSUE\_DEBUG(3440): InputChannelName : b10ba5c com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity 08-27 03:56:17.011: D/StatusBarManagerService(3440): manageDisableList userId=0 what=0x0 pkg=Window{b10ba5c u0 d0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity} 08-27 03:56:17.081: D/libGLESv1(15606): DTS\_GLAPI : DTS is not allowed for Package : com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:17.091: V/WindowStateAnimator(3440): Finishing drawing window Window{b10ba5c u0 d0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity}: mDrawState=DRAW\_PENDING 08-27 03:56:17.101: I/ActivityManager(3440): Displayed com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity: +419ms 08-27 03:56:17.101: I/Timeline(3440): Timeline: Activity\_windows\_visible id: ActivityRecord{be48de8 u0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity t1799} time:139755992 08-27 03:56:17.121: V/WindowStateAnimator(3440): Finishing drawing window Window{b10ba5c u0 d0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity}: mDrawState=HAS\_DRAWN 08-27 03:56:17.131: I/WindowManager(3440): Screen frozen for +403ms due to Window{ad67a39 u0 d0 Starting com.outlook.zombieboffinstudioltd.Water\_Jetters} 08-27 03:56:25.531: W/ResourcesManager(4132): getTopLevelResources: /data/app/com.outlook.zombieboffinstudioltd.Water\_Jetters-1/base.apk / 1.0 running in com.android.systemui rsrc of package com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:25.541: I/ApplicationPackageManager(4132): load=com.outlook.zombieboffinstudioltd.Water\_Jetters, bg=192-192, dr=192-192 08-27 03:56:25.681: V/WindowStateAnimator(3440): Finishing drawing window Window{b10ba5c u0 d0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity}: mDrawState=HAS\_DRAWN 08-27 03:56:25.681: V/ActivityThread(15606): updateVisibility : ActivityRecord{f8631a3 token=android.os.BinderProxy@11a3180 {com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity}} show : false 08-27 03:56:26.701: W/ResourcesManager(4132): getTopLevelResources: /data/app/com.outlook.zombieboffinstudioltd.Water\_Jetters-1/base.apk / 1.0 running in com.android.systemui rsrc of package com.outlook.zombieboffinstudioltd.Water\_Jetters 08-27 03:56:26.741: I/ApplicationPackageManager(4132): load=com.outlook.zombieboffinstudioltd.Water\_Jetters, bg=192-192, dr=192-192 08-27 03:56:29.571: D/Recents\_TaskView(4132): add blocking for com.outlook.zombieboffinstudioltd.Water\_Jetters of Close button 08-27 03:56:29.991: I/ActivityManager(3440): Killing 15606:com.outlook.zombieboffinstudioltd.Water\_Jetters/u0a187 (adj 9): remove task 08-27 03:56:30.111: I/WindowState(3440): WIN DEATH: Window{b10ba5c u0 d0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity} 08-27 03:56:30.111: W/WindowManager(3440): Force-removing child win Window{40bde3a u0 d0 SurfaceView} from container Window{b10ba5c u0 d0 com.outlook.zombieboffinstudioltd.Water\_Jetters/com.ansca.corona.CoronaActivity} 08-27 03:56:30.121: D/ActivityManager(3440): isAutoRunBlockedApp:: com.outlook.zombieboffinstudioltd.Water\_Jetters, Auto Run ON 08-27 03:56:30.151: V/MARsPolicyManager(3440): CurrentImportantPackage com.outlook.zombieboffinstudioltd.Water\_Jetters -in latest protected packageslist for SPCM!

 

 

More than happy to provide any additional information needed. Hope some one can help.

 

Many thanks

 

Kind Regards

 

Liam Young

Can you post your build.settings?

Hi Scott,

Thank you for your email, here my build settings:

settings = { orientation = {                 default = "landscapeRight",                 content = "landscapeRight",                   supported = { "landscapeRight", "landscapeLeft" }, }, plugins =          {                 ["plugin.google.iap.v3"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { android=true }                 },                         ["plugin.google.play.services"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { iphone=true, android=true }                 }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs",                         supportedPlatforms = { android = true }, },                 ["plugin.facebook.v4"] =                 {                     publisherId = "com.coronalabs"                 },                                 -- @schroederapps' Twitter plugin:                 ["plugin.twitter"] = {                     publisherId = "com.jasonschroeder",                 },                  ["plugin.applovin"] =                 {                     publisherId = "com.coronalabs",                     --supportedPlatforms = { iphone=true, android=true, appletvos=true }                 },                  ["plugin.kidoz"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { iphone=true, android=true }                 },                 },  android = { googlePlayGamesAppId = \*\*\*\*\*\*\*\*\*\*",  --insert your app id number for google game services                 versionCode="100",                 largeHeap=true, usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE",                         "com.android.vending.BILLING", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_NETWORK\_STATE",                         "android.permission.VIBRATE",                          },   usesFeatures = { { name = "android.hardware.camera", required = false }, { name = "android.hardware.location", required = false }, { name = "android.hardware.location.gps", required = false }, },                 facebookAppId = "XXXXXXXXXX",  -- Replace XXXXXXXXXX with your Facebook App ID }, iphone = { plist = {                         CFBundleName = "Water Jetters",                         CFBundleIconFile = "Icon.png", 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",  -- "Icon-Small.png",  -- "Icon-Small@2x.png", -- "Icon-Small-40.png", -- "Icon-Small-40@2x.png", -- "Icon-Small-50.png",  -- "Icon-Small-50@2x.png",  }, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work FacebookAppID = "XXXXXXXXXX", -- replace XXXXXXXXX with your facebook appId CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXX", -- replace XXXXXXXXX with your facebook appId, make sure that you leave fb in front of it } } },                         -- Whitelist Facebook Servers for Network Requests                         NSAppTransportSecurity =                          {                             NSExceptionDomains =                              {                                 ["fbcdn.net"] =                                  {                                     NSIncludesSubdomains = true,                                     NSExceptionRequiresForwardSecrecy = false,                                 },                                 ["facebook.com"] =                                  {                                     NSIncludesSubdomains = true,                                     NSExceptionRequiresForwardSecrecy = false,                                 },                                 ["akamaihd.net"] =                                  {                                     NSIncludesSubdomains = true,                                     NSExceptionRequiresForwardSecrecy = false,                                 },                             },                         },                         -- Whitelist Facebook Apps                         LSApplicationQueriesSchemes =                          {                             "fb",                             "fbapi20130214",                             "fbapi20130410",                             "fbapi20140410",                             "fbapi20140116",                             "fbapi20150313",                             "fbapi20150629",                             "fbauth",                             "fbauth2",                             "fb-messenger-api20140430",                         },                                                  NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },                 } },                  application =          {                     license =                     {                             google =                             {                                 key = "XXXXXXXXXX",                             },                     },         } }

Sorry for the indent, it doesn’t seem to like it much when I encase it in the code box, hope it still makes sense.

Many thanks

Liam 

  1. Your application table need to be move to a file called config.lua

  2. How are you testing this? I see your using expansion files

Hi Scott,

Thank you for the msg.
For testing I’ve tried transfereing the newly compiled build, apk directly to the device by using a usb wire and then connecting the phone to my mac and using android file transfer, once on the phone I’ve clicked on the apk and installed the app, i’ve also tried uploading the apk to alpha testing on the android development console and then selecting publish for a closed alpha test which was then declined due to the problems I’m currently having with the app on the device, where the app seems to freeze or crash immediately on launch, not even the initial logo loads. The app is about 200 mb so unfortunately I found out the hard way that the app needs to use expansion files to upload it to google play through the android development console as the max size a app/ apk can be without expansion files is 100 mb. Any ideas what it might be? I can try moving the applications section currently in build settings if you think it may help, though the last build  did previously work even though I had applications in the build settings. I completely stumped as to what I’ve missed or what not working. I’m just hoping maybe the answer in the monitor log above but I can’t really tell by looking at it. What your thoughts on what it could be?

Many thanks

Kind Regards

Liam

Are you uploading expansion files when you are doing alpha testing on Google play?

Hi Scott,

Sorry I didn’t get that, pls could you send again/ revise?
Sorry to be a pain.

Kind Regards

Liam

Sorry about that, updated my post above

Lol thanks scott, glad its not just me that does that.

Yeah I kept all the settings and sign off the same with the upload to the alpha testing as I did when I did the inital apk uploaded to the android dev console for it to eventually go on the store. I also tried both debug and the release build settings when directly transfereing the apk to the device. Does that sound correct?

Kind Regards

Liam

I am just wondering if you are unloading your expansion files to google play for testing

I recommend this tutorial

http://thatssopanda.com/corona-sdk-tutorials/using-expansion-files-with-android-and-google-play/

Hi Scott,

Thank you for the link it was of great help.

After playing around with the upload a bit I def think its a problem with linking the two separate files.

When I changed extended files to false and then built the app on debug mode and but it on the device the app works fine.

However when I build for release and upload it to the android developer console it plays up again.

I have made sure to attach the extension file in the advance mode but this hasn’t helped.

I think the first time I uploaded the app I hadn’t attached the extension file, however hopefully that miner miss isn’t the cause to these further problems now as I’m not sure how I could resolve that.

There is one thing that comes back a lot shown in the screenshots from the pre-launch report you can do when you submit your app to the store. On each of the device there was download error not market managed and then a second screen shot that said restart download and 0.00 / 0 mb?

Not sure what that means but definitely looks like a problem linking up the two files.

Not sure how I can resolve this as it does seem to me to be a linking problem?

Kind Regards

Liam

Can you post your build.settings?

Hi Scott,

Thank you for your email, here my build settings:

settings = { orientation = {                 default = "landscapeRight",                 content = "landscapeRight",                   supported = { "landscapeRight", "landscapeLeft" }, }, plugins =          {                 ["plugin.google.iap.v3"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { android=true }                 },                         ["plugin.google.play.services"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { iphone=true, android=true }                 }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs",                         supportedPlatforms = { android = true }, },                 ["plugin.facebook.v4"] =                 {                     publisherId = "com.coronalabs"                 },                                 -- @schroederapps' Twitter plugin:                 ["plugin.twitter"] = {                     publisherId = "com.jasonschroeder",                 },                  ["plugin.applovin"] =                 {                     publisherId = "com.coronalabs",                     --supportedPlatforms = { iphone=true, android=true, appletvos=true }                 },                  ["plugin.kidoz"] =                 {                     publisherId = "com.coronalabs",                     supportedPlatforms = { iphone=true, android=true }                 },                 },  android = { googlePlayGamesAppId = \*\*\*\*\*\*\*\*\*\*",  --insert your app id number for google game services                 versionCode="100",                 largeHeap=true, usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE",                         "com.android.vending.BILLING", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_NETWORK\_STATE",                         "android.permission.VIBRATE",                          },   usesFeatures = { { name = "android.hardware.camera", required = false }, { name = "android.hardware.location", required = false }, { name = "android.hardware.location.gps", required = false }, },                 facebookAppId = "XXXXXXXXXX",  -- Replace XXXXXXXXXX with your Facebook App ID }, iphone = { plist = {                         CFBundleName = "Water Jetters",                         CFBundleIconFile = "Icon.png", 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",  -- "Icon-Small.png",  -- "Icon-Small@2x.png", -- "Icon-Small-40.png", -- "Icon-Small-40@2x.png", -- "Icon-Small-50.png",  -- "Icon-Small-50@2x.png",  }, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work FacebookAppID = "XXXXXXXXXX", -- replace XXXXXXXXX with your facebook appId CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXX", -- replace XXXXXXXXX with your facebook appId, make sure that you leave fb in front of it } } },                         -- Whitelist Facebook Servers for Network Requests                         NSAppTransportSecurity =                          {                             NSExceptionDomains =                              {                                 ["fbcdn.net"] =                                  {                                     NSIncludesSubdomains = true,                                     NSExceptionRequiresForwardSecrecy = false,                                 },                                 ["facebook.com"] =                                  {                                     NSIncludesSubdomains = true,                                     NSExceptionRequiresForwardSecrecy = false,                                 },                                 ["akamaihd.net"] =                                  {                                     NSIncludesSubdomains = true,                                     NSExceptionRequiresForwardSecrecy = false,                                 },                             },                         },                         -- Whitelist Facebook Apps                         LSApplicationQueriesSchemes =                          {                             "fb",                             "fbapi20130214",                             "fbapi20130410",                             "fbapi20140410",                             "fbapi20140116",                             "fbapi20150313",                             "fbapi20150629",                             "fbauth",                             "fbauth2",                             "fb-messenger-api20140430",                         },                                                  NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },                 } },                  application =          {                     license =                     {                             google =                             {                                 key = "XXXXXXXXXX",                             },                     },         } }

Sorry for the indent, it doesn’t seem to like it much when I encase it in the code box, hope it still makes sense.

Many thanks

Liam 

  1. Your application table need to be move to a file called config.lua

  2. How are you testing this? I see your using expansion files

Hi Scott,

Thank you for the msg.
For testing I’ve tried transfereing the newly compiled build, apk directly to the device by using a usb wire and then connecting the phone to my mac and using android file transfer, once on the phone I’ve clicked on the apk and installed the app, i’ve also tried uploading the apk to alpha testing on the android development console and then selecting publish for a closed alpha test which was then declined due to the problems I’m currently having with the app on the device, where the app seems to freeze or crash immediately on launch, not even the initial logo loads. The app is about 200 mb so unfortunately I found out the hard way that the app needs to use expansion files to upload it to google play through the android development console as the max size a app/ apk can be without expansion files is 100 mb. Any ideas what it might be? I can try moving the applications section currently in build settings if you think it may help, though the last build  did previously work even though I had applications in the build settings. I completely stumped as to what I’ve missed or what not working. I’m just hoping maybe the answer in the monitor log above but I can’t really tell by looking at it. What your thoughts on what it could be?

Many thanks

Kind Regards

Liam

Are you uploading expansion files when you are doing alpha testing on Google play?

Hi Scott,

Sorry I didn’t get that, pls could you send again/ revise?
Sorry to be a pain.

Kind Regards

Liam

Sorry about that, updated my post above

Lol thanks scott, glad its not just me that does that.

Yeah I kept all the settings and sign off the same with the upload to the alpha testing as I did when I did the inital apk uploaded to the android dev console for it to eventually go on the store. I also tried both debug and the release build settings when directly transfereing the apk to the device. Does that sound correct?

Kind Regards

Liam

I am just wondering if you are unloading your expansion files to google play for testing

I recommend this tutorial

http://thatssopanda.com/corona-sdk-tutorials/using-expansion-files-with-android-and-google-play/