liblicensing.so: text relocations

Hello,

I created an application with Corona on Google Play in January 2013. It worked fine until now but on recent phones there is this message that appears:

Detected problems with app native libraries (liblicensing.so: text relocations)

Any help plz ?

Best regards.

What version of Corona SDK are you using?

Are you on a Mac or Windows?

Thanks

Rob

The application was completed in 2012 (with the most recent build of the time under MAC) and submitted in January 2013. There have never been any updates since it was working fine.

Thx.

It’s hard to know where this is because even though you may not have updated your very old Corona install, the build process happens on our servers and we have made many significant changes since 2012. I doubt either Google or Apple would accept builds using that old of a Corona anyway since they have made rules changes that we’ve had to update for.

My advice is to either get the latest public build (https://portal.coronalabs.com and click on the Download button) or visit the daily builds page linked at the top of the forums and download the latest daily build.

Your app could potentially pre-date our change to Graphics 2.0, our deprecation of the legacy sprite and storyboard libraries. I can help you quickly modernize your app to those changes, but lets update first, then try and build your app and see where we are.

Rob

Hello Rob,

I have made all change and app works fine in simulator but black screen on android device.

Build: 2017.3068

Thx.

You need to look at the console log and see what’s causing the errors. Since you’re on a Mac, if you have Corona install to the device for you and **do not** close the dialog box that shows up after the build finishes, you an run your app on your device and the messages will be routed to the Corona simulator console log.

Rob

I’m on a Mac and i use “adb logcat Corona:V *:S” to see log errors. I ve put to test in main.lua => print(“ok”) but nothing appears.

“graphicsCompatibility = 1” is still functional with Build: 2017.3068 ?

Thx

Why don’t you try letting Corona install the app and watch the Corona console?

It’s the same :wink:

result :


mai 19 09:10:24.845 Android build succeeded in 34 seconds

mai 19 09:12:20.214 Installing and running xxxxxx on Lenovo A5500-F

                    pkg: /data/local/tmp/CoronaSDK2e29d9760a02c30ee3a4474c563487ea.apk

                    

                    Success

                    

                    Starting: Intent { cmp=com.xxxxxx.xxxxxx/com.ansca.corona.CoronaActivity }

mai 19 09:12:20.214 ----------  Device Log Starts  ----------

mai 19 09:12:20.929 Lenovo A5500-F: P

mai 19 09:12:20.930 latform: Lenovo A5500-F / ARM Neon / 4.4.2 / Mali-400 MP / OpenGL ES 2.0 / 2017.3068

mai 19 09:12:32.823 ---------- Device Log Finished ----------

and black screen…

build.settings


settings = { orientation = { default = "portrait", supported = { "portrait", "landscapeRight", "landscapeLeft" } }, splashScreen = { enable = false, }, android = { versionCode = "15", --usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE" }, }, }

config.lua


application = { content = { graphicsCompatibility = 1, width = 480, height = 854, scale = "zoomStretch", fps = 30, imageSuffix = { ["@2x"] = 2, } }, license = { google = { key = "xxxxxxxxxxxxxxxxx" }, }, }

main.lua


display.setStatusBar( display.HiddenStatusBar ) print("ok") -- appears on simulator not on device -- include the Corona "storyboard" module local storyboard = require "storyboard" -- load menu screen storyboard.gotoScene( "menu", "fade", 500 )

storyboard.lua is in my directory but i ve tried with composer and it’s the same result.

Thx!

Solved

At the time the application was created the file json.lua had to be in the principal directory but now it is part of the kernel.

Just delete the file json.lua for it to work.

What version of Corona SDK are you using?

Are you on a Mac or Windows?

Thanks

Rob

The application was completed in 2012 (with the most recent build of the time under MAC) and submitted in January 2013. There have never been any updates since it was working fine.

Thx.

It’s hard to know where this is because even though you may not have updated your very old Corona install, the build process happens on our servers and we have made many significant changes since 2012. I doubt either Google or Apple would accept builds using that old of a Corona anyway since they have made rules changes that we’ve had to update for.

My advice is to either get the latest public build (https://portal.coronalabs.com and click on the Download button) or visit the daily builds page linked at the top of the forums and download the latest daily build.

Your app could potentially pre-date our change to Graphics 2.0, our deprecation of the legacy sprite and storyboard libraries. I can help you quickly modernize your app to those changes, but lets update first, then try and build your app and see where we are.

Rob

Hello Rob,

I have made all change and app works fine in simulator but black screen on android device.

Build: 2017.3068

Thx.

You need to look at the console log and see what’s causing the errors. Since you’re on a Mac, if you have Corona install to the device for you and **do not** close the dialog box that shows up after the build finishes, you an run your app on your device and the messages will be routed to the Corona simulator console log.

Rob

I’m on a Mac and i use “adb logcat Corona:V *:S” to see log errors. I ve put to test in main.lua => print(“ok”) but nothing appears.

“graphicsCompatibility = 1” is still functional with Build: 2017.3068 ?

Thx

Why don’t you try letting Corona install the app and watch the Corona console?

It’s the same :wink:

result :


mai 19 09:10:24.845 Android build succeeded in 34 seconds

mai 19 09:12:20.214 Installing and running xxxxxx on Lenovo A5500-F

                    pkg: /data/local/tmp/CoronaSDK2e29d9760a02c30ee3a4474c563487ea.apk

                    

                    Success

                    

                    Starting: Intent { cmp=com.xxxxxx.xxxxxx/com.ansca.corona.CoronaActivity }

mai 19 09:12:20.214 ----------  Device Log Starts  ----------

mai 19 09:12:20.929 Lenovo A5500-F: P

mai 19 09:12:20.930 latform: Lenovo A5500-F / ARM Neon / 4.4.2 / Mali-400 MP / OpenGL ES 2.0 / 2017.3068

mai 19 09:12:32.823 ---------- Device Log Finished ----------

and black screen…

build.settings


settings = { orientation = { default = "portrait", supported = { "portrait", "landscapeRight", "landscapeLeft" } }, splashScreen = { enable = false, }, android = { versionCode = "15", --usesExpansionFile = true, usesPermissions = { "android.permission.INTERNET", "com.android.vending.CHECK\_LICENSE", "android.permission.WRITE\_EXTERNAL\_STORAGE" }, }, }

config.lua


application = { content = { graphicsCompatibility = 1, width = 480, height = 854, scale = "zoomStretch", fps = 30, imageSuffix = { ["@2x"] = 2, } }, license = { google = { key = "xxxxxxxxxxxxxxxxx" }, }, }

main.lua


display.setStatusBar( display.HiddenStatusBar ) print("ok") -- appears on simulator not on device -- include the Corona "storyboard" module local storyboard = require "storyboard" -- load menu screen storyboard.gotoScene( "menu", "fade", 500 )

storyboard.lua is in my directory but i ve tried with composer and it’s the same result.

Thx!

Solved

At the time the application was created the file json.lua had to be in the principal directory but now it is part of the kernel.

Just delete the file json.lua for it to work.