Google财经API存在轻微问题

时间:2011-01-06 23:30:09

标签: google-finance-api

大家好,我似乎无法使用google finance 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

的那一行

1 个答案:

答案 0 :(得分:0)

我在reddit的帮助下找到了它:christophermaness.com/a-problem-with-compiling-a-java-project -