2016-09-16 5 views
-1

몇 가지 지침을 따르고 있는데이 오류가 발생합니다.내 안드로이드 앱에 광고를 추가하지 못했습니다.

Error:Could not find com.google.gms:google-services:3.0.0. Searched in the following locations: file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/google/gms/google-services/3.0.0/google-services-3.0.0.jar https://maven.fabric.io/public/com/google/gms/google-services/3.0.0/google-services-3.0.0.pom https://maven.fabric.io/public/com/google/gms/google-services/3.0.0/google-services-3.0.0.jar Required by panic_android:app:unspecified

내 Gradle을은 다음과 같습니다

apply plugin: 'com.android.application' 
    apply plugin: 'io.fabric' 
    apply plugin: 'com.google.gms.google-services' 
buildscript { 
repositories { 
    maven { url 'https://maven.fabric.io/public' } 
} 
dependencies { 
    classpath 'com.google.gms:google-services:3.0.0' 
    classpath 'io.fabric.tools:gradle:1.+' 
} 
} 
repositories { 
mavenCentral() 
maven { url 'https://maven.fabric.io/public' } 
} 
android { 
compileSdkVersion 23 
buildToolsVersion "23.0.2" 
defaultConfig { 
    applicationId "com.netvariant.panic" 
    minSdkVersion 15 
    multiDexEnabled true 
    targetSdkVersion 21 
    versionCode 2 
    versionName "1.1" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
    } 
} 
dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
testCompile 'junit:junit:4.12' 
compile 'com.android.support:appcompat-v7:23.2.0' 
compile 'com.android.support:design:23.2.0' 
compile 'com.google.android.gms:play-services:8.4.0' 
compile('com.twitter.sdk.android:twitter:[email protected]') { 
    transitive = true; 
} 
compile 'com.skyfishjy.ripplebackground:library:1.0.1' 
compile 'com.facebook.android:facebook-android-sdk:4.7.0' 
compile 'com.android.support:multidex:1.0.1' 
} 
+0

jCenter()를 누락 될 것으로 보인다. 왜? 아니면 두 파일을 합친 것입니까? 그리고 당신은'jCenter'가 누락 된 것 같습니다 –

+0

예, jcenter가 문제를 해결했습니다. –

+0

아래의 내 대답 옆에있는 체크 표시를 사용하여 수락 할 수 있습니다 –

답변

0

당신은 당신이`repositories` 섹션이

repositories { 
    jCenter() 
    maven { url 'https://maven.fabric.io/public' } 
} 
관련 문제