Open Inlife-raphael opened 4 years ago
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
You can build one just fine by using the webview
bootstrap.
@Inlife-raphael: the error message "android-30 is above the maximum supported version android-28" suggest you need to use a lower version of the api or a newer version of the ndk (instead of 19c).
Using Ubuntu (Mint) I Just build the apk using lower version of ANDROIDSDK and set that envioronment var to it. I had just build the webview
bootstrap apk, taking the source from on_device_unit_tests subdirectory tests from here, namely: https://github.com/kivy/python-for-android/tree/develop/testapps/on_device_unit_tests
.
Regarding the NDKSDK version it can be any, providing it is >=17 and ... I think just any greater number will do, it didn't complain on that when I tried.
The env. variables I set are:
export ANDROIDSDK="$SDK_DIR" export ANDROIDNDK="$SDK_DIR/ndk/21.3.6528147" #now running this
export ANDROIDNDK="$SDK_DIR/ndk-bundle/" #previous NDK versioning scheme/path
export ANDROIDAPI="29" # Target API version of your application export NDKAPI="21" #"19"? # Minimum supported API version of your application export ANDROIDNDKVER="21.3.6528147" #unused now, p4a script complains every time # Version of the NDK you installed
and here my export SDK_DIR=/opt/Android/Sdk
, this is the exact one used by my latest Android Studio.
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
You can build one just fine by using the
webview
bootstrap.
Please can you show me how that works with an example and the p4a command to do so. I'll really appreciate in advance(this is new to me)
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
You can build one just fine by using the
webview
bootstrap.Please can you show me how that works with an example and the p4a command to do so. I'll really appreciate in advance(this is new to me)
I'm using buildozer
, so I'm not sure what the p4a
command would be exactly.
But there is documentation here:
https://github.com/kivy/python-for-android/blob/develop/doc/source/quickstart.rst#build-a-webview-application
and here:
https://github.com/kivy/python-for-android/blob/develop/doc/source/buildoptions.rst#webview
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
You can build one just fine by using the
webview
bootstrap.Please can you show me how that works with an example and the p4a command to do so. I'll really appreciate in advance(this is new to me)
I'm using
buildozer
, so I'm not sure what thep4a
command would be exactly. But there is documentation here: https://github.com/kivy/python-for-android/blob/develop/doc/source/quickstart.rst#build-a-webview-application and here: https://github.com/kivy/python-for-android/blob/develop/doc/source/buildoptions.rst#webview
Thanks for the documentation. I'm also using buildozer (i was thinking the bootstrap is best implemented in p4a). If you don't mind can you post an example of the buildozer.spec file. So sorry if it sounds disturbing
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
You can build one just fine by using the
webview
bootstrap.Please can you show me how that works with an example and the p4a command to do so. I'll really appreciate in advance(this is new to me)
I'm using
buildozer
, so I'm not sure what thep4a
command would be exactly. But there is documentation here: https://github.com/kivy/python-for-android/blob/develop/doc/source/quickstart.rst#build-a-webview-application and here: https://github.com/kivy/python-for-android/blob/develop/doc/source/buildoptions.rst#webviewThanks for the documentation. I'm also using buildozer (i was thinking the bootstrap is best implemented in p4a). If you don't mind can you post an example of the buildozer.spec file. So sorry if it sounds disturbing
[app]
title = MyApp
package.name = myapp
package.domain = com.example
source.dir = .
source.include_exts = py
source.exclude_dirs = bin
source.exclude_patterns = *.png
version = 1.0.0
requirements = python3,flask
icon.filename = %(source.dir)s/icon.png
orientation = portrait
fullscreen = 0
android.api = 27
android.minapi = 21
android.ndk = 19c
#android.ndk_path =
#android.sdk_path =
android.accept_sdk_license = True
android.arch = armeabi-v7a
p4a.branch = develop
p4a.bootstrap = webview
p4a.port = 5000
[buildozer]
log_level = 2
warn_on_root = 1
i'm not really sure p4a is used to build a non-kivy app, more over you need to implement the webview inside kivy using "pyjinus" package library
You can build one just fine by using the
webview
bootstrap.Please can you show me how that works with an example and the p4a command to do so. I'll really appreciate in advance(this is new to me)
I'm using
buildozer
, so I'm not sure what thep4a
command would be exactly. But there is documentation here: https://github.com/kivy/python-for-android/blob/develop/doc/source/quickstart.rst#build-a-webview-application and here: https://github.com/kivy/python-for-android/blob/develop/doc/source/buildoptions.rst#webviewThanks for the documentation. I'm also using buildozer (i was thinking the bootstrap is best implemented in p4a). If you don't mind can you post an example of the buildozer.spec file. So sorry if it sounds disturbing
[app] title = MyApp package.name = myapp package.domain = com.example source.dir = . source.include_exts = py source.exclude_dirs = bin source.exclude_patterns = *.png version = 1.0.0 requirements = python3,flask icon.filename = %(source.dir)s/icon.png orientation = portrait fullscreen = 0 android.api = 27 android.minapi = 21 android.ndk = 19c #android.ndk_path = #android.sdk_path = android.accept_sdk_license = True android.arch = armeabi-v7a p4a.branch = develop p4a.bootstrap = webview p4a.port = 5000 [buildozer] log_level = 2 warn_on_root = 1
Thanks man
2270 # Checklist
Versions
Description
I try to make a simple webview application using flask with the code:
Command:
Logs