I've reinstalled Android Studio, but when I open up a new blank project, I get this error during the automatic first-time build:
Cause: llvm-rs-cc is missing
The project has nothing in it. I recently uninstalled Android Studio, and I had deleted several of the projects in my documents folder. I have also just recently just restored from a System Image (where Android Studio had been installed... which I uninstalled when this error started popping up).
I've been working on a large project for quite some time now and I have a lot of files and code. I finished the code some time ago, and I was just adding the content for already-made and implemented text files. The blank project I described above was me testing out to make sure the problem wasn't with my code.
I had finished up basically everything when this error popped up (right after the gradle upgrade to 4.6). As a final solution I'll completely reformat my computer, but I'm going to wait a few days to see if there are any solutions.
Go to your Android/SDK/build-tools Folder
You will see folders named like :
21.1.2
23.0.3
25.0.1
Check whether llvm-rs-cc is Present in all the Folders, Delete the folder(s) where llvm-rs-cc is missing.
This will definitely Fix your Issue. Cheers...
I had this issue using WSL, as I had installed the build-tools through windows the llvm-rs-cc file had the expected .exe
extension.
To resolve all that was needed was a symbolic link allowing build tools that think they're running in linux to find the file:
//$ANDROID_HOME/build-tools/x.y.z/
ln -s llvm-rs-cc.exe llvm-rs-cc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With