MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

解决引入google map android sdk时遇到的问题

Posted on 2016-12-21 00:24 leekiang 阅读(1205) 评论(0)  编辑  收藏 所属分类: android

repositories{
mavenCentral()
}
dependencies {
compile ('com.google.android.gms:play-services-maps:10.0.1')
}
按以上配置,运行clean时报错,无法加载play-services-maps 10.0.1包。
Error:(69, 14) Failed to resolve: com.google.android.gms:play-services-maps:10.0.1
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:/Users/you/AndroidProjects/yourapp/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
点击Android Studio的提示如何修复的链接,就会自动下载Google的相关依赖包到本地。下载时弹出窗口中显示的一些信息如下。

Install Missing Componets
SDK Path:/User/you/Library/Android/sdk

To install:
- SDK Patch Applier v4 (patcher;v4)
- Google Repository (extras;google;m2repository)

Installing SDK Patch Applier v4
Downloading https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip
Installing SDK Patch Applier v4 in /Users/you/Library/Android/sdk/patcher/v4
Installation of SDK Patch Applier v4 complete.

Installing Google Repository
Downloading https://dl.google.com/android/repository/google_m2repository_gms_v8_rc42_wear_2b1_rc4.zip
Installing Google Repository in /Users/you/Library/Android/sdk/extras/google/m2repository
Installation of Google Repository complete.


http://stackoverflow.com/questions/16978190/add-google-maps-api-v2-in-a-fragment
http://www.joellipman.com/articles/google/android/application-development/android-os-add-googlemap-as-fragment.html
https://www.zhihu.com/question/20892245
http://blog.csdn.net/woshilisao/article/details/8647649 android fragment(android.support.v4.app.Fragment和android.app.Fragment区别)
http://www.tuicool.com/articles/YFBv6nJ Introduction to Google Maps API for Android

只有注册用户登录后才能发表评论。


网站导航: