Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 询问用户时出错';s Auth2_Java_Android_Eclipse_Oauth 2.0 - Fatal编程技术网

Java 询问用户时出错';s Auth2

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

我正在尝试运行Google教程中的代码:

  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
。我要双倍的支票是的,我有,但仍然崩溃