-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
simple flask app on android fails to start #1108
Comments
Could you post the full logcat output when you run it on the device? |
There is no
|
Leave out the "-s python". |
|
Also I've run apps built with |
Hmm, I don't really know what could cause this. Just to check, have you successfully built and run an sdl2 app with the same version of p4a, and is it up to date? |
Yes. I just built this using the build command in it's doc with the current version of python-for-android and it works fine. |
I've just checked the flask build and it does work for me, so it seems p4a isn't just broken right now. Your error seems to relate to a failure to load libmain.so, which occurs before any of the python stuff really gets going - that's why you don't get a clear log when checking only python. I don't know why the libmain load would fail though. You could locat the python-for-android dist dir that has been produced and check what is in its libs folder, just in case - it should be libmain.so and libpython2.7.so. |
I tested the app on a Lenovo TB3-730M (Android 6) and the same error appears. The files you metioned are not there! |
Closing in favour of #1644, which tracks the current issues with the webview bootstrap following the many recent changes. |
This is my
main.py
And I use
python-for-android apk --private ~/workspace/mobile/webview/ --package=org.example.myapp --name "test" --version 0.1 --bootstrap=webview --requirements=flask --port 5000
for creating the APK. when I run the app on Android 4.4.2:logcat
stucks atV/python (13767): extracting _load.html
here:and there is error shown on android device
The text was updated successfully, but these errors were encountered: