sockeqwe / sqlbrite-dao

DAO for SQLBrite
http://hannesdorfmann.com/android/sqlbrite-dao
Apache License 2.0
182 stars 22 forks source link

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

Open bu2zhouzhu opened 8 years ago

bu2zhouzhu commented 8 years ago

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