我和这个人有完全相同的问题:
https://groups.google.com/forum/#!topic/google-appengine-java/4y90M9NlWsA
但没有回应,我在互联网上看不到任何其他有帮助的东西。有谁知道为什么会发生这种情况?
RemoteApiOptions options = new RemoteApiOptions()
.server("localhost", 8888)
.credentials("blah@blah.blah", "");
RemoteApiInstaller installer = new RemoteApiInstaller();
installer.install(options);
堆栈跟踪是:
Exception in thread "main" java.io.IOException: unexpected response from remote api: {rtok: null, app_id: MyCorrectAppId}
at com.google.appengine.tools.remoteapi.RemoteApiInstaller.getAppIdFromServer(RemoteApiInstaller.java:326)
at com.google.appengine.tools.remoteapi.RemoteApiInstaller.loginImpl(RemoteApiInstaller.java:278)
at com.google.appengine.tools.remoteapi.RemoteApiInstaller.login(RemoteApiInstaller.java:239)
at com.google.appengine.tools.remoteapi.RemoteApiInstaller.install(RemoteApiInstaller.java:106)
at uk.blah.blah.MyClass.main(MyClass.java:114)