title: "Failed to resolve :sdk-release: " which is aar file
body: <p>i asked a question before about my project and still need a help..</p>
  
  <p><a href="https://stackoverflow.com/questions/46991467/android-studio-3-gradle-sync-issue/46991737?noredirect=1#comment80930569_46991737">Android Studio 3 gradle sync issue
  </a></p>
  
  <p>now i have another problem which i can't figure out. when i try to build my project, i get this error: </p>
  
  <blockquote>
    <p>Error:Failed to resolve: :sdk-release:</p>
  </blockquote>
  
  <p>my <strong><em>sdk-release.aar</em></strong> file is in <strong>projectFolder>libs>aar</strong> and also <strong>sdk-release</strong> folder</p>
  
  <p>what is that error and how can i solve this? </p>
  
  <p>my <strong><em>build.gradle</em></strong> code is like this now</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          mavenLocal()
          google()
      }
  
      dependencies {
          classpath 'com.android.tools.build:gradle:3.0.0'
  
      }
  }
  
  repositories {
      mavenCentral()
      mavenLocal()
  }
  
  apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 23
      buildToolsVersion '26.0.2'
  
      defaultConfig {
          applicationId 'com.kofax.sdk.samples.easysnap'
          minSdkVersion 14
          targetSdkVersion 23
          versionCode 1
          versionName '1.0'
      }
  
      sourceSets {
          main {
              jniLibs.srcDirs = ['libs']
          }
      }
  
      buildTypes {
          release
      }
  
      packagingOptions {
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
          exclude 'META-INF/DEPENDENCIES'
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/NOTICE'
      }
  
      lintOptions {
          abortOnError false
      }
  }
  
  configurations.all {
      resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
  }
  
  dependencies {
  
      def sdkRef
  
      project.getRootProject().allprojects.each { proj -&gt;
          if (proj.name.toLowerCase().equals('sdk')) {
              sdkRef = proj;
              return true;
          }
      }
  
      if (sdkRef) {
          println "SDK present in project; using project reference as dependency"
          compile sdkRef
      } else {
          println "SDK is not present in project; dependency reference"
  
          repositories {
              flatDir { dirs 'libs' }
          }
  
          implementation (name: 'sdk-release', ext: 'aar')
      }
  
      compile fileTree(dir: 'libs', include: ['*.jar'])
  
      implementation 'com.android.support:appcompat-v7:23.4.0'
  
  }
  </code></pre>