Build -> Rebuild Project
' u tıklattığımda bu hatayı alıyorum.Android studio - Görev 'projede bulunamadı': google-play-services_lib '
Everyrithing harita ile gayet iyi. Ben başarıyla build.gradle senkronize ve hatasız proje temizleyin. Ve cihazımda haritayı çalıştırabilirim.
build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.0'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile 'com.android.support:support-v4:20.0.0'
compile 'com.google.android.gms:play-services:5.0.77'
}
android {
compileSdkVersion 20
buildToolsVersion '20'
defaultConfig {
minSdkVersion 10
targetSdkVersion 20
}
}
Manifest.xml
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Settings.gradle dosyanızda bazı 'google play-services_lib' olmalıdır. Bu ne hakkında? –
Evet. Bende var. settings.gradle - 'include ': MyProject', ': google-play-services_lib' ' –