V
V
Vusal Guseynov2016-01-28 20:38:01
Android
Vusal Guseynov, 2016-01-28 20:38:01

[SOLVED] Why won't the app launch on android 5.1?

Wrote the game. Decided to test it out before posting. I threw off the apk file to my friends. It so happened that the application did not run on andoird 5.1, although everything works fine on earlier versions. What could be the problem?
Did not work on two meizu m1 note phones with android 5.1 and on xiaomi mi4c with android 5.1.1
On versions below, including 5, it works on all phones. It also works on meizu mx4 with 4.4 android , so I think that the problem is not in the phone, but in the android version.


UPDATE OF THE QUESTION
Here is an error that pops up:
java.lang.ExceptionInInitializerError
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1606)
at android.app.Instrumentation.newActivity( Instrumentation.java:1066)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
at android.app.ActivityThread.access$800(ActivityThread.java: 154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5279)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android .internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn 't load shared library 'gdx' for target: Linux, 32-bit
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:118)
at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader. java:34)
at com.badlogic.gdx.backends.android.AndroidApplication.(AndroidApplication.java:62)
... 14 more
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.game-1/lib/arm64/libgdx.so" has bad ELF magic
at java.lang.Runtime.loadLibrary(Runtime.java:371 )
at java.lang.System.loadLibrary(System.java:988)
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)

UPDATE OF THE QUESTION
The problem went away when I built the project on windows 8.1
Before using xubuntu 14.04 LTS

Answer the question

In order to leave comments, you need to log in

4 answer(s)
F
FoxInSox, 2016-01-28
@FoxInSox

Somewhere there is an error.

S
svsanek, 2016-01-28
@svsanek

Here is the change log https://paste.teknik.io/1010 of what has changed in 5.1 relative to 5.0
In general, I advise your friends (or you) to install adb and after an error execute adb logcat > log.txt
After, if you don’t understand yourself what is the error (which I very much doubt), throw the log here

A
Alexey Perelygin, 2016-01-29
@orcDamnar

/data/app/com.game-1/lib/arm64/libgdx.so - check for libraries for this architecture. well, or write to the libgdx developer, with a description of the problem for arm64. I also recommend checking it on other architectures with the same OS. In general, there I see an attempt to load classes designed for a 32-bit system. And you most likely have arm64.

N
Neonoviiwolf, 2016-01-28
@Neonoviiwolf

Something is not working

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question