-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Improve the logic to compile for Android #44949
Improve the logic to compile for Android #44949
Conversation
I was able to test the changes on Windows and Mac, but could use more testing and validation to ensure there are no regressions. |
Update configuration based on the Android buildsystem change in godotengine/godot#44949.
…nd setting up the Android NDK if needed.
cdefa24
to
eee213e
Compare
Tested locally on Linux, I run into this issue with
This is with my pre-existing setup which used to work. It's not a "clean" setup and not the recommended one, but I think we should be able to preserve compat. I have:
That
I assume that was installed by I'd expect it to use the version pointed to by |
@akien-mga Can you check your |
Where should this file be if it exists? I don't find it in my SDK or NDK folders, nor in |
This comment has been minimized.
This comment has been minimized.
So after fixing my rootcerts, I still seem to have issues with JDK 11 and Gradle :( This is with a brand new SDK + NDK setup using the recommended workflow from the updated Godot docs.
|
So I went back to OpenJDK 1.8.0 as I couldn't get OpenJDK 11.0 to behave (see previous comment). Now gradle works again, but it seems like Edit: I had only built armv7 release and debug templates, I guess gradle is now building the armv8 ones for me to pack both in each APK. That likely predates this PR which doesn't touch the gradle config much. Should be good to go then, let's merge. |
@@ -7,7 +7,8 @@ ext.versions = [ | |||
supportCoreUtils : '1.0.0', | |||
kotlinVersion : '1.4.10', | |||
v4Support : '1.0.0', | |||
javaVersion : 1.8 | |||
javaVersion : 1.8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might be the reason for all my JDK 11 troubles :|
Thanks! |
Cherry-picked for 3.2.4. |
This PR automatically sets up the Android NDK (if needed) by using the
ANDROID_SDK_ROOT
environment variable and the projectndkVersion
.For regular users, this simplifies the setup process while ensuring the project is always compiled with a known working version of the NDK, while still retaining the capability for advanced users to modify it if needed.
Partially addresses #44055 (comment)
Note: The documentation will be updated to match.