title: Unity Android build failing
body: <p>I am trying to build my unity VR application for Android. However I receive errors every single time, I have changed the gradle version and the source code paths, to no avail. The errors seem to come from a failure to compile a native video player from <a href="https://github.com/google/ExoPlayer" rel="nofollow noreferrer">https://github.com/google/ExoPlayer</a> which I am leveraging in my application, which comes pre-packaged in the Oculus SDK.</p>
  
  <pre><code>CommandInvokationFailure: Gradle build failed. 
  C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\&gt;&gt;bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradl&gt;&gt;e-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
  
  stderr[
  Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
  
  FAILURE: Build failed with an exception.
  
  * Where:
  Build file 'C:\Users\aiden\Documents\GitHub\Lidos\Temp\gradleOut\build.gradle' line: 30
  
  * What went wrong:
  A problem occurred evaluating root project 'gradleOut'.
  &gt; Could not find method implementation() for arguments [{name=audio360-exo28, ext=aar}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  &gt;&gt;BUILD FAILED in 6s
  &gt;&gt;]
  &gt;&gt;stdout[
  &gt;&gt;NDK is missing a "platforms" directory.
  &gt;&gt;If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  &gt;&gt;It is currently set to C:\Users\aiden\AppData\Local\Android\sdk\ndk-bundle.
  &gt;&gt;If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or &gt;&gt;local.properties to remove this warning.
  &gt;&gt;
  &gt;&gt;]
  </code></pre>
  
  <p>The line where there are build issues comes from this at the first line using implementation</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.google.android.exoplayer:exoplayer:2.8.4'
      implementation(name: 'audio360-exo28', ext:'aar')
      implementation(name: 'audio360', ext:'aar')
      implementation(name: 'gvr', ext:'aar')
      implementation(name: 'OVRPlugin', ext:'aar')
      implementation(name: 'unitygvr', ext:'aar')
  }
  </code></pre>
  
  <p>The dependencies seem to all be in the gradleOut so I do not know why it fails to implement audio360-exo28</p>