Skip to content
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

Build task error "No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi" since Flutter 2.5.2 #16

Closed
ghost opened this issue Oct 6, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Oct 6, 2021

Hey,

the issue is not directly related to your extension as it seems to be a Google/Android/Flutter problem. But I didn't know where to ask since my problem specifically involve Azure DevOps and your tasks. If it's too far away in your opinion feel free to close.

Today I upgraded to Flutter 2.5.2 and the most recent Android SDK and then a new build error occured:

No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

image

A working fix for my local build was to downgrade the NDK via the SDK Manager in Android Studio. The solution is mentioned in several issues around the internet
https://stackoverflow.com/questions/66922162/no-toolchains-found-in-the-ndk-toolchains-folder-for-abi-with-prefix-arm-linux

Using the version 22.0 instead of 23.0 fixes my local build.

image

But the same problem occurs when building in Azure DevOps. And here I am struggling to apply my fix. According to the docs there are 3 versions of NDK installed.

image

I don't know how to uninstall NDK in the virtual machine. Has anyone already seen (and fixed) this problem?

Thanks for any support!

@hey24sheep
Copy link
Owner

Hi, that's a new error. Unfortunately Azure DevOps doesn't have any documentation regarding uninstall/install of predefined stuff.

But here is a solution which could work, you could give it a try.

@ghost
Copy link
Author

ghost commented Oct 7, 2021

Hi, thanks for the reply.

Your hint was correct. I solved the problem by inserting a specific ndk version (21.4.7075529) into the build.gradle file. This version is also installed on the build VM, so the Flutter build task succeeds now.

https://stackoverflow.com/a/65698078

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant