Closed RichyHBM closed 7 years ago
Its a warning, not an error. If you use Java 8 features like Lambdas, its just prints a warning that rooms annotation processor uses java 7 for generating code. Ignore it since it is just a warning. I think room uses java 7 to let developers decide if they want to use java 8 (annotations) or 7 for now.
Yes, it is just a warning. Should not be a problem.
Would be nice if there were a Gradle flag we could use to turn this warning off...it's the only warning in our project build :-(
Another vote for patching this up somehow. It's the only thing keeping us from treating warnings as errors.
Just pass -Xlint:unchecked
to your Gradle flags until Google decides to support Java 8 like in lifecycle library.
If somebody still encounter this warning, I suggest use common-java8
instead of compiler
.
- annotationProcessor "android.arch.lifecycle:compiler:1.0.0"
+ implementation "android.arch.lifecycle:common-java8:1.0.0"
In my project the warning disappear. I hope this helps.
That gets rid of the warning for the lifecycle
stuff, but not for the Room stuff.
I have the same problem but I don't know how to solve I'm using Android studio 3.10
So many bugs...
upgrade to room 1.1.1, java 8 and warning will disappear.
i have update the room version but still i getting the same issue. Please help.
Boa noite pessoal, estou com o mesmo problema só que em Java, para gerar relatórios no JasperReport Studio, segue abaixo a mensagem:
net.sf.jasperreports.engine.design.JRJdk13Compiler compileClasses INFORMAÇÕES: warning: Supported source version 'RELEASE_8' from annotation processor 'net.sf.jasperreports.annotations.processors.properties.PropertyProcessor' less than -source '17' 1 warning
Entendi que é um aviso, mas o executável não deixa gerar o relatório por conta desse "erro", alguém conseguiu uma solução?
I am getting this error specifically by trying to use kotlin with Room, but I assume this would also occur if you are using Java 8 in your source code.
The error is:
Warning:warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.persistence.room.RoomProcessor' less than -source '1.8'
and seems to be from a use of@SupportedSourceVersion
which specifies "the latest source version an annotation processor supports"? Is this expected? Do we need to wait for the full 1.0 release for it to be fully supported?
[Uploading OpenMQTTGateway-development.zip…]()
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
I am getting this error specifically by trying to use kotlin with Room, but I assume this would also occur if you are using Java 8 in your source code.
The error is:
Warning:warning: Supported source version 'RELEASE_7' from annotation processor 'android.arch.persistence.room.RoomProcessor' less than -source '1.8'
and seems to be from a use of@SupportedSourceVersion
which specifies "the latest source version an annotation processor supports"? Is this expected? Do we need to wait for the full 1.0 release for it to be fully supported?