大家好,我似乎无法使用谷歌金融 api 登录到我的帐户,我不知道为什么。这是我的代码
public static void main (String [ ] args)
{
FinanceService myService = new FinanceService("exampleCo-exampleApp-1");
try
{
myService.setUserCredentials("...@gmail.com","...");
}
catch (AuthenticationException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
这是我的错误
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at com.google.gdata.util.VersionRegistry.ensureRegistry(VersionRegistry.java:88)
at com.google.gdata.client.Service.initServiceVersion(Service.java:458)
at com.google.gdata.client.Service.<clinit>(Service.java:147)
at main.main(main.java:55)
第 55 行是启动 FinanceService 的行