Exported debug APK doesn't work!
Posted: Mon Nov 07, 2016 7:15 pm
I've recently been working on a game for android and I've been testing it using the LÖVE For Android downloaded from the Play Store. I wanted to try it as an APK to see if everything is fine, turns out the thing doesn't even work. I followed this tutorial https://www.reddit.com/r/love2d/comment ... ld_an_apk/ exactly then I installed the resulting love-android-debug.apk an this is what I got:
https://www.dropbox.com/s/uylkxg4tr0ajv ... .jpeg?dl=0
(If that link doesn't work it's just a message: "Unfortunately, LÖVE For Android has stopped." and two buttons "OK" and "Try to Solve")
The .love file works fine with the Play Store version of LÖVE For Android but the debug APK doesn't !
When I tried to build Love SDL (ndk-build step) I got this:
There was a ton of other stuff in place of the [.....] but it is too long.
Please help. I don't want to switch engines LÖVE2D is awesome and I want to use it besides I am already halfway in my game so I don't want to start over in another engine .
https://www.dropbox.com/s/uylkxg4tr0ajv ... .jpeg?dl=0
(If that link doesn't work it's just a message: "Unfortunately, LÖVE For Android has stopped." and two buttons "OK" and "Try to Solve")
The .love file works fine with the Play Store version of LÖVE For Android but the debug APK doesn't !
When I tried to build Love SDL (ndk-build step) I got this:
Code: Select all
[armeabi] SharedLibrary : liblove.so
[armeabi-v7a] SharedLibrary : liblove.so
[armeabi] Install : libmpg123.so => libs/armeabi/libmpg123.so
[armeabi] Install : libopenal.so => libs/armeabi/libopenal.so
[armeabi] Install : libgnustl_shared.so => libs/armeabi/libgnustl_shared.so
[armeabi-v7a] Install : libmpg123.so => libs/armeabi-v7a/libmpg123.so
[armeabi-v7a] Install : libopenal.so => libs/armeabi-v7a/libopenal.so
[armeabi-v7a] Install : libgnustl_shared.so => libs/armeabi-v7a/libgnustl_shared.so
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/libfreetype.a(ftbase.o): multiple definition of 'FT_Load_Glyph'
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libfreetype.a(ftobjs.o): previous definition here
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/libfreetype.a(ftbase.o): multiple definition of 'FT_GlyphLoader_New'
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/libfreetype.a(ftgloadr.o): previous definition here
......
......
......
/home/mizo/ANDROID/android-ndk-r13b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi/libfreetype.a(ftbase.o): previous definition here
collect2: error: ld returned 1 exit status
/home/mizo/ANDROID/android-ndk-r13b/build/core/build-binary.mk:702: recipe for target 'obj/local/armeabi/liblove.so' failed
make: *** [obj/local/armeabi/liblove.so] Error 1
Please help. I don't want to switch engines LÖVE2D is awesome and I want to use it besides I am already halfway in my game so I don't want to start over in another engine .