Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Live builds don't seem to be working anymore
Started by sergio.rodrigo.royo Mar 20 2019 09:12 AM

9 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

sergio.rodrigo.royo

[GLOBAL: userInfoPane.html]
sergio.rodrigo.royo
  • Observer

  • 13 posts
  • Corona SDK

After adding the appodeal plugin, live builds don't work for me anymore after changing the app package name to be the same as the one on the appodeal app configuration. I've connected my phone and noticed this on the logs:

3-20 17:20:20.008 18129 18230 V Corona  : > Class.forName: network.LuaLoader
03-20 17:20:20.008 18129 18230 V Corona  : < Class.forName: network.LuaLoader
03-20 17:20:20.008 18129 18230 V Corona  : Loading via reflection: network.LuaLoader
03-20 17:20:20.010 18129 18230 I Corona  : Platform: Nexus 5X / ARM Neon / 8.1.0 / Adreno (TM) 418 / OpenGL ES 3.2 V@258.0 (GIT@8e59954, I0be83d0d26) (Date:09/22/17) / 2018.3326 / English | GB | en_GB | en
03-20 17:20:20.015 18129 18230 V Corona  : > Class.forName: _Corona_Build_Number.LuaLoader
03-20 17:20:20.021 18129 18230 V Corona  : > Class.forName: shared.google.play.services.base.LuaLoader
03-20 17:20:20.029 18129 18230 V Corona  : > Class.forName: CoronaProvider.licensing.google.LuaLoader
03-20 17:20:20.029 18129 18230 V Corona  : < Class.forName: CoronaProvider.licensing.google.LuaLoader
03-20 17:20:20.029 18129 18230 V Corona  : Loading via reflection: CoronaProvider.licensing.google.LuaLoader
03-20 17:20:20.030 18129 18230 V Corona  : > Class.forName: _CoronaSetup.LuaLoader
03-20 17:20:20.032 18129 18230 V Corona  : > Class.forName: plugin.liveBuild.LuaLoader
03-20 17:20:20.032 18129 18230 V Corona  : < Class.forName: plugin.liveBuild.LuaLoader
03-20 17:20:20.032 18129 18230 V Corona  : Loading via reflection: plugin.liveBuild.LuaLoader
03-20 17:20:20.053 18129 18230 V Corona  : > Class.forName: plugin.appodeal.LuaLoader

The app doesn't even load, it stops there. It loads ok if I change the app package name to something else, but then ads won't show, obviously.

 

The non-live builds works correctly on the device. This is pretty annoying because I can't use live builds and it takes a while to create a normal build, install it and test.

 

Any idea about this?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,467 posts
  • Enterprise

There is a live builds hidden file in the same folder with main.lua. I'm not at a point I can look it's name up, but you can try removing it. You can also close and reopen your live build server.

 

Check to make sure your your device and your computer are on the same wifi network.

 

 

Rob



[TOPIC: post.html]
#3

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,044 posts
  • Corona SDK

I have been using the live build functionality all day without any issues.

 

I am using build:

2019.3470



[TOPIC: post.html]
#4

sergio.rodrigo.royo

[GLOBAL: userInfoPane.html]
sergio.rodrigo.royo
  • Observer

  • 13 posts
  • Corona SDK

There is a live builds hidden file in the same folder with main.lua. I'm not at a point I can look it's name up, but you can try removing it. You can also close and reopen your live build server.

 

Check to make sure your your device and your computer are on the same wifi network.

 

 

Rob

Do you mean .CoronaLiveBuild? I've tried to remove it multiple times. I've also followed all the steps described on the troubleshooting section here https://docs.coronalabs.com/guide/distribution/liveBuild/index.html and still same problem as long as the package name (bundle id) is the same as the one used by the app settings on Appodeal.

 

I have been using the live build functionality all day without any issues.

 

I am using build:

2019.3470

Are you using the Appodeal plugin? I've tried with other apps that are not using the plugin and they work. I suspect it's a problem with Appodeal + package name; other combinations seem to work for me.



[TOPIC: post.html]
#5

sergio.rodrigo.royo

[GLOBAL: userInfoPane.html]
sergio.rodrigo.royo
  • Observer

  • 13 posts
  • Corona SDK

For the sake of double checking, I've done the following:

  1. Install 2019.3470 build
  2. Build the Android live build with a different package name than the one configured on Appodeal for the app. I added an extra letter. The app loads (of course, ads don't as the package name is not the correct one)
  3. Remove .CoronaLiveBuild file
  4. Uninstall the app from the device
  5. Build the Android live build with the correct package name. The app doesn't load anymore.
  6. Checkout one of the initial commits, which doesn't have the Appodeal plugin
  7. Remove .CoronaLiveBuild file
  8. Uninstall the app from the device
  9. Build the Android live build with the package name used by Appodeal app. The app doesn't load, even if it's not using the plugin. The adb log gets stuck at "Loading via reflection: plugin.liveBuild.LuaLoader"
  10. Uninstall the app from the device
  11. Build the Android live build with a different package name. The app loads correctly.

So it looks to me like a problem with the package name. No idea why... It doesn't contain any weird characters or anything like that.



[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,044 posts
  • Corona SDK

Yes using the appodeal plugin and bunch of others. All my plugins:

['plugin.toast'] = 
        {
            publisherId = 'com.spiralcodestudio'
        },
        ["plugin.gamesparks"] =
        {
            publisherId = "com.gamesparks",
        },
        ["plugin.openssl"] =
        {
            publisherId = "com.coronalabs",
        },
        ["plugin.bit"] =
        {
            publisherId = "com.coronalabs"
        },
        ["plugin.GBCLanguageCabinet"] = {
            publisherId = "com.gamesbycandlelight"
        },
        ["plugin.gpgs"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
        ["CoronaProvider.gameNetwork.apple"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true }
        },
        ["plugin.idVerifySig"] =
        {
            publisherId = "com.cabagomez",
            supportedPlatforms = { iphone=true }
        },
        ["plugin.flurry.analytics"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true  }
        },
        ["plugin.reviewPopUp"] =
        {
            publisherId = "tech.scotth",
            supportedPlatforms = { iphone=true }
        },
        ["plugin.tenjin"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true }
        },
        ["plugin.iap_badger"] =
        {
            -- required
            publisherId = "uk.co.happymongoose",
        },
        ["plugin.google.iap.v3"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
        ["plugin.amazon.iap"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { ["android-kindle"]=true } 
        },
        
        -- Appodeal
        ['plugin.appodeal.beta.base'] = { 
            publisherId = 'com.coronalabs',
            supportedPlatforms = { iphone=true, android=true }
        },
        ['plugin.appodeal.beta.FacebookAudience'] = { 
            publisherId = 'com.coronalabs',
            supportedPlatforms = { iphone=true, android=true }
        },
        ['plugin.appodeal.beta.AmazonAds'] = { 
            publisherId = 'com.coronalabs',
            supportedPlatforms = { iphone=true, android=true }
        },
        ['plugin.appodeal.beta.GoogleAdMob'] = { 
            publisherId = 'com.coronalabs',
            supportedPlatforms = { iphone=true, android=true }
        }

  • sergio.rodrigo.royo likes this

[TOPIC: post.html]
#7

sergio.rodrigo.royo

[GLOBAL: userInfoPane.html]
sergio.rodrigo.royo
  • Observer

  • 13 posts
  • Corona SDK

Thanks @agramonte. I've got quite a few more Appodeal plugins (basically all of them), but I don't see why that would be a problem, as even reverting back to a version without ads suffers from the same problem.

 

I  really have no idea what else to try.



[TOPIC: post.html]
#8

thomas6

[GLOBAL: userInfoPane.html]
thomas6
  • Contributor

  • 936 posts
  • Corona SDK

Live builds often stop working for me. I'm lazy, so I just use a workaround:

- downloading a different/later daily build, build my app again and then usually things work again

- if that still doesn't help, create a new "empty" app from the simulator, and copy/paste the old files in it, then build for device again.

 

Like I said, it's a workaround, but it's good enough for me.


  • sergio.rodrigo.royo likes this

[TOPIC: post.html]
#9

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 635 posts
  • Corona Staff

Hey! Thanks for trying things out, but using some Plugins with Live Builds can be tricky - far from all ad networks allow to re-initialize their runtimes without consequences. I feel like you may hit one of those cases. Sorry about that.


  • sergio.rodrigo.royo likes this

[TOPIC: post.html]
#10

sergio.rodrigo.royo

[GLOBAL: userInfoPane.html]
sergio.rodrigo.royo
  • Observer

  • 13 posts
  • Corona SDK

Okay, thanks :)




[topic_controls]
[/topic_controls]