Gradle DSL method not found: 'kapt()'

后端 未结 7 1331
暖寄归人
暖寄归人 2020-12-14 05:15

Gradle DSL method not found: \'kapt()\' Possible causes: The project \'jetpacklearn\' may be using a version of the Android Gradle plug-in that does not contain the method (

7条回答
  •  既然无缘
    2020-12-14 05:42

    add this line

    apply plugin: 'kotlin-kapt'
    

    if you used kapt in android library you must add kotlin-android plugin in your project

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

提交回复
热议问题