Reputation: 3723
I couldn't compile my android project and I can't find out why. By the way, the project compiled successfully on another computer. This is my build.gradle file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.iba.navdrawer"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:design:23.0.1'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.maps.android:android-maps-utils:0.4+'
}
And this is stack trace:
Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:design:23.0.1.
Searched in the following locations: https://jcenter.bintray.com/com/android/support/design/23.0.1/design-23.0.1.pom https://jcenter.bintray.com/com/android/support/design/23.0.1/design-23.0.1.jar file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/android/support/design/23.0.1/design-23.0.1.pom file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/android/support/design/23.0.1/design-23.0.1.jar file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/android/support/design/23.0.1/design-23.0.1.pom file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/android/support/design/23.0.1/design-23.0.1.jar Required by: NavDrawer:app:unspecified
Could not find com.google.android.gms:play-services-maps:8.3.0.
Searched in the following locations: https://jcenter.bintray.com/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.pom https://jcenter.bintray.com/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.jar file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.pom file:/C:/Program Files/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.jar file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.pom file:/C:/Program Files/Android/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-maps/8.3.0/play-services-maps-8.3.0.jar Required by: NavDrawer:app:unspecified
Upvotes: 2
Views: 7213
Reputation: 16976
Of course it is.You are using: 23.0.1
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:design:23.0.1'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.google.maps.android:android-maps-utils:0.4+'
}
which you've downloaded the 23.1.1 and the gradle couldn't find it.
Use:
dependencies {
compile 'com.android.support:design:23.1.1'
}
or you should download the previous version for using.
Also, remember you need to update your Support Repository for finding the packages on Android Studio
and of course, for now, seems like the best way is Updating all packages on SDK Manager
Upvotes: 1