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
[Maybe bug] The todos app crashed immediately after I run "buildozer -v android debug deploy run" #1369
Comments
you have to include proxy_tools in your requirements |
I've git-pulled the update, now the app won't crash, but it shows: |
This looks like you do not have index.html bundled with the apk. Look for |
Keep configs in buildozer.spec:
Uncommented 2 more configs in buildozer.spec:
And added a new file(extra_manifest_application_arguments.xml) in pywebview/examples/todos/, the file content: Install the latest buildozer(1.5.1.dev0, the old one has bug about extra_manifest_application_arguments):
Then run "buildozer android clean", and re-run "buildozer android debug deploy run" But now the "adb shell logcat" says:
I can't figure out what's wrong currently. |
My bad. Of course you need to include pywebview as well in requirements |
Modified requirements into "requirements = python3,pywebview,kivy,bottle,proxy-tools,typing_extensions,cryptography", I used the "apktool d ./bin/pywebviewTodos-0.1-arm64-v8a-debug.apk" to see the apk directory structure:
I can see the index.html is in the assets directory. I still can't figure out what's wrong. |
This looks like a bug. I will look into this. |
I have spent way more time investigating this than I have intended and still could not find what's wrong here. Some intermediate findings so far:
|
Great thanks for your effort, And could we invite others to help us? |
Some more information. This seems to be the cause https://python-for-android.readthedocs.io/en/latest/distutils.html namely this bit |
I've tried modify "p4a.setup_py = false" into "p4a.setup_py = true", but when I run "buildozer android debug deploy run", it shows errors:
|
There's a temporary fix:
It seems that only 5 Makefile files are redundant. |
Or:
and the app can also run normally. |
The todos app crashed immediately after I run "buildozer -v android debug deploy run",
while the "adb shell logcat" says:
The text was updated successfully, but these errors were encountered: