Ich habe die Google Play-Dienste aktualisiert und nun scheinen eine Reihe von Klassen zu fehlen:Bei der Aktualisierung von Google Play Services von 8.4.0 auf 9.2.1 wurde eine Menge Code mit com.google.android.gms.location.places entfernt.
com.google.android.gms.location.places.AutocompleteFilter
com.google.android.gms.location.places.AutocompletePrediction
com.google.android.gms.location.places.AutocompletePredictionBuffer
com.google.android.gms.location.places.Places
com.google.android.gms.location.places.Place
com.google.android.gms.location.places.PlaceBuffer
com.google.android.gms.location.places.PlaceLikelihood
com.google.android.gms.location.places.PlaceLikelihoodBuffer
ich bei der Veröffentlichung ausgesehen haben bemerkt https://developers.google.com/android/guides/releases und die API-Referenzen https://developers.google.com/android/reference/com/google/android/gms/location/places/package-summary aber es gibt keine Anzeichen dafür, dass diese Klassen ersetzt wurden.
Kann mir bitte jemand sagen, was los ist?
Danke,
Riz
Edit: hier ist die gradle Build-Datei
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://maven.fabric.io/public' }
}
configurations {
compile.exclude group: 'com.google.guava'
compile.exclude module: 'guava:19.0-rc2'
all*.exclude group: 'commons-logging', module: 'commons-logging'
androidTestCompile.exclude group: 'com.google.code.findbugs'
androidTestCompile.exclude module: 'jsr305:2.0.1'
}
dependencies {
//project
compile project(':MyGeneralLibrary')
compile fileTree(dir: '../libs', include: '*.jar')
compile 'com.google.android.gms:play-services-maps:9.2.1'
compile 'com.google.android.gms:play-services-location:9.2.1'
compile 'com.google.android.gms:play-services-auth:9.2.1'
compile 'com.google.android.gms:play-services-plus:9.2.1'
compile 'com.android.support:support-annotations:24.1.0'
compile 'org.twitter4j:twitter4j-core:4.0.2'
compile 'com.facebook.android:facebook-android-sdk:4.10.0'
compile 'com.github.scribejava:scribejava-apis:2.2.2'
compile('com.twitter.sdk.android:twitter:[email protected]') {
transitive = true;
}
compile 'com.google.code.findbugs:jsr305:1.3.9'
compile 'com.firebase:firebase-client-android:2.5.2'
//unit tests
testCompile project(':TestUtils')
testCompile 'org.hamcrest:hamcrest-library:1.3'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'com.android.support:support-annotations:24.1.0'
//instrumentation tests
androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
androidTestCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test:rules:0.4.1'
androidTestCompile 'com.android.support:support-annotations:24.1.0'
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
androidTestCompile 'com.google.code.findbugs:jsr305:1.3.9'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.1') {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestCompile('com.android.support.test:runner:0.4.1') {
exclude group: 'com.android.support', module: 'support-annotations'
}
}
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "0.01"
applicationId "com.chdryra.android.reviewer"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
sourceSets {
main {
res.srcDirs = ['src/main/res', 'src/androidTest/res']
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE.txt'
}
dexOptions {
javaMaxHeapSize "2g"
}
}
Vielen Dank für die schnelle Antwort ! Wie überprüfe ich andere Bibliotheken, um zu sehen, ob sie auf älteren Versionen von Play Services antworten? – chdryra
Versuchen Sie, für sie zu googeln. Der beste Weg wäre, den Stacktrace richtig zu lesen und die Bibliotheken einzuschränken, die die Fehler verursachen. Das hängt von der verwendeten Bibliothek ab. Die meisten von ihnen sind auf github und Sie können dort überprüfen, ob es Updates für höhere Version gab und Sie können auch ihre Build-Dateien überprüfen, welche libs sie verwenden – parohy
Dies ist ein Fehler bei der Kompilierung (Fehler beim Import) nicht Laufzeit kann also verwende keine Stack-Trace. – chdryra