Java 迁移到新位置SDK客户端不起作用
我正在尝试使用谷歌提供的新方法在我的Android应用程序上实现places picker: 以下是完整的教程URL: 但将此实现添加到gradale时:Java 迁移到新位置SDK客户端不起作用,java,android,Java,Android,我正在尝试使用谷歌提供的新方法在我的Android应用程序上实现places picker: 以下是完整的教程URL: 但将此实现添加到gradale时: implementation 'com.google.android.libraries.places:places:1.0.0' 出现以下错误: 错误:无法访问zzbck 找不到com.google.android.gms.internal.zzbck的类文件 这意味着,正如我所猜测的,上述植入与FCM库之间存在冲突 这是我的毕业证书:
implementation 'com.google.android.libraries.places:places:1.0.0'
出现以下错误:
错误:无法访问zzbck
找不到com.google.android.gms.internal.zzbck的类文件
这意味着,正如我所猜测的,上述植入与FCM库之间存在冲突
这是我的毕业证书:
dependencies {
implementation 'com.google.android.libraries.places:places:1.0.0'
implementation 'com.google.android.libraries.places:places-compat:1.0.0'
implementation(name:'HERE-sdk', ext:'aar')
implementation project(':base')
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
implementation(
[group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.4.1'],
)
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
implementation 'com.android.support:multidex:1.0.1'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.bignerdranch.android:expandablerecyclerview:2.1.1'
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.squareup:android-times-square:1.6.5@aar'
implementation 'cat.ereza:customactivityoncrash:1.5.0'
implementation 'commons-io:commons-io:2.4'
// implementation 'com.github.bumptech.glide:glide:4.0.0-RC1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.google.android.gms:play-services:11.4.0'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.mikhaellopez:circularprogressbar:1.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.priyankvex:smarttextview:1.0.1'
implementation 'com.github.lespinsideg:panoramagl:0.1.1'
implementation 'me.leolin:ShortcutBadger:1.1.16@aar'
implementation 'com.google.firebase:firebase-core:11.4.0'
implementation 'com.github.rey5137:material:1.2.2'
implementation 'com.android.support:support-v4:28.0.0'
// implementation 'com.google.firebase:firebase-messaging:10.2.1'
implementation 'com.loopj.android:android-async-http:1.4.9'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.github.darsh2:MultipleImageSelect:v0.0.4'
// annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
// implementation 'com.github.bumptech.glide:glide:4.8.0'
// implementation 'com.github.bumptech.glide:glide:4.4.0'
// annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.github.bumptech.glide:glide:3.6.1'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.google.firebase:firebase-messaging:11.4.0'
// implementation 'com.google.android.gms:play-services-maps:11.0.4'
implementation 'com.google.android.gms:play-services-maps:11.4.0'
implementation 'com.google.android.gms:play-services-location:11.4.0'
// implementation 'com.github.aliumujib:Nibo:2.0'
}
apply plugin: 'com.google.gms.google-services'
根据谷歌的说法
位置选择器仅在兼容性库中受支持,在新客户端库中不受支持。要继续使用位置选择器,必须安装兼容性库。如果您已经在控制台中启用了previous Places SDK for Android服务,请不要禁用它!如果正在使用新的API服务,还必须在控制台中启用它们
将PlacesSDK for Android兼容性库添加到您的项目中
dependencies {
implementation 'com.google.android.libraries.places:places-compat:1.1.0'
}
注意
您只能安装客户端库或兼容性库,不能同时安装两者
记住
重要提示:自2019年1月29日起,位置选择器已弃用。此功能将于2019年7月29日关闭,并在该日期后不再可用。要在弃用期内继续使用Place Picker,请不要在Google云平台项目中禁用Place SDK for Android服务,因为这样做也会禁用Place Picker
根据谷歌的说法
位置选择器仅在兼容性库中受支持,在新客户端库中不受支持。要继续使用位置选择器,必须安装兼容性库。如果您已经在控制台中启用了previous Places SDK for Android服务,请不要禁用它!如果正在使用新的API服务,还必须在控制台中启用它们
将PlacesSDK for Android兼容性库添加到您的项目中
dependencies {
implementation 'com.google.android.libraries.places:places-compat:1.1.0'
}
注意
您只能安装客户端库或兼容性库,不能同时安装两者
记住
重要提示:自2019年1月29日起,位置选择器已弃用。此功能将于2019年7月29日关闭,并在该日期后不再可用。要在弃用期内继续使用Place Picker,请不要在Google云平台项目中禁用Place SDK for Android服务,因为这样做也会禁用Place Picker
您可以发布build.grade文件吗?添加了gradale依赖项请检查似乎您添加了精简版本和独立版本。您是否可以尝试删除实现'com.google.android.libraries.places:places compat:1.0.0',然后同步gradle文件。我收到此错误:错误:键入com.google.android.gms.internal.zzckc作为接口引用自
com.google.android.gms.measurement.AppMeasurementInInstallReferreReceiver
:'(在我执行同步时,错误不会出现,在我运行应用程序时会出现。请发布build.grade文件好吗?添加了gradale依赖项,请检查似乎您添加了压缩版本和独立版本。是否可以尝试删除实现'com.google.android.libraries.places:places compat:1.0.0',然后同步gradle文件。我收到了此错误:错误:键入com.google.android.gms.internal.zzckc作为接口引用自com.google.android.gms.measurement.AppMeasurementInInstallReferreReceiver
:”(执行同步时不会出现此错误,运行应用时会出现此错误