title: Adding event to Google calendar in android studio
body: <p>I am trying to add an event to a Google Calendar in Android Studio. I have been trying to follow the steps at <a href="https://developers.google.com/google-apps/calendar/v3/reference/events/insert#request-body" rel="nofollow">https://developers.google.com/google-apps/calendar/v3/reference/events/insert#request-body</a> and <a href="https://developers.google.com/google-apps/calendar/quickstart/java" rel="nofollow">https://developers.google.com/google-apps/calendar/quickstart/java</a> for the Java example. </p>
  
  <p>However I get the following runtime error when I run the app on my phone: </p>
  
  <blockquote>
    <p>java.io.IOException: Unable to create the directory[credentials/calendar-java-quickstart.json] </p>
  </blockquote>
  
  <p>Any ideas on why this might happen? This is sample code on the Google API pages for Java. Is there a different way of doing in android?</p>