Execution failed for task ':CordovaLib:compileDebugRenderscript'

Hi all,

When i try the following command:

sudo ionic cordova run android

im getting the following error while executing:

:CordovaLib:compileDebugRenderscript
 FAILED


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:compileDebugRenderscript'.
> llvm-rs-cc is missing

* 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.534 secs
Error: /home/thijmen/Desktop/***/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:compileDebugRenderscript'.
> llvm-rs-cc is missing

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

Running it with --stacktrace doesn’t help to get more information out of it.

My ionic info

cli packages: (/home/thijmen/Desktop/***/node_modules)

    @ionic/cli-utils  : 1.19.1
    ionic (Ionic CLI) : 3.19.1

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.3.0 ios 4.5.2
    Ionic Framework    : ionic-angular 3.3.0

System:

    Node : v6.11.4
    npm  : 5.5.1 
    OS   : Linux 4.13

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Hope some one know’s a solution for this.
Im running Android 6.3.0 platform.

I already tried this:

sudo ionic cordova platform rm android
sudo ionic cordova platform add android
sudo ionic cordova prepare android

Thanks in advance

hi, @wthijmen

I think version is different of build-tools inside SDK folder. Updating to latest build-tools version will solve this problem.

thnaks

Hi,

How to update the build-tools easily?
Im running Ubuntu 16.04

Thanks in advance

Update:

Getting this message now:
> llvm-rs-cc is missing

Had a post in the past for this but no one replied.

@wthijmen

Try below steps :

1.Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences).

2.In the left panel, click Appearance & Behavior > System Settings > Updates.

3.Be sure that Automatically check for updates is checked, then select a channel from the drop-down list.

4.Click Apply or OK.

thanks

As I Told im running Ubuntu and I’m running my android studio from CLI (Adb devices).
Got a solution for that?

I’ve tried the following build-tools:
25.0.2, 26.0.0, 26.0.2 and 27.0.0