title: ionic pro package failure: Failed to install android SDK Platform 26
body: <p>I am using the new Ionic Pro. I have migrated my previously working ionic app to the new Pro services. I am now able to successfully push my code to my ionic pro git repo and I can see the build log on the dashboard. The build completes successfully. Once that is done, I navigate to the Package tab for said build. I configure my package to compile <strong>platform=Android version=Release Security Profile=Android Release security profile.</strong></p>
  
  <p>The output log at this point moves through the installation process and gets the following console output. </p>
  
  <pre><code> BUILD SUCCESSFUL
  </code></pre>
  
  <p>The build process then appears to start a Gradle Daemon and ultimately ends up with this output</p>
  
  <pre><code>The Task.leftShift(Closure) method has been deprecated and is scheduled to 
  be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
  at 
  </code></pre>
  
  <p>build_dczd6dp0q9phbzjp0lgrh3ndj.run(/usr/src/app/platforms/android/build.gradle:142)
      File /home/gitlab-runner/.android/repositories.cfg could not be loaded.
      Checking the license for package Android SDK Platform 26 in /opt/android-
      sdk/licenses
      License for package Android SDK Platform 26 accepted.
      Preparing "Install Android SDK Platform 26".
      Warning: Failed to read or create install properties file.</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'android'.
  &gt; Failed to install the following SDK components:
    [Android SDK Platform 26]
    The SDK directory (/opt/android-sdk) is not writeable,
    please update the directory permissions.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --
  debug option to get more log output.
  
  BUILD FAILED
  
  Total time: 33.48 secs
  Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 
  1 Error output:
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'android'.
  &gt; Failed to install the following SDK components:
    [Android SDK Platform 26]
    The SDK directory (/opt/android-sdk) is not writeable,
    please update the directory permissions.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --
  debug option to get more log output.
  Failed to upload apk to storage please retry your build.
  Running after script...
  $ clean-up
  Cleaning up files...
  Successful clean up
  ERROR: Job failed: exit status 1
  </code></pre>
  
  <p>I am not clear as to what this error means or how I can resolve it using ionic pro. The build works for me locally.</p>
  
  <p>The following is my ionic info</p>
  
  <pre><code>    @ionic/cli-utils  : 1.10.2
      ionic (Ionic CLI) : 3.10.3
  
  global packages:
  
      Cordova CLI : 7.0.1
  
  local packages:
  
      @ionic/app-scripts : 2.1.4
      Cordova Platforms  : android 6.2.3 ios
      Ionic Framework    : ionic-angular 2.3.0
  
  System:
  
      Node : v7.5.0
      npm  : 4.1.2
      OS   : Windows 10
  </code></pre>