[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[love] U8 for Android

  1. Follow Android Löve Compiling from source instructions on the LAST release of the source for Android (search for love-XX.X-android-source.tgz)
  2. copy the U8.love file as "game.love" to the directory (project)/app/src/main/assets..."
  3. After fullfiling the steps you can open the project with Android Studio and generate the APK
  4. Debug the apk with Android Studio

Building the last version of Löve for Android

  1. Download Löve Android Studio project for last Löve version (e.g. 11,1,0 Mysterious Mysteries) from here
    1. Decompress the file in a new folder [AS-DevFolder]
  2. Download the full Repository of Löve from the link "Download repository", first link in list at https://bitbucket.org/rude/love/downloads/
  3. Go to the folder [AS-DevFolder]/love/src/jni/love
  4. Delete all source files except Android.mk file
  5. Decompress the repository sources
  6. Open Android Studio project at [AS-DevFolder]
  7. copy the U8.love file as "game.love" to [AS-DevFolder]/app/src/main/assets..."
  8. Build the apk for app package

Issues we found in the past

error: use of undeclared indentifier 'posix_memalign'
To solve this issue: change minSdkVersion from 14 to 16, in build.gradle for modules: app and love.
When generating signed APK, if
Deprecated ABI armeabi (a.k.a. not supported Thumb mode `vmrs r3,fpscr')
apply the following in Android project to workaround this issue:
#remove armeabi from love build.gradle (Module: love) script:
        ndk {
            // Specifies the ABI configurations of your native
            // libraries Gradle should build and package with your APK.
            // abiFilters 'armeabi-v7a', 'armeabi'
            abiFilters 'armeabi-v7a'

#remove armeabi from APP_ABI in Application.mk (External Build Files):
	#APP_ABI := armeabi armeabi-v7a
	APP_ABI := armeabi-v7a
More details about this issue can be found here