I\'ve problems to migrate my project to the newest Gradle 4.0 + Android Studio 3 version, which gives me all kind of errors. Little by little I managed to sort them all out
IF your app includes a build type that a library dependency does not.
For example, your app includes a "staging" build type, but a dependency includes only a "debug" and "release" build type.
You will get error like
Unable to resolve dependency for ':app@staging/compileClasspath': Could not resolve project :library. Open File Show Details
You can resolve this error by adding
buildTypes {
staging {
proguardFile getDefaultDexGuardFile('dexguard-release.pro')
proguardFile 'dexguard-rules.pro'
matchingFallbacks = ['debug', 'release'] //add this line
}
}
Resolve build errors related to dependency matching official docs