I recently updated my Android Studio to version 3.0, and subsequently updated Gradle to version 4.1.
Now, after I try to load my existing project I get the following errors:
Error:Unable to resolve dependency for ':app@UnitTest/compileClasspath': Could not resolve project :intro-slider-lib.
Error:Unable to resolve dependency for ':app@UnitTest/compileClasspath': Could not resolve project :intro-slider-lib.
I've tried several solutions posted in other threads, but none seems to work. Here's my build.gradle (app) file:
apply plugin: 'com.android.application'
allprojects{
repositories {
maven {
url 'https://maven.google.com'
}
}
}
android {
compileSdkVersion 25
buildToolsVersion '26.0.2'
defaultConfig {
useLibrary 'org.apache.http.legacy'
minSdkVersion 14
targetSdkVersion 25
versionCode 3
versionName "1.6"
}
buildTypes {
debug {
debuggable true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {}
ApkQuipons {}
staging {
matchingFallbacks = ['debug', 'qa', 'release']
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:cardview-v7:25.1.0'
compile 'com.google.android.gms:play-services-gcm:10.0.1'
compile 'com.android.support:design:25.1.0'
compile 'com.android.volley:volley:1.0.0'
implementation project(':intro-slider-lib')
}
EDIT: Here's my build.gradle (project) code as well:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}