Referencing jar file of google play service in map v2 project

落爺英雄遲暮 提交于 2019-12-24 20:28:33

问题


I'm trying to reference the jar file of google-play-service-lib but each time i reference it from the properties window, it gives me a red cross beside the lib. I tried uninstalling the google play service from the SDK service and re-installing it again.. also it didn't work up.

okay now i've changed the path of importing to the same drive where i keep my projects and thx god it worked... but now the maps open with a white blank page.

and what was written in the logcat : Unable to load google maps

can u please help me solving this issue :)


回答1:


import “google-play-services_lib”.
Select File-->Import
Select Android-->Existing Android Code into Workspace
Browse and select \sdk\extras\google\google_play_services\libproject
Select “google-play-services_lib” and finish.

for detailed steps have a look at to my blog: http://umut.tekguc.info/en/content/google-android-map-v2-step-step




回答2:


The problem was the workspace path, the library of google play service must be copied to your workspace not in another path.



来源:https://stackoverflow.com/questions/16000968/referencing-jar-file-of-google-play-service-in-map-v2-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!