You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@greenrobot@greenrobot-team I meet the issue when i write the entity with java , but call Dao that haven't generated in kotlin class, report "compileDebugKotlin Unresolved reference: xxxDao" .For constrast, if i call the Dao in a java class, all going well. How can i fix that? thanks
greendao {
schemaVersion 1 //database version
targetGenDir 'src/main/java' //specify the directory where the code is generated
daoPackage 'com.coloros.testdir.greendao' //generate code to specific packages
}
@greenrobot @greenrobot-team I meet the issue when i write the entity with java , but call Dao that haven't generated in kotlin class, report "compileDebugKotlin Unresolved reference: xxxDao" .For constrast, if i call the Dao in a java class, all going well. How can i fix that? thanks
my library module .gradle as below:
apply plugin: 'com.android.library'
apply plugin: 'org.greenrobot.greendao'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 30
buildToolsVersion "29.0.3"
}
greendao {
schemaVersion 1 //database version
targetGenDir 'src/main/java' //specify the directory where the code is generated
daoPackage 'com.coloros.testdir.greendao' //generate code to specific packages
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
}
Originally posted by @liuzhp3 in #395 (comment)
The text was updated successfully, but these errors were encountered: