Parag Jadhav
Parag Jadhav

Reputation: 1899

Unable to deploy to Google App Engine : java.lang.IllegalArgumentException: Class file is Java 8 but max supported is Java 7

Got this error while trying to setup 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 version: 1.9.34

Eclipse version: Neon.1a Release (4.6.1)

Java Compiler Version Set to 1.7 Java Compiler Version

Have anyone encountered this error, please help

Upvotes: 1

Views: 439

Answers (2)

Nico
Nico

Reputation: 199

It seems like this is a known issue based on their release notes for firebase-admin version 4.0.0 (November 7, 2016) and version 4.0.1 (November 8, 2016):

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

I guess we'll have to wait ;)


UPDATE:

As per their release notes, it is now fixed in version 4.0.2 - November 15, 2016:

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

Upvotes: 4

CtC
CtC

Reputation: 54

At this time, it appears as though the firebase-admin-sdk is intended to be used on the Google Flexible Environment instead of the Standard Environment.

https://cloud.google.com/appengine/docs/flexible/java/flexible-for-standard-users

A comparable package for the Standard Environment would be firebase-server-sdk.

https://mvnrepository.com/artifact/com.google.firebase/firebase-server-sdk

However, references to the original server sdk documentation now forward to the admin sdk documentation. So, perhaps they will release an update to the Standard Environment that supports Java 8, or an update to the admin sdk that works on Java 7.

Upvotes: 0

Related Questions