大家好,我似乎无法使用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 回答
我在reddit的帮助下想出来了:christophermaness.com/a-problem-with-compiling-a-java-project -