Android, Runtime Error

On the beginning apologize for my english.

All my description are in Bold font.

Is there anyone who successfully Download, Build and Run “Flappy Bird - Corona Game Template” from Getting Started section (https://marketplace.coronalabs.com/app-templates/flappy-bird-corona-game-template). I was trying to run that game on Android device and on Web with only small success. In all text, phrase like ‘CMR-W09:’ came from my Android device.

When I try build for Android device I have this:

Dec 15 04:57:50.627 Using java version “1.8.0_191” Java™ SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)

Dec 15 04:57:51.270 Building Android app for xxxx@yyy.zzz.vv with 2018.3452

Dec 15 04:57:52.456 Using custom build id from app bundle: 00000 (AppSettings.lua)

Dec 15 04:57:53.096 BUILD SUCCESSFUL Total time: 0 seconds

Dec 15 04:57:57.080 Excluding specified files from build:   excluding: LaunchScreen.storyboardc   excluding: Icon.png   excluding: Icon-*dpi.png   excluding: Images.xcassets BuildID: kCoronaBuild [A device build error occurred on the server. Error: Get plugin failed. Plugin: plugin.vk.direct Publisher: com.coronalabs User Account: xxxx@yyy.zzz.vv BuildID: 5c1524813c169

Dec 15 04:57:57.080 ERROR: An error occurred during build (corona.build.7). The server returned the following message: — A device build error occurred on the server. Error: Get plugin failed. Plugin: plugin.vk.direct Publisher: com.coronalabs User Account: xxxx@yyy.zzz.vv BuildID: 5c1524813c169 —

Dec 15 04:57:57.081 

Dec 15 04:57:57.085 Android build failed (5) after 5 seconds

Dec 15 04:57:57.329 ERROR: Build Failed: A device build error occurred on the server. Error: Get plugin failed. Plugin: plugin.vk.direct Publisher: com.coronalabs User Account: xxxx@yyy.zzz.vv BuildID: 5c1524813c169 Error code: 5

Dec 15 04:57:57.329 

When I run this app as HTML5(beta) on Web (Safari, Firefox, Chrome) I get this:

ERROR: Runtime error

module ‘plugin.appodeal’ not found:resource (plugin.appodeal.lu) does not exist in archive

no field package.preload[‘plugin.appodeal’]

no file ‘//plugin/appodeal.lua’

no file ‘//plugin/appodeal.lua’

no file ‘./plugin/appodeal.so’

no file ‘//plugin/appodeal.so’

no file ‘./plugin.so’

no file ‘//plugin.so

stack traceback:

[C]: in function ‘require’

?: in function ‘require’

?: in main chunk

From that time on I’m no longer interested in running for Web, only Android. Then I moved all plugins configuration part, like this:

plugins = {   "plugin.vk.direct"] =   {     publisherId = "com.coronalabs"   },   ["plugin.appodeal"] =   {     publisherId = "com.coronalabs"   }, },

to Android config. part, like this:

-- -- Android section -- android = {   plugins =   {     ["plugin.vk.direct"] =     {     publisherId = "com.coronalabs"     },     ["plugin.appodeal"] =     {       publisherId = "com.coronalabs"     },   },   usesPermissions =   {     "android.permission.INTERNET",   }, },

Despite the some warning on Console:

Dec 15 05:36:35.405 WARNING: issue found in build.settings: 

Dec 15 05:36:35.405 WARNING: unrecognized key: settings.android.plugins (table)

Dec 15 05:36:35.405 Copyright © 2009-2018  C o r o n a   L a b s   I n c .

                    Version: 3.0.0

                    Build: 2018.3326

Dec 15 05:36:35.412 Loading project from:   ~/Desktop/cosmonautbird

Dec 15 05:36:35.412 Project sandbox folder: ~/Library/Application Support/Corona Simulator/cosmonautbird-4D00F4CB7C47EFF23305B2062425F426

Dec 15 05:36:35.462 Platform: My Custom Device / x86_64 / 10.14.2 / NVIDIA GeForce GT 750M OpenGL Engine / 2.1 NVIDIA-12.0.21 355.11.10.50.10.103 / 2018.3326 / en-PL | PL | en_PL | en

Dec 15 05:36:35.494 WARNING: plugin.appodeal is not configured in build.settings

                    stack traceback:

                    main.lua:8: in main chunk

Dec 15 05:36:35.494 

Dec 15 05:36:35.525 appodeal.init() WARNING: The Appodeal plugin is only supported on Android and iOS devices. Please build for device

Dec 15 05:36:35.525 

app builds, copied to device, runs and then on Console I get this:

Dec 15 05:24:21.983 CMR-W09: Unable to start service Intent { act=com.huawei.launcher.action.LAUNCHER_APP_STARTUP pkg=com.huawei.trustspace (has extras) } U=0: not found

Dec 15 05:24:22.348 CMR-W09: Platform: CMR-W09 / ARM Neon / 8.0.0 / Mali-G71 / OpenGL ES 3.2 v1.r8p0-00cet0.c14e014a87b26dd123ddd0d6c57eeff3 / 2018.3326 / English | GB | en_GB | en

Dec 15 05:24:22.366 CMR-W09: WARNING: Could not load class ‘plugin_vk_direct.LuaLoader’

Dec 15 05:24:22.367 

Dec 15 05:24:22.370 CMR-W09: ERROR: Runtime error

Dec 15 05:24:22.371 CMR-W09: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/re

Dec 15 05:24:22.372 sources/init.lua:913: module ‘plugin_vk_direct’ not found:resource (plugin_vk_direct.lu) does not exist in archive

                    CMR-W09: no field package.preload[‘plugin_vk_direct’]

                    CMR-W09: no file ‘(null)/plugin_vk_direct.lua’

                    CMR-W09: no file ‘(null)/plugin_vk_direct.lua’

                    CMR-W09: no file ‘/data/app/pl.net.toya.mjako.cosmonautbird-HBSr9wlaDEMM1bjRXiZw6w==/lib/arm/libplugin_vk_direct.so’

                    CMR-W09: no file ‘./plugin_vk_direct.so’

                    CMR-W09: no file ‘(null)/plugin_vk_direct.so’

                    CMR-W09: no file ‘/data/app/pl.net.toya.mjako.cosmonautbird-HBSr9wlaDEMM1bjRXiZw6w==/lib/arm/libplugin_vk_direct.so’

                    CMR-W09: no file ‘./plugin_vk_direct.so’

                    CMR-W09: no file ‘(null)/plugin_vk_direct.so’

                    CMR-W09: stack traceback:

                    CMR-W09: [C]: in function ‘require’

                    CMR-W09: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:913: in function ‘require’

                    CMR-W09: main.lua:7: in main chunk

Dec 15 05:24:22.372 CMR-W09: ERROR: Runtime error

Dec 15 05:24:22.372 CMR-W09: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:913: module ‘plugin_vk_direct’ not found:resource (plugin_vk_direct.lu) does not exist in archive

                    CMR-W09: no field package.preload[‘plugin_vk_direct’]

                    CMR-W09: no file ‘(null)/plugin_vk_direct.lua’

                    CMR-W09: no file ‘(null)/plugin_vk_direct.lua’

                    CMR-W09: no file ‘/data/app/pl.net.toya.mjako.cosmonautbird-HBSr9wlaDEMM1bjRXiZw6w==/lib/arm/libplugin_vk_direct.so’

                    CMR-W09: no file ‘./plugin_vk_direct.so’

                    CMR-W09: no file ‘(null)/plugin_vk_direct.so’

                    CMR-W09: no file ‘/data/app/**.***.****.****.cosmonautbird-HBSr9wlaDEMM1bjRXiZw6w==/lib/arm/libplugin_vk_direct.so’

                    CMR-W09: no file ‘./plugin_vk_direct.so’

                    CMR-W09: no file ‘(null)/plugin_vk_direct.so’

                    CMR-W09: stack traceback:

                    CMR-W09: [C]: ?

                    CMR-W09: [C]: in function ‘require’

                    CMR-W09: /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:913: in function ‘require’

                    CMR-W09: main.lua:7: in main chunk

On device I get this:

Runtime Error:

/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:913: module ‘plugin_vk_direct’ not found:resource (plugin_vk_direct.lu) does not exist in archive

  no field package.preload[‘plugin_vk_direct’]

  no file ‘(null)/plugin_vk_direct.lua’

  no file ‘(null)/plugin_vk_direct.lua’

  no file ‘/data/app/’

  .

  .

  .

  no file ‘./plugin_vk_direct.so’

  no file ‘(null)/plugin_vk_direct.so’

  no file ‘/data/app’

I already activated Appodeal and VK Direct Games plugins.

Corona build Versions:

2018.3326

2018.3452

Mac OSX 10.14.2

If you are here thank you for you patience.

Any idea?

Regards,

Marek

the plugins table is not a child of android or ios. It is at the same level.

Ex:

settings = { plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, }

Also, please format all code posts using the built-in forums tools.

Thank you.

Thank you very much for advice about code (already done). Let me back to my problem with app.

This is oryginal content (downloaded from https://coronalabs.com page) of “build.settings” file:

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = {   MinimumOSVersion = "8.0",   ITSAppUsesNonExemptEncryption = false,   UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", ITSAppUsesNonExemptEncryption = false,     NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, }, }, -- -- Plugins section -- plugins = { ["plugin.vk.direct"] = { publisherId = "com.coronalabs" }, ["plugin.appodeal"] = { publisherId = "com.coronalabs" }, }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }

Unfortunately problem to build app still remains, this is the error description from Console:

Dec 15 11:15:51.884 Using java version “1.8.0_191”

Java™ SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)

Dec 15 11:15:56.202 Using java version “1.8.0_191”
Java™ SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)

Dec 15 11:15:56.852 Building Android app for aaa@aaa.aaa.aa with 2018.3326

Dec 15 11:15:58.718 BUILD SUCCESSFUL
Total time: 0 seconds

Dec 15 11:16:07.839 Excluding specified files from build:
   excluding: LaunchScreen.storyboardc
   excluding: Icon.png
   excluding: Icon-*dpi.png
   excluding: Images.xcassets
BuildID: kCoronaBuild [A device build error occurred on the server.

Error: Get plugin failed.

Plugin: plugin.vk.direct
Publisher: com.coronalabs
User Account: aaaa@aaaa.aaa.aa

BuildID: 5c157d1edcd7d

Dec 15 11:16:07.840 ERROR: An error occurred during build (corona.build.7). The server returned the following message:

A device build error occurred on the server.

Error: Get plugin failed.

Plugin: plugin.vk.direct
Publisher: com.coronalabs
User Account: aaaa@aaaa.aaa.aa

BuildID: 5c157d1edcd7d

Dec 15 11:16:07.841 

Dec 15 11:16:07.855 Android build failed (5) after 9 seconds

Dec 15 11:16:08.130 ERROR: Build Failed: A device build error occurred on the server.

Error: Get plugin failed.

Plugin: plugin.vk.direct
Publisher: com.coronalabs
User Account: aaaaa@aaaa.aaa.aa

BuildID: 5c157d1edcd7d

Error code: 5

Dec 15 11:16:08.130 

Any advice mostly appreciated.

Best Regards,

Marek

  1. Use a real email account. aaaa@aaa.aaa is not a real account.

If that is not because of you, then something weird is going on w/ your sign-in.

Note: Did you change that in the post to hide your email? If so, skip this.
 

  1. Did you activate the plugin?
    Log in to the Corona site and go here to see if it is activated: https://marketplace.coronalabs.com/corona-plugins/vk-direct

Hmmm… I just reproduced this same problem with this tiny example:

https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2018/12/vk.zip

Looks like you need to file a bug:
https://developer.coronalabs.com/content/bug-submission

You can use my mini-project to file it if you want.

Yes @roaminggamer

Email address was changed to hide real email which i use to login to Corona Web page.

Yesterday I also was tried more or less the same code with “vkListener” function, but as Corona beginner I thought that is my mistake.

Yes the same result with your tiny “vk” example.

As I wrote in my first post:

I already activated Appodeal and VK Direct Games plugins from Coronalabs.com page.

 

Corona build Versions:

2018.3326

2018.3452

 

Mac OSX 10.14.2

 

I run on this two units:

HTC One X smartphone, Android 4.0.4

HUAWEI MediaPad M5 tablet, Android 8.0.0

 

Looks like tomorrow I must file a bug.

 

Thank you very much for your effort.

 

Best Regards,

Marek

You’re welcome.  Note: I tend to skim long posts so I didn’t see your note on activation.

That said, your post was good and had  the parts/content I usually ask for.  :slight_smile:

Cheers and welcome to the community.

Here is the problem. The VK plugin only works with HTML5 builds. The Appodeal plugin only works with iOS and Android. The two cannot be used together. I will reach out to the developer and have him address this. 

In the meantime you will have to comment out one of the two plugins depending on which platform you are wanting to build for. You will have to go into the code and put conditional “if” statements around the requiring of the plugin and when the plugin is actually being called.

Rob

the plugins table is not a child of android or ios. It is at the same level.

Ex:

settings = { plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, }

Also, please format all code posts using the built-in forums tools.

Thank you.

Thank you very much for advice about code (already done). Let me back to my problem with app.

This is oryginal content (downloaded from https://coronalabs.com page) of “build.settings” file:

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = {   MinimumOSVersion = "8.0",   ITSAppUsesNonExemptEncryption = false,   UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", ITSAppUsesNonExemptEncryption = false,     NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, }, }, -- -- Plugins section -- plugins = { ["plugin.vk.direct"] = { publisherId = "com.coronalabs" }, ["plugin.appodeal"] = { publisherId = "com.coronalabs" }, }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }

Unfortunately problem to build app still remains, this is the error description from Console:

Dec 15 11:15:51.884 Using java version “1.8.0_191”

Java™ SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)

Dec 15 11:15:56.202 Using java version “1.8.0_191”
Java™ SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot™ 64-Bit Server VM (build 25.191-b12, mixed mode)

Dec 15 11:15:56.852 Building Android app for aaa@aaa.aaa.aa with 2018.3326

Dec 15 11:15:58.718 BUILD SUCCESSFUL
Total time: 0 seconds

Dec 15 11:16:07.839 Excluding specified files from build:
   excluding: LaunchScreen.storyboardc
   excluding: Icon.png
   excluding: Icon-*dpi.png
   excluding: Images.xcassets
BuildID: kCoronaBuild [A device build error occurred on the server.

Error: Get plugin failed.

Plugin: plugin.vk.direct
Publisher: com.coronalabs
User Account: aaaa@aaaa.aaa.aa

BuildID: 5c157d1edcd7d

Dec 15 11:16:07.840 ERROR: An error occurred during build (corona.build.7). The server returned the following message:

A device build error occurred on the server.

Error: Get plugin failed.

Plugin: plugin.vk.direct
Publisher: com.coronalabs
User Account: aaaa@aaaa.aaa.aa

BuildID: 5c157d1edcd7d

Dec 15 11:16:07.841 

Dec 15 11:16:07.855 Android build failed (5) after 9 seconds

Dec 15 11:16:08.130 ERROR: Build Failed: A device build error occurred on the server.

Error: Get plugin failed.

Plugin: plugin.vk.direct
Publisher: com.coronalabs
User Account: aaaaa@aaaa.aaa.aa

BuildID: 5c157d1edcd7d

Error code: 5

Dec 15 11:16:08.130 

Any advice mostly appreciated.

Best Regards,

Marek

  1. Use a real email account. aaaa@aaa.aaa is not a real account.

If that is not because of you, then something weird is going on w/ your sign-in.

Note: Did you change that in the post to hide your email? If so, skip this.
 

  1. Did you activate the plugin?
    Log in to the Corona site and go here to see if it is activated: https://marketplace.coronalabs.com/corona-plugins/vk-direct

Hmmm… I just reproduced this same problem with this tiny example:

https://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2018/12/vk.zip

Looks like you need to file a bug:
https://developer.coronalabs.com/content/bug-submission

You can use my mini-project to file it if you want.

Yes @roaminggamer

Email address was changed to hide real email which i use to login to Corona Web page.

Yesterday I also was tried more or less the same code with “vkListener” function, but as Corona beginner I thought that is my mistake.

Yes the same result with your tiny “vk” example.

As I wrote in my first post:

I already activated Appodeal and VK Direct Games plugins from Coronalabs.com page.

 

Corona build Versions:

2018.3326

2018.3452

 

Mac OSX 10.14.2

 

I run on this two units:

HTC One X smartphone, Android 4.0.4

HUAWEI MediaPad M5 tablet, Android 8.0.0

 

Looks like tomorrow I must file a bug.

 

Thank you very much for your effort.

 

Best Regards,

Marek

You’re welcome.  Note: I tend to skim long posts so I didn’t see your note on activation.

That said, your post was good and had  the parts/content I usually ask for.  :slight_smile:

Cheers and welcome to the community.

Here is the problem. The VK plugin only works with HTML5 builds. The Appodeal plugin only works with iOS and Android. The two cannot be used together. I will reach out to the developer and have him address this. 

In the meantime you will have to comment out one of the two plugins depending on which platform you are wanting to build for. You will have to go into the code and put conditional “if” statements around the requiring of the plugin and when the plugin is actually being called.

Rob