When I am trying to deploy my first application to Google App Engine, it gives me an error
An internal error occurred during: "Deploying JugaadFunda to Google".
com.google.appengine.tools.admin.AppAdminFactory.setJarSplittingEnabled(Z)V
I am really not getting where I am wrong. I would appreciate if someone helps.
I got this error when updating my App Engine SDK version from 1.9.54 to 1.9.61 (Using JRE7).
Getting back to 1.9.54 was my solution.
Hope it helps.
Update 27-Mar-2018
I did some more digging today and found the following:
https://issuetracker.google.com/issues/72450185
So it appears everybody's getting pushed on to the Google Cloud SDK. This link also includes instructions on migrating over; I haven't tried this myself yet, so good luck.
Partial answer:
In SDK versions 1.9.60 or 1.9.61, the method
void setJarSplittingEnabled(boolean doSplit);
was removed from com.google.appengine.tools.admin.AppAdminFactory.
When deploying a project, somewhere along the way, this method is being called and obviously doesn't resolve, the deployment aborts.
I can only speculate - looks like jar splitting isn't a thing any longer so it was removed from the SDK. As this is happening on a very old project of mine, I suspect somewhere buried in the project settings is an old switch that triggers the call to that method. Easiest (not necessarily best) way would be for Google to re-introduce this method as a stub that does nothing so we can continue deploying our projects using current SDK versions. Or of course if somebody can point to a setting somewhere (that I couldn't locate), that would be even better.
It seems as of today it is not possible anymore to deploy with App Engine SDK version 1.9.54. You are forced to upgrade to version 1.9.64, which leads to the
com.google.appengine.tools.admin.AppAdminFactory.setJarSplittingEnabled(Z)V problem.
So I guess you are forced to upgrade to the cloud based SDK as of now (which I didn't manage to realise up to now). See https://issuetracker.google.com/issues/110066569.
In the documentation 1 is is explained that the method
AdminFactory.setJarSplittingEnabled()
is used to divide the JAR files to ease their manipulation and upload. Deactivation of the function, however, can lead to failures if the files are too big.
Depending on what your value “Z” is, it might be the root of the problem. I do wonder also, what is that “V” doing after the sentence?, if this is not a typo of the answer, I recommend you to delete it as it is part of an incorrect sentence syntax.
Documentation link
Update your Eclipse Plugin - to Google Cloud SDK: https://cloud.google.com/eclipse/docs/migrating-gpe