Android Build Failing on CI Fastlane Gradle, but works fine on local machine

Our build had to date been working fine, without any issues. Yesterday all of a sudden, exact same code base, the build started failing at the command: :app:transformNativeLibsWithStripDebugSymbolForProductionRelease FIALED

It runs perfectly on our local machines but for some reason fails on Circle CI. Any advice or help would be greatly appreciated.

:app:crashlyticsStoreDeobsProductionRelease
:app:crashlyticsUploadDeobsProductionRelease
:app:lintVitalProductionRelease
:app:transformClassesWithMultidexlistForProductionRelease
:app:transformClassesWithDexForProductionRelease
:app:mergeProductionReleaseJniLibFolders
:app:transformNativeLibsWithMergeJniLibsForProductionRelease
:app:transformNativeLibsWithStripDebugSymbolForProductionRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForProductionRelease'.
> A problem occurred starting process 'command '/opt/android/android-ndk-r17b/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 27.24 secs```

Assuming you’re on the Docker executor and not Machine, have a look at the hash of the image you’re pulling now it is failing, and the hash of the image you were pulling when it worked. You may find that “pinning to hash” with the old hash will fix it.

(I don’t know anything about Android, but I assume there is something in the auto-built convenience image that breaks your build).

1 Like

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