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'
}
ist es auf Ihrem (Klassen-) Pfad? – Stultuske
ich denke nein. Ich konfiguriere keinen Classpath –
, aber ich füge compile 'com.google.android.gms: play-services-maps: 7_r1' bereits in build.gradle hinzu. –