2017-11-10 2 views
-2

Ich arbeite mit einer Bibliothek, die 'MapActivity' des Pakets 'com.google.android.maps' verwendet, aber dieses Paket konnte nicht aufgelöst werden. Ich benutze Android Studio. Dies ist mein Build.gradleImportieren von 'com.google.android.maps' nicht möglich

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 25 
buildToolsVersion "25.0.1" 
defaultConfig { 
    applicationId "pl.llp.aircasting" 
    minSdkVersion 15 
    targetSdkVersion 25 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    vectorDrawables.useSupportLibrary = true 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
    exclude group: 'com.android.support', module: 'support-annotations' 
}) 
compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support:design:25.3.1' 
compile 'com.android.support:support-vector-drawable:25.3.1' 
compile 'com.android.support:support-v4:25.3.1' 
compile 'com.google.android.gms:play-services-gcm:8.3.0' 
compile 'com.google.android.gms:play-services:8.3.0' 
compile 'com.google.android.gms:play-services-maps:7_r1' 
compile 'org.roboguice:roboguice:1.1' 
compile 'com.google.inject:guice:2.0-no_aop' 
compile "com.google.guava:guava:16+" 
compile 'com.google.code.gson:gson:2.8.0' 
compile 'com.intellij:annotations:[email protected]' 
testCompile 'junit:junit:4.12' 
compile 'com.google.code.findbugs:jsr305:2.0.1' 
compile 'ch.acra:acra:4.2.3' 
} 
+0

ist es auf Ihrem (Klassen-) Pfad? – Stultuske

+0

ich denke nein. Ich konfiguriere keinen Classpath –

+0

, aber ich füge compile 'com.google.android.gms: play-services-maps: 7_r1' bereits in build.gradle hinzu. –

Antwort

0

Ist diese Zeile in Ihrer build.gradle-Datei vorhanden?

Kompilierung 'com.google.android.gms: Play-Dienste-Karten: 9.8 +.'

+0

ich setze compile 'com.google.android.gms: play-services- Karten: 7_r1' –

+0

Wenn möglich, Ihre build.gradle Datei –

+0

ok teilen, modifizierte ich die post.please auf der Post sehen die build.gradle –

0

Ändern Sie Ihre Karte Abhängigkeit von

compile 'com.google.android.gms:play-services-maps:7_r1' 

zu

compile 'com.google.android.gms:play-services-maps:11.0.4' 
Verwandte Themen