Java 询问用户时出错';s Auth2
我正在尝试运行Google教程中的代码:Java 询问用户时出错';s Auth2,java,android,eclipse,oauth-2.0,Java,Android,Eclipse,Oauth 2.0,我正在尝试运行Google教程中的代码: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); credential = GoogleAccountCredential.usingOAuth2(this, Collections.singleton(DriveScopes.DRIVE)); startActivityForResult(credent
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
credential = GoogleAccountCredential.usingOAuth2(this, Collections.singleton(DriveScopes.DRIVE));
startActivityForResult(credential.newChooseAccountIntent(), REQUEST_ACCOUNT_PICKER);
}
但我得到了这个错误:
过了一会儿,我得到了这个弹出错误(我正在使用eclipse)
虽然我有:
如何修复此问题?您是否在项目依赖项中添加了库
android-1.16.0-rc.jar
。我要双倍的支票是的,我有,但仍然崩溃