Build for Release (classic signed APK) on my Android projects does not work anymore since May. There is an error in step Gradle-Runner (up to date) : :app:transformNativeLibsWithStripDebugSymbolForProdRelease FAILED
Environment:
Where did the issue happen?
Stack: Android & Docker on Ubuntu 16.04
Which build Step causes the issue and which version of the step?
gradle-runner@1.8.3 (exit code: 1)
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 the issue happen sporadically, or every time? : EVERY TIME
Does upgrading the build Step to the latest version help? : NO
When did the issue start? : Detected today (May 14th). Was working until end of april.
Local reproduction
Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (âTesting with a full clean git cloneâ) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
Local reproduction: Linux / Android (docker based) stack builds
Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( Bitrise CLI )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Redirecting⌠.
yup i tried but still facing same error
Execution failed for task â:presentation:transformNativeLibsWithStripDebugSymbolForEdCastAppDebugâ.
A problem occurred starting process âcommand â/opt/android-ndk/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-stripââ
Hard to say more for me since I have no access to logs.
After upgrading Iâve got this note instead of error: Unable to strip library '/bitrise/src/app/build/intermediates/transforms/mergeJniLibs/<stripped>/<stripped>/0/lib/mips64/lib<stripped>.so' due to missing strip tool for ABI 'MIPS64'. Packaging it as is.
Task does not fail on mips library but just keeps it untouched.
Quick question @itelios.team-mobile - did you upgrade the Android NDK on your own Mac/PC to r17?
If youâre not using r17 yet or if you want to use a specific NDK version the best is to just install it via a Script step:
If NDK is not used at all (as I guess from the title suffix â(not used)â) even unsetting ANDROID_NDK_HOME (or setting it to empty string) should do the trick.
A problem occurred starting process âcommand â/opt/android-ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-stripââ
I am running on same stack Android & Docker on Ubuntu 16.04 & gradle runner 1.5.2
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process âcommand â/opt/android-ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-stripââ
at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:197)
at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:327)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:86)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: net.rubygrapefruit.platform.NativeException: Could not start â/opt/android-ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-stripâ
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)
at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)
at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:68)
⌠2 more
Caused by: java.io.IOException: Cannot run program â/opt/android-ndk/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/mipsel-linux-android-stripâ (in directory â/bitrise/src/appâ): error=2, No such file or directory
at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)
⌠4 more
Caused by: java.io.IOException: error=2, No such file or directory