Here's my game. It just draws a circle on the screen.
Code: Select all
-- this is main.lua
function love.draw()
love.graphics.circle("fill", 300, 300, 100)
end
Code: Select all
-- this is conf.lua
function love.conf(t)
t.window.resizable = true
end
But when I try to install it on my phone/emulator, I get the following errors,
1. The apk generated isn't signed, so I get this error
Code: Select all
'INSTALL_PARSE_FAILED_NO_CERTIFICATES', message='INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1402424199.tmp/app-embed-noRecord-release-unsigned.apk: Attempt to get length of null array'
Code: Select all
Error code: 'INSTALL_FAILED_INVALID_APK', message='INSTALL_FAILED_INVALID_APK: INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2'
Also here's my command history if that might helps.
Code: Select all
15663 mkdir aaa
15664 cd aaa
15665 vim main.lua # -- I write my simple game with a draw in it
15666 vim conf.lua
15667 love . # -- This works
15668 cd ..
15669 git clone --recurse-submodules https://github.com/love2d/love-android
15670 cd love-android # I open the finder, generate a .love file and place it under `app/src/embed/assets`
15672 ./gradlew assembleEmbedNoRecordRelease # This generates an apk properly. size ~50mb
15675 cp -fr app/build/outputs/apk/embedNoRecord/release/app-embed-noRecord-release-unsigned.apk .
15676 mv app-embed-noRecord-release-unsigned.apk app.apk
15677 cp -fr ../some-rl/manual-build/love-android/keys/my-release-key.keystore .
15679 jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app.apk alias_name # This generates a signed apk. But the apk when i try to install on phones throws the above errors
Thanks in advance for any help