-
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
SDLActivity.java:1948: error: cannot find symbol case MotionEvent.ACTION_BUTTON_PRESS: #1697
Comments
I am experienced with python and c++ build system, but not familiar with android sdk. Am I missing something about Android SDK requirements? |
Are you using python-for-android master? If so, you'll need to target Android API 26+. I think that's probably the origin of this error. |
Thanks, I used pip to install the latest p4a release version. And it worked on API 26. But what if I want to target Android API 21? |
If you really want to set 21 as the target API you can use an older version of python-for-android. However, you almost certainly don't need to worry about it as the target API number isn't a minimum supported version or anything like that. It's more of a 'use api features from this version of android if available'. Apps targeting API 26+ can still be used by devices with older Android versions. |
Really appreciate your explanation! I get it. |
Versions
Description
I want to build android apk using p4a. My python script is in
./code
, simply print something.buildozer.spec
not used
Logs
The text was updated successfully, but these errors were encountered: