我正在尝试在Google日历中创建新的Event
。我还提到Calendar
示例应用创建Event
示例,如果我创建新的Calenda
r,但是当我尝试创建新的{{1}时,它工作正常它显示Event
。
这是我的代码:
GoogleAuthIOExcepion
,它显示的错误是:
05-09 15:55:32.816:W / System.err(19365):com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException
05-09 15:55:32.937:W / System.err(19365):在com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential $ RequestHandler.intercept(GoogleAccountCredential.java: 286)
05-09 15:55:32.937:W / System.err(19365):at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:859)
05-09 15:55:32.937:W / System.err(19365):at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
05-09 15:55:32.937:W / System.err(19365):at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
05-09 15:55:32.941:W / System.err(19365):at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
05-09 15:55:32.941:W / System.err(19365):at com.example.csa.csa $ MyTask.doInBackground(CalendarSampleActivity.java:371)
05-09 15:55:32.941:W / System.err(19365):at com.example.csa.csa $ MyTask.doInBackground(CalendarSampleActivity.java:1)
05-09 15:55:32.941:W / System.err(19365):在android.os.AsyncTask $ 2.call(AsyncTask.java:287)
05-09 15:55:32.945:W / System.err(19365):at java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:305)
05-09 15:55:32.945:W / System.err(19365):at java.util.concurrent.FutureTask.run(FutureTask.java:137)
05-09 15:55:32.949:W / System.err(19365):在android.os.AsyncTask $ SerialExecutor $ 1.run(AsyncTask.java:230)
05-09 15:55:32.949:W / System.err(19365):at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
05-09 15:55:32.953:W / System.err(19365):at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:569)
05-09 15:55:32.953:W / System.err(19365):at java.lang.Thread.run(Thread.java:856)
05-09 15:55:32.957:W / System.err(19365):引起:com.google.android.gms.auth.GoogleAuthException:BadUsername
05-09 15:55:33.109:W / System.err(19365):at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
05-09 15:55:33.109:W / System.err(19365):at com.google.android.gms.auth.GoogleAuthUtil.getToken(Unknown Source)
05-09 15:55:33.113:W / System.err(19365):at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.getToken(GoogleAccountCredential.java:255)
05-09 15:55:33.113:W / System.err(19365):at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential $ RequestHandler.intercept(GoogleAccountCredential.java: 279)
05-09 15:55:33.113:W / System.err(19365):... 13更多
如果有人已经尝试过,请提供帮助。