Qamar
Qamar

Reputation: 5135

Android Studio Instant run not working using java 8 in android

Using java 8 for concise Lambda expression etc but downside is instant run not working. buildToolsVersion "23.0.3"

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

how to enable instant run with java 8 features

Upvotes: 6

Views: 2573

Answers (2)

Maxime Mbabele
Maxime Mbabele

Reputation: 91

Patience is a virtue. Support for Java 1.8 will be built in Android studio without the need of any configuration or external libraries in the near future (weeks from now)

https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html

Upvotes: 4

Eliahu Horwitz
Eliahu Horwitz

Reputation: 499

From offical documenataion:

Known Issues Instant Run does not currently work with Jack and will be disabled while using the new toolchain.

https://developer.android.com/preview/j8-jack.html

Upvotes: 9

Related Questions