love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
209 stars 73 forks source link

No Game when i open the app #226

Closed sshlpe closed 2 years ago

sshlpe commented 2 years ago

I followed the steps, change the game.love on app/src/main/assets run the ./gradlew assembleNormalRecord and pass the output apk file on app/build/outputs/apk/normalRecord/debug/ to my android phone, but when i install the apk on my phone the app just runs the love page that says "No Game".

Dont know what am i doing wrong

nicolabii commented 2 years ago

The correct path is "\app\src\embed\assets" as of now. Try to put the file "game.love" there. You should see the empty folder already. Are you using an old version of the project?

MikuAuahDark commented 2 years ago

Either app/src/main/assets or app/src/embed/assets are fine due to how Android build system works. However, if you place your files in app/src/embed/assets but compile the "normal" variant (as in assembleNormalNoRecord) then your game won't get embedded into the APK. Try assembleEmbedNoRecord instead.

MikuAuahDark commented 2 years ago

Closing due to inactivity.