Я делаю систему GPS Tracker и пытаюсь добавить отслеживание карт Google, но у меня возникает эта ошибка при попытке запустить приложение с помощью эмулятора:
ошибка: не удается получить доступ к zzbfm mLocationRequest.setInterval (UPDATE_INTERVAL);файл класса для com.google.android.gms.internal.zzbfm не найден
Я считаю, что это из-за разных версий зависимостей, но я не знаю, какие версии мне следует использовать.Я перепробовал много версий, но все еще не нашел решения.
и вот мой модуль build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.google.firebase:firebase-database:17.0.0'
implementation 'com.google.firebase:firebase-auth:17.0.0'
implementation 'com.google.android.gms:play-services:11.8.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.android.support:design:28.0.0'
implementation 'com.firebaseui:firebase-ui-auth:3.3.0'
implementation 'com.firebaseui:firebase-ui-database:3.3.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.android.gms:play-services-maps:11.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
применить плагин: 'com.google.gms.google-services'
вот мой проект bundle.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'}
repositories {
google()
jcenter()
maven{
url "https://maven.google.com"
}
maven{
url "https://maven.fabric.io/public"
}
}
что мне делать?