当它建立成一个APK文件Android版谷歌地图不工作 [英] Android google maps not working when it builds into an apk file
问题描述
我目前正在开发使用谷歌地图作为一个片段的Android应用程序,当我进行测试,并使用通过USB连接我的笔记本电脑的实际设备的谷歌地图的碎片正常工作在Android工作室的运行它,但是当我建立一个apk文件和Android设备上安装谷歌地图不工作我不能看地图,但应用程序不崩溃
I am currently developing an android application with google maps as a fragment when i test it and run it on the android studio using an actual device connected via usb on my laptop the google maps fragments works fine but when i build an apk file and install it on the android device the google maps is not working i cannot see the maps but the app is not crashing
什么是错的我的项目?
推荐答案
要创建释放的键,你需要首先生成密钥库
。之后,你需要使用密钥库
来产生新的SHA1密钥。
To create Released Key, you need to generate keystore
first. After that you need to generate new SHA1 Key using that keystore
.
C:\\ Program Files文件\\的Java \\ jdk1.7.0_75 \\ BIN>的keytool -list -v -keystore C:\\用户\\ shvet \\下载\\密钥工具-alias机器人-storepass
keystorename -keypass androidpass
其中, C:\\用户\\ shvet \\下载\\密钥工具
是我的密钥存储路径
where C:\Users\shvet\ Downloads\keytool
is my keystore path.
-alias 机器人是,当我取得密钥存储,同时产生别名APK。
-alias android is alias name when i made keystore while generating apk.
-storepass keystorename 是存储密码的名称。
-storepass keystorename is name of keystore password.
-keypass androidpass 是SHA1密码。
-keypass androidpass is password for SHA1.
使用此SHA1密钥生成新的谷歌地图的关键。
Use this SHA1 key to generate new Google map Key.
这篇关于当它建立成一个APK文件Android版谷歌地图不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!