0

大家好,我似乎无法使用谷歌金融 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 的行

4

1 回答 1

0

我在 reddit 的帮助下找到了答案:christophermaness.com/a-problem-with-compiling-a-java-project –</p>

于 2011-01-08T16:31:43.930 回答