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

后端 未结 2 1624
無奈伤痛
無奈伤痛 2021-01-01 08:41

Trying to build a sample using Android Studio 3 Canary 5 with Architecture Components and Kotlin gives this warning.

Can anyone tell me the reason?

Thanks, O

2条回答
  •  被撕碎了的回忆
    2021-01-01 09:24

    There is a Java 8 annotation processor now arch components are stable so replace:

    "android.arch.lifecycle:compiler:${rootProject.archLifecycleVersion}"
    

    with

    "android.arch.lifecycle:common-java8:1.0.0"
    

提交回复
热议问题