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

前端 未结 2 1375
孤独总比滥情好
孤独总比滥情好 2021-01-24 10:43

Got this error while trying to setup Firebase Admin SDK

Preparing to deploy: Created staging directory at: \'C:\\Users\\Parag\\AppData\\Local\\Temp\\ap

2条回答
  •  青春惊慌失措
    2021-01-24 11:34

    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.

提交回复
热议问题