Android Studio Instant run not working using java 8 in android
Asked Answered
T

2

6

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

Tanyatanzania answered 12/7, 2016 at 8:2 Comment(0)
C
9

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

Choreodrama answered 12/7, 2016 at 8:6 Comment(4)
Would you recommend using Retrolambda until it's supported? Cause it will be a huge loss of time if instant run isnt working... What do you think?Chericheria
Is it known when Instant Run will become available for Jack?Scaly
Its 2017 and still nothing. Shame on them. We spend more time worrying about IDE issues than our coding problems themselves.Davinadavine
Jack is no longer required. Built-in support is added with default tool-chain in androidstudio.googleblog.com/2017/04/…Tanyatanzania
S
4

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

Suzansuzann answered 17/3, 2017 at 8:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.