Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apk way too large - 800mb #520

Closed
0xluk opened this issue Jun 30, 2017 · 6 comments
Closed

apk way too large - 800mb #520

0xluk opened this issue Jun 30, 2017 · 6 comments

Comments

@0xluk
Copy link

0xluk commented Jun 30, 2017

I have created an apk which contains some basic sockets(under 100 lines of code) and only importing sockets and the apk generated using
buildozer android debug and following the tutorial from README docs was over 800mb. What did I do wrong?

Debian Stretch
Python 3.5
Kivy 1.10

@KeyWeeUsr
Copy link
Contributor

KeyWeeUsr commented Jun 30, 2017

Please share the code and buildozer.spec. I really wonder how did you package the APK and what's its content. Maybe you included a file from e.g. /home and it packaged the whole folder or something?

@inclement
Copy link
Member

This is almost always because you have accidentally indluded something you didn't mean to, such as the previous version of the apk. You can see what's inside by extracting the apk (it is a zip file), locating the file private.mp3 inside it (I think it's in the assets folder) and extracting it - that file is a .tar.gz file.

@0xluk
Copy link
Author

0xluk commented Jun 30, 2017

buildozer.spec.txt

@KeyWeeUsr
Copy link
Contributor

Judging from

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

you must have something in the folder with buildozer.spec, a lot of images perhaps? A Downloads folder? Also, the private.mp3 content would be good to see too.

@0xluk
Copy link
Author

0xluk commented Jun 30, 2017

I have found the problem, the files were in a folder which contained crystalx files so I've moved the files in another folder and set the path to it, now it has 18 mb, but the app is only displaying a black screen on my phone, any ideeas? I only have a main.py and a SimpleKivy.kv

@inclement
Copy link
Member

You can debug this with adb logcat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants