I have upgarded my project greendao library from 2.1.0 to 3.3.0 version.
When I generate the file, there is no error while generating the files, but when I open those files I can see errors like :
Cannot Resolve symbol 'AbstractDaoMaster' or Cannot Resolve symbol 'database' etc in all the generated files like DaoMaster, DaoSession or the entities files.
As seen in #352 I did changes in my gradle as shown below :
I have upgarded my project greendao library from 2.1.0 to 3.3.0 version. When I generate the file, there is no error while generating the files, but when I open those files I can see errors like :
Cannot Resolve symbol 'AbstractDaoMaster'
orCannot Resolve symbol 'database'
etc in all the generated files like DaoMaster, DaoSession or the entities files.As seen in #352 I did changes in my gradle as shown below :
This is my app module gradle :
`import com.github.triplet.gradle.androidpublisher.* buildscript { repositories { maven { url 'https://plugins.gradle.org/m2/' } }
}
apply plugin: 'org.greenrobot.greendao' apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics' apply plugin: 'kotlin-kapt' apply plugin: "com.github.triplet.play" apply plugin: 'com.google.firebase.firebase-perf'
android { compileSdkVersion DefaultConfig.compileSdk buildToolsVersion '30.0.3' defaultConfig { applicationId App.impact minSdkVersion DefaultConfig.minSdkOriginal targetSdkVersion DefaultConfig.targetSdk versionCode 712 versionName "2.26.5" generatedDensities = [] vectorDrawables.useSupportLibrary = true manifestPlaceholders = [manifestApplicationId : "${applicationId}", onesignal_app_id : OneSignal.appId, onesignal_google_project_number: OneSignal.googleProjectNumber] multiDexEnabled true resConfigs "en" } signingConfigs { release { * } }
}
play { * }
greendao { schemaVersion 24 }
dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs')
}`
And I have created a module to implement greendao so this is their gradle :
`apply plugin: 'java' apply plugin: 'application'
mainClassName = "com.dao.SchemaGenerator" project.ext.outputDir = "../app/src/main/java-gen"
task createDocs { def docs = file(project.ext.outputDir) docs.mkdirs() }
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'org.greenrobot:greendao-generator:3.3.0' }`
This is the error I can see :
Where am I going wrong or the issue still exsists?