-
Notifications
You must be signed in to change notification settings - Fork 431
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
Notification.notify crashes android app #296
Comments
Hi @Fogapod , can you please share the logs which are generated when you run your app? |
@Malverick , unfortunantely, there's nothing useful in kivy logs:
Also I can't debug my apk after building (I'm using virtual machine with buildozer and have some problems connecting my device to it) Maybe I can send you apk file for testing? |
If so, my_apk_file_here.zip |
hi @Fogapod , I tested your app and here are the logs After doing some research I found that this is a bug in new toolchain. Try adding android in requirements section in your buildozer.spec file. |
When I was trying the "android_new" I had to listen through: adb bugreport > bugreport.txt |
@Malverick, including android to the requirements didn't help.
|
Here is the actual log from the supplied apk, without the logcat filter on: https://gist.github.com/ZingBallyhoo/f3c1bc308bb20a5ff43da94061f39f0c The most important part of this is: The issue should be fixed if the android module is properly installed (see https://github.com/kivy/plyer/blob/master/plyer/platforms/android/__init__.py#L8) @Fogapod can you send me your apk with the android module, so I can see if there is a deeper issue. |
main.py:
|
@Fogapod Any chance you can rebuild and send me the APK again after you make some changes?
I can see where the issue is, but the exception is silenced by a |
Here it is: Nothing new in kivy logs |
Found the problem, your APK is using an old version of Plyer, before the android_new support.
What you need to do:
Then, it should work |
But I used master branch of plyer in my first app that I posted here and it didn't work no matter including or excluding |
@Fogapod I just had a dig around in your original APK's assets, and it is not using plyer from master. Having You need to do a clean rebuild to use the latest Plyer (after updating the requirements)
This is the file that I found in your APK, which causes the bug:
|
I put plyer directly into my app folder, not using requirements: importing from lib; |
@Fogapod Well, the APK you gave us has Can you please build the latest version of that app and send it (if it still doesn't work) |
@ZingBallyhoo ok, that's very weired. I'll build new apk tomorrow. Thanks for your help |
I created 2 apk's: Now both of them are raising Edit: |
i had the same issue in my speech to text application and i tried all the solutions in the comment but it didnt work , is there a chance anyone can help |
i have created a kivy app in which we can get list of applications in our mobile and we can uninstall apps from my kivy app.it is working good in pc but, when i install it my mobile it is displaying the list of applications but when i press the delete button of respective app, kivy app is crashing. for example i want to delete truecaller app through my kivy app .so when i press the delete button of true caller in kivy app it is showing an error in logact i.e pls help me to solve this issue |
Do you have some documentation indicating that calling pm as a
subprocess from your app should work? My immediate guess would be that
this simply isn't allowed.
…On 20/08/2020 19:05, pavankoushal wrote:
i have created a kivy app in which we can get list of applications in
our mobile and we can uninstall apps from my kivy app.it is working
good in pc but, when i install it my mobile it is displaying the list
of applications but when i press the delete button of respective app,
kivy app is crashing.
i had also gone through the logcat . it is showing an error
"subprocess.CalledProcessError"
for example i want to delete truecaller app through my kivy app .so
when i press the delete button of true caller in kivy app it is
showing an error in logact i.e
" subprocess.CalledProcessError: Command 'pm uninstall -k --user 0
com.truecaller ' returned non-zero exit status 255. "
can anybody know what is the error here? or is there any changes i
have to do in my buildozer.spec file ?
pls help me to solve this issue
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#296 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVBGZ3SDL76GPBXU3P6RDSBVQYFANCNFSM4DC7CW6Q>.
|
I created my kivy app using
android_new
buildozer toolchain. (It works fine on oldandroid
toolchain)My app get crashed when plyer's
notification.notify()
is called.There is no exception. So I can't catch it.
The text was updated successfully, but these errors were encountered: