blogger的android谷歌数据api崩溃

blogger的android谷歌数据api崩溃,android,Android,我想通过谷歌数据api获取我的博客数据 我写了这段代码: public class blogger extends Activity { private GoogleService myService; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCre

我想通过谷歌数据api获取我的博客数据

我写了这段代码:

public class blogger extends Activity 
{

    private GoogleService myService;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        myService = new GoogleService("blogger", "test-blogger-0");
        try {
            myService.setUserCredentials("mitpig@gmail.com", "112233");
        } catch (AuthenticationException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }  
}
但它总是崩溃在:myService=newgoogleservice(“blogger”,“test-blogger-0”)

并抛出“java.lang.ExceptionInInitializerError”


有人能告诉我为什么吗?

为了解决这个问题,我做了一些研究,包括google SDK附带的以下jar:google-collect-1.0-rc1.jar和jsr305.jar。通过将这些jar添加到构建路径中,我现在可以成功地实例化google服务,而没有上述异常。

我也有同样的错误我不知道怎么解决这个问题。