title: React Native Project Android Gradle Fail (React-Native-Reanimated Fail)
body: <p>I was in the middle of coding an app using VS Code and react-native and after trying to install react-native-material-ripple I ran into the following error trying to build my app:</p>
  <p>///////////////////////////////////////////////////////////////////////////////////////////////
  FAILURE: Build failed with an exception.</p>
  <ul>
  <li><p>Where:
  Build file 'C:\Users\D'errah\Documents\Code\React\dowProjectMatcher\node_modules\react-native-reanimated\android\build.gradle' line: 89</p>
  </li>
  <li><p>What went wrong:
  A problem occurred configuring project ':react-native-reanimated'.</p>
  </li>
  </ul>
  <blockquote>
  <p>java.io.IOException: The filename, directory name, or volume label syntax is incorrect
  //////////////////////////////////////////////////////////////////////////////////////////////</p>
  </blockquote>
  <p>The app was working perfectly before then. I went to the file in question and looked at the line the error mentioned:</p>
  <p>mentioned line:</p>
  <pre><code>classpath += files(android.bootClasspath)
  </code></pre>
  <p>full file:</p>
  <pre><code>def safeExtGet(prop, fallback) {
      rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
  }
  
  buildscript {
      if (project == rootProject) {
          // The Android Gradle plugin is only required when opening the android folder stand-alone.
          // This avoids unnecessary downloads and potential conflicts when the library is included as a
          // module dependency in an application project.
          repositories {
              google()
              jcenter()
          }
          dependencies {
              classpath 'com.android.tools.build:gradle:3.5.2'
          }
      }
  }
  
  apply plugin: 'com.android.library'
  apply plugin: 'maven'
  
  android {
      compileSdkVersion safeExtGet('compileSdkVersion', 28)
      buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
      defaultConfig {
          minSdkVersion safeExtGet('minSdkVersion', 16)
          targetSdkVersion safeExtGet('targetSdkVersion', 28)
          versionCode 1
          versionName &quot;1.0&quot;
      }
      lintOptions {
          abortOnError false
      }
  }
  
  repositories {
      mavenLocal()
      maven {
          // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
          url &quot;$rootDir/../node_modules/react-native/android&quot;
      }
      maven {
          // Android JSC is installed from npm
          url &quot;$rootDir/../node_modules/jsc-android/dist&quot;
      }
      google()
      jcenter()
  }
  
  dependencies {
      //noinspection GradleDynamicVersion
      implementation 'com.facebook.react:react-native:+'  // From node_modules
      implementation &quot;androidx.transition:transition:1.1.0&quot;
  }
  
  def configureReactNativePom(def pom) {
      def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text)
  
      pom.project {
          name packageJson.title
          artifactId packageJson.name
          version = packageJson.version
          group = &quot;com.swmansion.reanimated&quot;
          description packageJson.description
          url packageJson.repository.baseUrl
  
          licenses {
              license {
                  name packageJson.license
                  url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename
                  distribution 'repo'
              }
          }
  
          developers {
              developer {
                  id packageJson.author.username
                  name packageJson.author.name
              }
          }
      }
  }
  
  afterEvaluate { project -&gt;
  
      task androidJavadoc(type: Javadoc) {
          source = android.sourceSets.main.java.srcDirs
          classpath += files(android.bootClasspath)
          classpath += files(project.getConfigurations().getByName('compile').asList())
          include '**/*.java'
      }
  
      task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
          classifier = 'javadoc'
          from androidJavadoc.destinationDir
      }
  
      task androidSourcesJar(type: Jar) {
          classifier = 'sources'
          from android.sourceSets.main.java.srcDirs
          include '**/*.java'
      }
  
      android.libraryVariants.all { variant -&gt;
          def compileTask
          if (variant.hasProperty('javaCompileProvider')){
              compileTask = variant.javaCompileProvider.get()
          }else{
              compileTask = variant.javaCompile
          }
  
          def name = variant.name.capitalize()
          task &quot;jar${name}&quot;(type: Jar, dependsOn: compileTask) {
              from compileTask.destinationDir
          }
      }
  
      artifacts {
          archives androidSourcesJar
          archives androidJavadocJar
      }
  
      task installArchives(type: Upload) {
          configuration = configurations.archives
          repositories.mavenDeployer {
              // Deploy to react-native-event-bridge/maven, ready to publish to npm
              repository url: &quot;file://${projectDir}/../android/maven&quot;
  
              configureReactNativePom pom
          }
      }
  }
  </code></pre>
  <p>The problem is, I'm pretty sure that how that line was already even while the app was working. So I've spent the last few hours googling and haven't been able to figure out what cause the issue/how to fix it.</p>
  <p>Any help would be GREATLY appreciated!</p>
  <p>Things to note:</p>
  <p>-using VS Code</p>
  <p>-Was working before installing react-native-material-ripple (tried uninstalling, test, reinstalling, test)</p>