Kotlin kapt and android architecture components build fail

Anton Kazakov :

I'am using Kotlin, kapt and Android Architecture components. When I build project everything seems fine but after trying to run app on device/emulator Gradle's :assemble task throw these errors:

Warning:warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.persistence.room.RoomProcessor' less than -source '1.8'

Warning:warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.lifecycle.LifecycleProcessor' less than -source '1.8'

Warning:warning: The following options were not recognized by any processor: '[kapt.kotlin.generated]'

And build fails. Can someone help me with it?

UPDATE

  • module build.gradle HERE
  • project build.gradle HERE
Mladen Rakonjac :

I had the same problem with version 1.0.0-alpha3, but with version 1.0.0-alpha1 everything works fine.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=438919&siteId=1