Android Builds failing : No toolchains found in the NDK toolchains

Bitrise Build Issue Report template

Description of the issue

We have seen that our Android builds have started failing, There is nothing changed in the code that could cause this.

Environment:

Where did the issue happen?

The issue is happening on Bitrise.io, The stack is :

Android & Docker on Ubontu 18.04

Which build Step causes the issue and which version of the step?

x | Gradle Build Project (exit code: 1) | 46 sec |

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO

  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO

  • Does the issue happen sporadically, or every time? : EVERY TIME

  • Does upgrading the build Step to the latest version help? : ALREADY LATEST

  • When did the issue start? : THURSDAY , 11TH OCTOBER

Local reproduction: Linux / Android (docker based) stack builds

The issue is not reproducible when generating the builds locally

Build log

MIPS architecture is not supported since NDK r17 https://developer.android.com/ndk/downloads/revision_history
You have to remove it from your configuration or install older NDK manually.

Hello @koral,
Thanks for reply, How can I remove from configuration or Install older ndk Manually ? can you please explain a bit

I did a migration/upgrade on one of our sample android projects for the Android NDK r18 update, here’s the PR what I had to do for this really simple sample project: https://github.com/bitrise-samples/sample-apps-android-sdk22/pull/5/files

For installing an older NDK: How to install a specific Android NDK version on the Android/Linux stack

The simplest option is to just upgrade Android Gradle plugin as @viktorbenei linked: config update for NDK r18 by viktorbenei · Pull Request #5 · bitrise-io/sample-apps-android-sdk22 · GitHub
You may also need to add google() repository to buildscript block if needed and upgrade Gradle wrapper if it is not compatible with desired AGP version: Android Gradle plugin release notes  |  Android Studio  |  Android Developers.

At the time of writing the current version is 3.2.1 but minimal supporting NDK r17+ is AFAIR 3.1.0.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.