Skip to content

runtime error: java.lang.NoSuchMethodError: No virtual method id(J) #41

Description

@bu2zhouzhu

Use Build->Rebuild Project is fine. The generated Mapper.java has method id(). Android Studio editor code grammar analysis says all right.

But if I run app(Shift + F10), it will crash and the error is NoSuchMethodError: No virtual method id(J).
At this time if I open the file calls Mapper class, Android Studio editor will mark id() method with red color, says cannot resolve id() method.

The id() method I'm talking about is like SourceMapper.contentValues().id(1)

My environment: Android Studio 2.1, gradle plugin 2.1.0, sqlbrite and sqlbrite-dao are both 0.6.1, kapt, kotlin 1.0.0

Actually, it's sockeqwe/plaid / Source.kt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions