Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

llvm-rs-cc is missing Android Studio

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).

Edit

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.

like image 638
godonan Avatar asked Oct 10 '18 03:10

godonan


2 Answers

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...

like image 105
Arun Joseph Avatar answered Oct 21 '22 19:10

Arun Joseph


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
like image 11
tim-s Avatar answered Oct 21 '22 18:10

tim-s