Closed TheBlusky closed 7 years ago
Does this also happen with Jack disabled (you will likely have to disable Java 8 support)? I assume Jack is the root cause as it changes how the toolchain works. We will likely have to udpate the plugin to add Jack support. Edit: see also the bottom of the Jack docs.
jackOptions {
enabled false
}
-ut
Hello ! Finally, I removed Jack options, disabled Java 8, and now it's working fine. I guess there is currently no ORM working with Jack and Java 8 :-)
Thanks again !
We probably still want to have a look at Jack support in the future, reopening. -ut
hi! how to resolve this problem? i have the same problem with u
@Freesword As said, the greenDAO Gradle plugin currently does not support Jack. You will have to stick to using javac and Java 7. -ut
I managed to build my project with Jack and Java 8 after moving the generated classes (DaoMaster, DaoSession, xxxDAO) to 'src/main/java'. So, i guess it refuses to see custom generated/source files.
This should be fixed with the next update where we include the generated sources and the greendao task differently.
Edit: tested with an example project, the upcoming release should fix this. -ut
Same issue here :(
@jmendezv , do you use rxbinding?
@jmendezv @Reakleases This should no longer be an issue with classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
. Do you still have problems? Please get us a small example project so we can reproduce the issue. -ut
yes I had problem till rxbinding was in dependency of project(3.2.1 included)
i found solution in my case there is a red error in my code which is not show in compile time.when i see my full code it have a miner mistake so i repared it and it work .
what should i do
Jack is officially dead and replaced by Java 8 desugaring. Please submit a new issue if there are issues with the new Android Java 8 support. -ut
Hello, I am new with greenDAO. I am running with Java 1.8 (Jack enabled).
When trying to compile the APK files are not generated, so I get the following error :
If I manually run the graddle task "greendao", "DaoMaster", "DaeSession" and DAO files are correctly generated. But then, compilation give the following error :
Is there anything I missed ? I really don't know how to debug this.
Thanks :-)