Search This Blog

[Solved] Android/sdk/build-tools/llvm-rs-cc finished with non-zero exit value 1

When I try to compile my renderscript application I see this error "llvm-rs-cc.exe finished with non-zero exit value 1" on my Windows PC in Android Studio IDE. And when I try to run the same project on Mac OS X , I face this same error "Android/sdk/build-tools/llvm-rs-cc finished with non-zero exit value 1".

I searched and read through too many web pages and documentation, then found that the error is appearing because the API version of renderscript is old. So I used the latest API version of renderscript which is 24 at my project time.

Use Latest Renderscript API Version

renderscriptTargetApi

As you can see in the image, I set the renderscriptTargetApi version to 24 and the error of llvm-rs-cc error is disappeared.

If you recommend this fix, share it on social media and with friends and coworkers. If you want to get new posts, make sure to subscribe to Value In Brief by Email.

Comments