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

plyer examples app always crashes in android phones, It says "Unfortunately "Name of app" has stopped working." #349

Closed
Akash3194 opened this issue Jul 14, 2017 · 4 comments

Comments

@Akash3194
Copy link

Akash3194 commented Jul 14, 2017

Somebody please help me, i am having really very hard time using plyer, whenever i make apk files of any example given in plyer folders and run them on android. It always says "Unfortunately app has stopped working".

@sumitmadhwani
Copy link
Contributor

Hi @Akash3194 , please make sure you have enabled USB debugging in your android phone. If the problem still persists, then I would recommend you to share the android logs here so that we can see where's the problem.
For logs, while running any plyer app, connect your mobile with your laptop and then run this command on terminal,
adb logcat python:V *:S

@Akash3194
Copy link
Author

Akash3194 commented Jul 15, 2017

Hello @Malverick thanx a lot, that you replied for this issue but i think this issue reached a lil bit late to you, i had solved this problem, i replaced kivy with git+https://github.com/kivy/plyer.git in requirements(buildozer.spec) and added android and hostpython2, that solved my problem and now apk works fine. Can i just ask how to reduce the apk size of apps because a simple apps takes 40-50mb and after running it, it increases to 110-140 mb. Thankyou again

@sumitmadhwani
Copy link
Contributor

When you try to build apk using new p4a toolchain, all the recipes are build irrespective of whether you need them in your app or not. I think this causes the app to consume so much space. Maybe you can try to build only those recipes which you need in your app and ignore others while building the apk.

@Akash3194
Copy link
Author

Thanks a lot.

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

2 participants