We are having issues upgrading Google services to Java 17. I followed the instructions to upgrade app engine apis from version 8 to version 17. The backend build is successful , but I get this error during gcloud deployment :
gcloud app --quiet deploy appengine-web.xml --version=22 --no-promote --verbosity=debug --verbosity=warning
ERROR: (gcloud.app.deploy) Staging command [/usr/bin/java -classpath /usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/java/lib/appengine-tools-api.jar com.google.appengine.tools.admin.AppCfg --enable_new_staging_defaults stage /opt/tmp/tmp9r8_i8t1/tmpkxfacysd] failed with return code [1]
java.lang.UnsupportedClassVersionError: /HeartbeatServlet
has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
My image is in java 17 , so HeartbeatServlet has been compiled on version 17.
Has anyone seen this issue before ?