Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where r8.jar is located inside Android SDK?

Tags:

I'm trying out Android's D8 and R8.

As the documentation says the command to run D8 is the following:

java -jar build/libs/d8.jar --release --output out input.jar

And for R8:

java -jar build/libs/r8.jar --release --output out --pg-conf proguard.cfg input.jar

I found the d8.jar inside %ANDROID_HOME%\build-tools\28.0.3\lib, but I can't find the r8.jar.

Where r8.jar is located inside Android SDK?

like image 295
Andrii Lisun Avatar asked Dec 17 '18 20:12

Andrii Lisun


1 Answers

At the moment, nowhere, unless you plan to build r8 from source. R8 is a new feature currently only available in the Android Studio 3.3 beta (3.3 RC2 at the time of writing). By the looks of things it's been baked into Android Studio as well, rather than being left as an external jar, unless they've given it a completely unrelated name. Searching my filesystem didn't yield a single result for *r8*.jar.

So if you're using that page as a guide, your easiest bet is to just compile the source as per the instructions and use the resulting d8.jar and r8.jar files.

like image 109
Michael Dodd Avatar answered Oct 11 '22 20:10

Michael Dodd