title: Could not resolve all files for configuration: ':app:debugRuntimeClasspath'
body: <p>I am attempting to implement a third party SDK bundle when I ran <code>react-native run-android</code> I got the following error:</p>
  <blockquote>
  <p>Execution failed for task ':app:checkDebugAarMetadata'.</p>
  <blockquote>
  <p>Could not resolve all files for configuration ':app:debugRuntimeClasspath'.</p>
  </blockquote>
  </blockquote>
  <blockquote>
  <blockquote>
  <p>Could not resolve com.ts.auth-control-sdk:5.1.1.
  Required by:
  project :app</p>
  </blockquote>
  </blockquote>
  <blockquote>
  <pre><code>  &gt; Could not resolve com.ts:auth-control-sdk:5.1.1.
  </code></pre>
  </blockquote>
  <blockquote>
  <pre><code>    &gt; Could not get resource 'https://www.jitpack.io/com/ts/auth-control-sdk/5.1.1/auth-control-sdk-5.1.1.pom'.
  </code></pre>
  </blockquote>
  <blockquote>
  <pre><code>      &gt; Could not GET 'https://www.jitpack.io/com/ts/auth-control-sdk/5.1.1/auth-control-sdk-5.1.1.pom'.
  </code></pre>
  </blockquote>
  <blockquote>
  <pre><code>        &gt; sun.security.validator.Validator.Exception: PKIX path building failed:
  </code></pre>
  <p>sun.security.provider.certpath.SunCertPathBuilderException: unable to
  find valid certification path to requested target</p>
  </blockquote>
  <p>Inside of my <code>app/build.gradle</code> file, I have the following setup:</p>
  <pre><code>dependencies {
    ...
    implementation &quot;com.ts:auth-control-sdk:5.1.1:arr&quot;
    ...
  }
  </code></pre>
  <p>Inside my <code>android/build.gradle</code> file I have the following:</p>
  <pre><code>allprojects {
    repositories {
      ...
      maven {
        url(&quot;$rootDir/../com/ts/auth-control-sdk/5.1.1&quot;)
      }
  
      google()
      jcenter()
      maven { url 'https://jitpack.io' }
    }
  }
  </code></pre>
  <p>I am not even sure whether this third-party SDK even exists inside of Jitpack repository.</p>
  <p>Did I err in the way I implemented the dependency?</p>
  <p>As far as the <code>maven</code> directory, per the documentation I placed a folder called <code>com/</code> inside the root folder of the mobile app and the folder structure of it is: <strong>com &gt; ts &gt; auth-control-sdk &gt; 5.1.1</strong></p>
  <p>It seems as though if it's inside of <code>maven {}</code> it will go to Jitpack repo and look for library as opposed to just going to the root folder of the project. Am I correct in this conclusion?</p>
  <p>By the way I placed it inside of <code>maven {}</code> because their documentation says to do so.</p>
  <p>Could it be that <code>$rootDir</code> is what indicates to <code>maven</code> to go look at Jitpack since below all the libraries there is that:</p>
  <p><code>maven { url 'https://www.jitpack.io' }</code></p>
  <p>Am I correct in concluding that <code>$rootDir</code> is referencing that jitpack url and not the root directory of the application?</p>
  <p>Well, I gave it a shot and came away with the same exact error.</p>
  <p>I believe I am correctly notating the file in accordance with this documentation:
  <a href="https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/DependencyHandler.html" rel="noreferrer">https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/dsl/DependencyHandler.html</a></p>
  <p>I am not notating it like so: <code>implementation (&quot;com.ts:auth-control-sdk-5.1.1@arr&quot;) { transitive=true }</code></p>
  <p>and removed the following : <code>maven { url 'https://www.jitpack.io' }</code></p>
  <p>But then I get this error:</p>
  <blockquote>
  <p>Execution failed for task ':app:checkDebugAarMetadata'.</p>
  <blockquote>
  <p>Could not resolve all the files for configuration 'app:debugRuntimeClasspath'.</p>
  </blockquote>
  </blockquote>
  <blockquote>
  <blockquote>
  <p>Could not find com.ts:auth-control-sdk-5.1.1:.
  Required by
  project :app</p>
  </blockquote>
  </blockquote>