Search code examples
androidcordovaionic-frameworksdk

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


I am new to mobile app technology. I am trying to configure my system (in Ubuntu 16.04) for apk installation. After I run the following command in terminal

sudo ionic cordova run android

I got the following error

:CordovaLib:compileDebugRenderscript FAILED

FAILURE: Build failed with an exception.

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

I searched about it , but I couldn't find an accurate answer. Thanks in advance.


Solution

  • So I found myself the solution to this problem. Its because of the version difference of build-tools inside my sdk folder. Updating to latest build-tools version will solve this problem.