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 apk is failing: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi #116

Closed
Andranjo97 opened this issue Oct 12, 2021 · 5 comments

Comments

@Andranjo97
Copy link

When I try to generate an apk in my pipeline, I get the following error:

Execution failed for task ':app:stripStgReleaseDebugSymbols'.

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

It was working before. I run the pipeline over a commit that I knew passed the pipeline before. However, now it also fails. Did something change in the configurations? Can anyone give me any direction on how to handle this error?

@Andranjo97
Copy link
Author

The following was the solution to my issue. It happened when I updated the android studio version. And the solution is here
https://stackoverflow.com/a/69012341/10001998

@jomag
Copy link

jomag commented Oct 13, 2021

Exactly how did you solve it? I tried to upgrade Gradle as per the Stack Overflow answer, but without luck. Precisely which Gradle version did you upgrade to?

@Andranjo97
Copy link
Author

@jomag did you update your gradle-wrapper.properties file as well? You can find this file in android/gradle/wrapper/gradle-wrapper.properties.
I updated my gradle-wrapper.properties to be like:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-all.zip // note here I added the latest version

and then I changed my build.gradle to be:

...
    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.0'
...

@jeesang7
Copy link

When I try to generate an apk in my pipeline, I get the following error:

Execution failed for task ':app:stripStgReleaseDebugSymbols'.

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

It was working before. I run the pipeline over a commit that I knew passed the pipeline before. However, now it also fails. Did something change in the configurations? Can anyone give me any direction on how to handle this error?

@Andranjo97 When this problem occurs, it seems that the build locally, not in the pipeline, worked normally without any problems, can you check it?

This problem is suspected of the NDK version problem in the pipeline. @subosito
https://stackoverflow.com/a/61602965

@Andranjo97
Copy link
Author

@jeesang7 yes it worked locally

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

3 participants