-
Notifications
You must be signed in to change notification settings - Fork 2.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
Update/Add Android NDK r23 LTS #3894
Comments
Hello, @Javernaut |
The current images include:
The guidelines indicated that the installation strategy for the Android NDK is, "1 latest, 1 LTS version". With the NDK r23 LTS, the latest and the LTS version are the same. So in this case, does it make sense to replace r22b with r23 and keep r21e:
Or instead replace the LTS version and keep the previous version:
? |
Hello @kenmorse , we would like to install 21, 22, 23 side by side for now and PRs will be provided soon |
macOS images with NDK 23 were deployed, ubuntu is deploying this week |
I ran my pipeline this morning and it still failed searching for NDK. How long does this usually take? |
Hello @palumbo67! |
@palumbo67 — while you are waiting, something like this might help (on Ubuntu):
If the NDK is already on the environment, the next two steps are skipped. If it's not there, the cache is used, and if the cache isn't there either, the specific NDK is installed. |
After the
Was building w/o error up until yesterday when running on ubuntu20/20210919.1 Nothing changed in our gradle configs since yesterday and not seeing this in our macOS or ubuntu20 local development environments. Anyone else seeing this with flutter/android builds? |
We are experiencing the same issue. No changes in our build config, but they started to fail with a similar problem:
|
Hello @mqueiroz1995. Could you please share content of |
We're experiencing the exact same issue with our Flutter builds and it's been halting our entire workflow for the past week, both on ubuntu as well as MacOs agents:
gradle-wrapper.properties:
build.gradle:
Don't know if it matters, but due to some issues we're still on Flutter 1.22.6. |
All the images with Android NDK r23 have been deployed. |
Update, changing from gradle 3.6.4 to 4.2.0 seems to have fixed the issue for the pipeline for us. |
@DaVaMa1 there is no macOS:
ubuntu:
|
O wow, thats a huge help, my bash is on hello world level so I would not have figured that out quickly by myself. This issue on the NDK tells that the behaviour is expected, so it seems to be working as intended. |
Small update for the work around, as we're still in need of it, I'm guessing a new ndk version 23 has been released and it now tries to uninstall an available version opposed to an installed version. I fixed it by using this
instead of the old work around. Took me a while to debug on the agents, especially since this was my first time using bash. |
Has anyone managed to get to translate this to windows? |
@palumbo67 here you are, this powershell snippet will uninstall the latest ndk 23. $sdkRoot = "C:\Android\android-sdk"
$sdkManager = "$sdkRoot\cmdline-tools\latest\bin\sdkmanager.bat"
$androidPackages = Get-AndroidPackages -AndroidSDKManagerPath $sdkManager
$ndkLatestVersion = Get-AndroidPackagesByName -AndroidPackages $androidPackages -PrefixPackageName "ndk;23" | Sort-Object -Unique | Select-Object -Last 1
& $sdkManager --uninstall "$ndkLatestVersion" |
Tool name
Android NDK
Tool license
Same as before
Add or update?
Desired version
23.0.7599858
Approximate size
2.16 Gb (for macos)
Brief description of tool
No response
URL for tool's homepage
https://developer.android.com/ndk/downloads
Provide a basic test case to validate the tool's functionality.
No response
Virtual environments affected
Can this tool be installed during the build?
No response
Tool installation time in runtime
No response
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: