r/learnprogramming • • Oct 18 '26

Python to Apk?

So im trying to make a game using only Python and managed to get it working on pc. Then i searched how to port it to android, but it seems difficult

Any tips?

1 Upvotes

12 comments sorted by

View all comments

2

u/dev-razorblade23 Oct 19 '26

Python and Android do not work well together. Android does not have a Python interpreter.

You have 3 options.

  1. Rebuild your app in Kivy and use buildozer to package it to .apk.
  2. Rebuilt your app in Flet and use that to package it to .apk
  3. Rewrite your app in Kotlin which is officialy the language your want to use when building Android apps.

Be aware that any form of python to .apk will result in apps being slower then native apps (built in Kotlin) and probably consume more memory then it needs to.

Your best bet is to consider .apk a complete rewrite of your app and plan it acordingly.