After adding Kapt plugin - A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution

后端 未结 7 2161
遥遥无期
遥遥无期 2020-12-21 00:07

First of all,

I\'m pretty much aware that a lot of questions on this error had been posted already here, and none of them seems to be having a proper solution especia

7条回答
  •  清酒与你
    2020-12-21 00:25

    I put a @Delete annotation on a method with Long parameters :

    @Delete
    fun deleteRelationShip(userId: Long, friendId: Long)
    

    --debug build can be of help i most cases. In this case it said that a long couldn't be convert in Element

    Then it becomes

    @Delete
    fun deleteRelationShip(relationShip: RelationShip)
    

提交回复
热议问题