Focus-android: Kotlin plugin should be enabled before 'kotlin-kapt'

Created on 11 Sep 2018  路  2Comments  路  Source: mozilla-mobile/focus-android

Run:

./gradlew tasks | grep jacoco

Output:
Kotlin plugin should be enabled before 'kotlin-kapt'

It appears it's a warning at the start of the gradle output and it pops out in stderr. :)

Most helpful comment

I got the same this when I've upgrade Adnroid Studio.

All I did was to swap the lines from

apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android'

to

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

All 2 comments

I got the same this when I've upgrade Adnroid Studio.

All I did was to swap the lines from

apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android'

to

apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'

all i had to do was decrease my kotlin version to

ext.kotlin_version = '1.3.41'

Was this page helpful?
0 / 5 - 0 ratings