android - 无法解析符号“OnMapReadyCallback”
问题描述
所以这是我的build.gradle
android {
compileSdkVersion 25
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.example.christinebpolesti.busartery_driver"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:25.2.0'
implementation 'com.google.android.gms:play-services:11.0.4'
implementation 'com.google.android.gms:play-services-maps:11.0.4'
implementation 'com.google.android.gms:play-services-location:11.0.4'
implementation 'com.android.support:cardview-v7:25.2.0'
implementation 'com.android.support:recyclerview-v7:25.2.0'
implementation 'com.android.support:multidex:1.0.0'
implementation 'com.firebase:firebase-client-android:2.4.0'
implementation 'com.google.firebase:firebase-auth:11.0.4'
implementation 'com.google.firebase:firebase-database:11.0.4'
implementation 'com.google.firebase:firebase-core:11.0.4'
}
apply plugin: 'com.google.gms.google-services'
前几天还好好的,不知道怎么回事。我什至卸载并再次安装了android studio,因为在此问题之前我的adb没有找到..所以再次安装AS后,我遇到了这个问题。有人可以帮忙吗。
解决方案
打开您的build.gradle
应用并粘贴以下代码:
implementation 'com.google.android.gms:play-services-maps:15.0.1'
推荐阅读
- r - 在 geom_line() 中更改线条颜色后向混合 ggplot 添加图例
- java - 带有 CompletableFuture 的 Rest 端点与没有 CompletableFuture 的 Rest 端点
- vue.js - 如何在 vue 路由中使用组件?
- c++ - 是否可以有一个可变参数模板,其中一个参数是参数包,下一个参数是同一参数包的 std::function?
- json - 获取 Observable 的值
进入打字稿中的数组 - vb.net - 如何通过 vb.net 使用命令提示符来使用 BCDEDIT
- go - 如何在 OSX 上获取 os 环境变量?
- azure - Azure 搜索匹配同一对象的两个属性
- java - 当用户没有输入“是”或“否”时,我需要帮助让该程序打印“无效响应”,我该如何简单地做到这一点?
- windows - 在nasm中编译后无法运行exe文件