Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kotlin kapt and android architecture components build fail

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
like image 289
Anton Kazakov Avatar asked Jun 11 '17 20:06

Anton Kazakov


1 Answers

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

like image 71
Mladen Rakonjac Avatar answered Nov 03 '22 03:11

Mladen Rakonjac