App crash (This application failed to load and execute main.lua)

Hello.

I’ve made a signed build of my app. It works, but not for all phones.
On almost all samsung and xiaomi phones it crashes after logo “Made with Solar2D”

Some logs:

02-15 19:52:04.765 W/company.rentge(29249): Unsupported class loader
02-15 19:52:04.773 W/company.rentge(29249): Skipping duplicate class check due to unsupported classloader
02-15 19:52:05.225 I/Corona  (29249): This application failed to load and execute main.lua
02-15 19:52:05.227 W/company.rentge(29249): 0xebadde09 skipped times: 0
02-15 19:52:05.261 W/System  (29249): A resource failed to call close.

Also when i install my application on emulator “Memu” via Android Studio → Run it works.
But when i made a signed apk - it also crashes with same errors

Not a whole lot to go on based on logs, could be use plugin that requires Google Play services?

Maybe. but when i build app via Corona Simulator - it works.
More logs, hope it will be useful


02-16 08:58:26.035 E/Zygote  ( 3534): isWhitelistProcess - Process is Whitelisted
02-16 08:58:26.036 E/Zygote  ( 3534): accessInfo : 1
02-16 08:58:26.064 I/company.rentge( 3534): report jit thread pid = 3540
02-16 08:58:26.066 E/company.rentge( 3534): Not starting debugger since process cannot load the jdwp agent.
02-16 08:58:26.212 I/company.rentge( 3534): The ClassLoaderContext is a special shared library.
02-16 08:58:26.272 I/FirebaseApp( 3534): Device unlocked: initializing all Firebase APIs for app [DEFAULT]
02-16 08:58:26.307 I/company.rentge( 3534): Background concurrent copying GC freed 4308(1323KB) AllocSpace objects, 0(0B) LOS objects, 58% free, 1098KB/2MB, paused 8.565ms total 49.024ms

02-16 08:58:26.346 I/FirebaseInitProvider( 3534): FirebaseApp initialization successful
02-16 08:58:26.447 W/company.rentge( 3534): Unsupported class loader
02-16 08:58:26.456 W/company.rentge( 3534): Skipping duplicate class check due to unsupported classloader
02-16 08:58:26.458 I/DynamiteModule( 3534): Considering local module com.google.android.gms.measurement.dynamite:64 and remote module com.google.android.gms.measurement.dynamite:59
02-16 08:58:26.458 I/DynamiteModule( 3534): Selected local version of com.google.android.gms.measurement.dynamite
02-16 08:58:26.483 I/OpenAL_SLES( 3534): alc_opensles_init
02-16 08:58:26.483 D/NetworkSecurityConfig( 3534): No Network Security Config specified, using platform default
02-16 08:58:26.549 I/System.out( 3534): (HTTPLog)-Static: isSBSettingEnabled false
02-16 08:58:26.550 I/System.out( 3534): (HTTPLog)-Static: isSBSettingEnabled false
02-16 08:58:26.554 D/NetworkManagementSocketTagger( 3534): tagSocket(49) with statsTag=0x8001, statsUid=-1
02-16 08:58:26.666 I/FA      ( 3534): App measurement initialized, version: 55005
02-16 08:58:26.667 I/FA      ( 3534): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
02-16 08:58:26.667 I/FA      ( 3534): To enable faster debug mode event logging run:
02-16 08:58:26.667 I/FA      ( 3534):   adb shell setprop debug.firebase.analytics.app pro.sscompany.rentgen
02-16 08:58:26.732 I/DecorView( 3534): createDecorCaptionView >> DecorView@70d8d03[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
02-16 08:58:26.759 D/OpenGLRenderer( 3534): Skia GL Pipeline
02-16 08:58:26.864 I/FA      ( 3534): Tag Manager is not found and thus will not be used
02-16 08:58:26.869 W/SoundPool( 3534): Use of stream types is deprecated for operations other than volume control
02-16 08:58:26.869 W/SoundPool( 3534): See the documentation of SoundPool() for what to use instead with android.media.AudioAttributes to qualify your playback use case
02-16 08:58:27.033 W/System  ( 3534): A resource failed to call close.
02-16 08:58:27.098 D/SensorManager( 3534): registerListener :: 0, LIS2DS Accelerometer, 200000, 0,
02-16 08:58:27.109 D/EmergencyMode( 3534): [EmergencyManager] android createPackageContext successful
02-16 08:58:27.144 D/InputTransport( 3534): Input channel constructed: fd=63
02-16 08:58:27.145 D/ViewRootImpl@ba77759[CoronaActivity]( 3534): setView = DecorView@70d8d03[CoronaActivity] TM=true MM=false
02-16 08:58:27.158 D/SurfaceView( 3534): onWindowVisibilityChanged(0) true com.ansca.corona.graphics.opengl.CoronaGLSurfaceView{4811f1e V.E...... ......I. 0,0-0,0} of ViewRootImpl@ba77759[CoronaActivity]
02-16 08:58:27.181 D/InputDispatcher( 4070): Focus entered window (3534): 9d6725e 0
02-16 08:58:27.183 D/ViewRootImpl@ba77759[CoronaActivity]( 3534): Relayout returned: old=[0,0][720,1436] new=[0,0][720,1436] result=0x7 surface={true 3740778496} changed=true
02-16 08:58:27.192 D/SurfaceView( 3534): hide() Surface(name=SurfaceView - pro.sscompany.rentgen/com.ansca.corona.CoronaActivity@4811f1e@0[3534])/@0x803f7 false true com.ansca.corona.graphics.opengl.CoronaGLSurfaceView{4811f1e V.E...... ......ID 0,0-720,1436}
02-16 08:58:27.197 D/SurfaceView( 3534): surfaceCreated 1 #8 com.ansca.corona.graphics.opengl.CoronaGLSurfaceView{4811f1e V.E...... ......ID 0,0-720,1436}
02-16 08:58:27.197 D/SurfaceView( 3534): surfaceChanged (720,1436) 1 #8 com.ansca.corona.graphics.opengl.CoronaGLSurfaceView{4811f1e V.E...... ......ID 0,0-720,1436}
02-16 08:58:27.231 I/ConfigStore( 3534): android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
02-16 08:58:27.231 I/ConfigStore( 3534): android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
02-16 08:58:27.231 I/OpenGLRenderer( 3534): Initialized EGL, version 1.4
02-16 08:58:27.231 D/OpenGLRenderer( 3534): Swap behavior 2
02-16 08:58:27.243 D/mali_winsys( 3534): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
02-16 08:58:27.257 V/GLSurfaceView( 3534): glGetString(7937) returns Mali-G71;
02-16 08:58:27.259 D/mali_winsys( 3534): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
02-16 08:58:27.259 D/OpenGLRenderer( 3534): eglCreateWindowSurface = 0xdee30240, 0xdef7c008
02-16 08:58:27.271 D/ViewRootImpl@ba77759[CoronaActivity]( 3534): Relayout returned: old=[0,0][720,1436] new=[0,0][720,1436] result=0x3 surface={true 3740778496} changed=false
02-16 08:58:27.289 I/Corona  ( 3534): This application failed to load and execute main.lua
02-16 08:58:27.290 W/company.rentge( 3534): 0xebadde09 skipped times: 0
02-16 08:58:28.867 D/ViewRootImpl@ba77759[CoronaActivity]( 3534): MSG_RESIZED: frame=[0,0][720,1436] ci=[0,0][0,0] vi=[0,0][0,0] or=1
02-16 08:58:28.881 D/ViewRootImpl@ba77759[CoronaActivity]( 3534): MSG_WINDOW_FOCUS_CHANGED 1 1
02-16 08:58:28.893 D/InputMethodManager( 3534): prepareNavigationBarInfo() DecorView@70d8d03[CoronaActivity]
02-16 08:58:28.893 D/InputMethodManager( 3534): getNavigationBarColor() -855310
02-16 08:58:28.912 D/InputMethodManager( 3534): prepareNavigationBarInfo() DecorView@70d8d03[CoronaActivity]
02-16 08:58:28.912 D/InputMethodManager( 3534): getNavigationBarColor() -855310
02-16 08:58:28.912 V/InputMethodManager( 3534): Starting input: tba=pro.sscompany.rentgen ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
02-16 08:58:28.913 D/InputMethodManager( 3534): startInputInner - Id : 0
02-16 08:58:28.913 I/InputMethodManager( 3534): startInputInner - mService.startInputOrWindowGainedFocus
02-16 08:58:28.950 D/InputTransport( 3534): Input channel constructed: fd=77
02-16 08:58:28.960 D/InputMethodManager( 3534): prepareNavigationBarInfo() DecorView@70d8d03[CoronaActivity]
02-16 08:58:28.960 D/InputMethodManager( 3534): getNavigationBarColor() -855310
02-16 08:58:28.960 V/InputMethodManager( 3534): Starting input: tba=pro.sscompany.rentgen ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
02-16 08:58:28.961 D/InputMethodManager( 3534): startInputInner - Id : 0
02-16 08:58:30.319 D/InputDispatcher( 4070): Focus left window (3534): 9d6725e 0

If Scott’s guess is correct, then the crash is occurring because the device that it is running on doesn’t have access to Google Play services. The app will build just fine, but if the device you are installing it on doesn’t have Google Play, then the app won’t be able to access these services when it needs to, which is why it crashes.

Google Play and GPServices 100% installed. As i said, build via Corona Simulator works. :frowning:

I found a problem.
The problem is to load plugin openssl like i write in this topic

if i delete jniLibs from android directory - plugin will not work, but app is works.