Realm-java: Error:Execution failed for task

Created on 29 Oct 2017  Â·  13Comments  Â·  Source: realm/realm-java

':app:transformNativeLibsWithStripDebugSymbolForDebug'. > A problem occurred starting process 'command '/home/mahdi/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-strip''
Screen shot error :
':app:transformNativeLibsWithStripDebugSymbolForDebug'. > A problem occurred starting process 'command '/home/mahdi/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-strip''
Screen shot error

T-Help

Most helpful comment

fixed (;
I deleted the folder NDk.
/home/mahdi/sdk/ndk-bundle

All 13 comments

Gradle Console -> specific error?

Is this error related to Realm? Could you specify more? Could you try to delete all build folders and clean the project and also remove Realm of the project (if possible for testing) and see if it compiles.

@Mahdihp Are you building realm from source? Does your project have native code? Android gradle will try to strip native so files automatically (which is stupid) but it shouldn't happen if you are not having any native code.

OS name : Linux Mint
My project does not have native code.
When I use this library on Linux Mint
This error shows.
Maybe
  Not updating NDK !!

It feels some build configurations is not set rightly on you Linux mint since /home/mahdi/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-strip actually points to a windows prebuilt NDK. Do you have ndk set in your local.properties? Try to remove it?

fixed (;
I deleted the folder NDk.
/home/mahdi/sdk/ndk-bundle

I fix by copying the files from ndk 16 (https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip) to local ndk directory .

For macOS, following @Mahdihp's suggestion, do this in terminal:
rm -rf ~/Library/Android/sdk/ndk-bundle

remove works but my folder has 2.4gb if I need it will it be downloaded again?

I renamed folder NDk.
/home/mahdi/sdk/ndk-bundle

@smkhadishi it worked for me ...thanks

For macOS, following @Mahdihp's suggestion, do this in terminal:
rm -rf ~/Library/Android/sdk/ndk-bundle

worked for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wyvern610 picture wyvern610  Â·  3Comments

yuwu picture yuwu  Â·  3Comments

jjorian picture jjorian  Â·  3Comments

mithrann picture mithrann  Â·  3Comments

cmelchior picture cmelchior  Â·  3Comments