-
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
'Orientation' and 'Fullscreen' settings in spec file: Possible issue. #1655
Comments
Are you using Kivy's master branch? In your buildozer.spec you are not, you can do that by writing |
You are correct, I don't. However, the apk won't run because I get this error: descriptor 'property' requires a kivy.event object but received a 'method_descriptor' therefore I cannot verify if setting kivy to master branch fixes the issue. You are probably right, though. Does this mean that one should build his project using kivy's master branch? Moreover, should one install kivy's dev version and work with that instead of using stable 1.10.1? I hope not. |
Yes, currently to use python-for-android master you should also use kivy master. |
Right, thanks for the answers! |
I’m having the same problem where I set orientation to portrait but it builds the app in landscape anyway. I tried adding kivy==master to spec file, but that did not work for me. |
Thanks guys for reporting! |
I tried doing a clean build with kivy master, but now when I start the app it crashes due to |
python I [CRITICAL] [Window ] Unable to find any valuable Window provider. me too with master |
Can somebody fix this issue? |
👀 |
@opacam Ah, yes, sorry about that. |
No problem 😉 |
@inclement I'll give it a go, however the label would have to be getting info from Kivy.core.Window which is what's happening in my app. Also if I revert to 1.10.1 then the error goes away. Also, worth noting that I'm currently building on linux which I'm not used to due to the current MacOS issue with p4a, so unable to test in my usual environment. |
Wait @OptimusGREEN the runtime issue you shared has nothing to do with p4a to me:
This is clearly an issue with KivyMD. Try a more recent version or another fork. Also you would have better luck on Discord support channel |
sorry, I didn't explain it properly. This issue has nothing to do with p4a, the ongoing issue I was referring to was #1647 . That is why I'm currently using linux. |
Ok, I just changed kivy==master back to kivy==1.10.1 and the error is gone, I obviously am stuck in landscape but the error only happens with master on android. its my fork of md I'm using and all the code is doing is asking for the Window.width. Its almost like the the window creation is delayed in master hence the None type object. |
Versions
Description
Hello. Lately, I have been working with Pyjnius. For testing purposes I created an app. Orientation was set to 'portrait' and full-screen to '0', however, the app opens in landscape mode and runs in full screen. I believe I am not the first who came across this. Please, have a look at the 6th post, here: https://groups.google.com/forum/#!topic/kivy-users/e9hsuojM_iM
Attached you may find the main.py file.
main.txt
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: