java - 无法部署到 Google App Engine : java. lang.IllegalArgumentException:类文件是 Java 8 但最大支持是 Java 7

标签 java eclipse google-app-engine firebase

尝试设置时出现此错误 Firebase Admin SDK

Preparing to deploy: Created staging directory at: 'C:\Users\Parag\AppData\Local\Temp\appcfg4808135439637212840.tmp' java.lang.IllegalArgumentException: Class file is Java 8 but max supported is Java 7: com/google/firebase/FirebaseApp$1.class in G:_work\testproject\war\WEB-INF\lib\firebase-admin-4.0.0.jar

enter image description here

App Engine SDK 版本:1.9.34

Eclipse 版本:Neon.1a 发布 (4.6.1)

Java 编译器版本设置为 1.7 Java Compiler Version

有没有人遇到过这个错误,请帮忙

最佳答案

根据他们的 release notes,这似乎是一个已知问题对于 firebase-admin 4.0.0 版(2016 年 11 月 7 日)和 4.0.1 版(2016 年 11 月 8 日):

ISSUE: This version was compiled for Java 8 and does not support Java 7. This will be fixed in an upcoming release.

我想我们将不得不等待 ;)


更新:

根据他们的 release notes , 现在已在 4.0.2 版中修复 - 2016 年 11 月 15 日:

FIXED This update restores Java 7 compatibilty for the Admin Java SDK.

关于java - 无法部署到 Google App Engine : java. lang.IllegalArgumentException:类文件是 Java 8 但最大支持是 Java 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40480616/

相关文章:

python - 向现有模型添加一些模型引用

java - GAE @Persistent(valueStrategy = IdGeneratorStrategy.SEQUENCE) 不生成序列号

java - 为什么我的图像没有下载到 ImageViews 中?

java - 如何获取某个数字在队列中出现的次数(Java)?

java - 使用 Java 创建自定义字符并为其分配 unicode

eclipse - 无法在 Eclipse 中激活 JPA Facet

java - IntelliJ IDEA 中标有编译器错误的代码在 Eclipse 中运行良好

java - Java wait(), notify() 的实现与锁有很大不同吗?

JAVA,批处理文件错误

python - 谷歌应用引擎上的 webapp、tipfy 或 django