Android 安卓谷歌地图2版显示空白白页?
在我的应用程序中,我使用Google map版本2。当我通过eclipse在真实设备中运行应用程序时,意味着它会显示地图。但是当我将应用程序导出为签名apk并在play store中上载我的apk时。然后我从play store下载上载的apk文件并在我的设备中运行,但它只显示空白的白页。我不知道是什么问题。任何人都可以知道。请帮我解决这个问题。因为当你签署一个应用程序时,它的指纹会发生变化Android 安卓谷歌地图2版显示空白白页?,android,eclipse,google-maps,android-maps,android-maps-v2,Android,Eclipse,Google Maps,Android Maps,Android Maps V2,在我的应用程序中,我使用Google map版本2。当我通过eclipse在真实设备中运行应用程序时,意味着它会显示地图。但是当我将应用程序导出为签名apk并在play store中上载我的apk时。然后我从play store下载上载的apk文件并在我的设备中运行,但它只显示空白的白页。我不知道是什么问题。任何人都可以知道。请帮我解决这个问题。因为当你签署一个应用程序时,它的指纹会发生变化 因此,当您使其成为一个签名的应用程序时使用eclipse在签名过程中提供给您的SHA1并将其写入中的允许
因此,当您使其成为一个签名的应用程序时使用eclipse在签名过程中提供给您的SHA1并将其写入中的允许应用程序,您需要使用密钥库创建映射密钥 1) 因此,使用keystore而不是debug.keystore生成sha-1 2) 转到谷歌api控制台 3) 为android生成新密钥 4) 然后用你的包名传递这个新的SHA-1
5) 将该映射密钥放入代码中这是因为在导出应用程序的已签名apk后,其SHA1指纹会发生更改 所以你需要这样做:
1) Generate sha-1 using your keystore rather debug.keystore.
2) Go to google api console
3) generate new key for android
4) and pass this new SHA-1 with your package name
5) put that map key in your code
使用这个:
您必须要求SHA-1签署的apk 第1步:
Now locate to jdk in C drive(Considering for windows and assigning C drive)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A.keystore -alias A
So it will create SHA-1 finger print
Go to google api console.
Generate new api key for android you have to used this SHA-1 and current playstore package name.
Put Api key into your map.
第二步:
Now locate to jdk in C drive(Considering for windows and assigning C drive)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A.keystore -alias A
So it will create SHA-1 finger print
Go to google api console.
Generate new api key for android you have to used this SHA-1 and current playstore package name.
Put Api key into your map.
我希望这对您来说足够了。如果有任何查询,请输入注释您正在使用调试键并导出apk。使用释放键。希望这能有所帮助
要使用google map导出APK,在导出时必须使用release键,而不是debug.keystore 使用此方法为google map API v2生成发布密钥
C:\Program Files\Java\jdk1.6.0_45\bin>keytool -genkey -v -keystore "C:\Users\cp
01\.android\releasekey.ketstore" -alias release_alias -keyalg RSA -keysize 2048
-validity 10000
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]:
What is the name of your organizational unit?
[Unknown]:
What is the name of your organization?
[Unknown]:
What is the name of your City or Locality?
[Unknown]:
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]:
Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
[no]: yes
Generating 2,048 bit RSA key pair and self-signed certificate (SHA1withRSA) wit
a validity of 10,000 days
for: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknow
Enter key password for <release_alias>
(RETURN if same as keystore password):
Re-enter new password:
[Storing C:\Users\cpc01\.android\releasekey.ketstore]
C:\Program Files\Java\jdk1.6.0_45\bin>keytool -list -v -alias release_alias -ke
store c:\Users\cpc01\.android\releasekey.ketstore
Enter keystore password:
Alias name: release_alias
Creation date: Jul 25, 2013
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
Issuer: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
Serial number: 51f0c02c
Valid from: Thu Jul 25 11:35:32 IST 2013 until: Mon Dec 10 11:35:32 IST 2040
Certificate fingerprints:
MD5: your md5 Fingure print
SHA1: your SHA1 fingure print
Signature algorithm name: SHA1withRSA
Version: 3
C:\ProgramFiles\Java\jdk1.6.0\u 45\bin>keytool-genkey-v-keystore“C:\Users\cp
01\.android\releasekey.ketstore“-alias release\u alias-keyalg RSA-keysize 2048
-有效期10000
输入密钥库密码:
重新输入新密码:
你的名字和姓氏是什么?
[未知]:
您的组织单位名称是什么?
[未知]:
你的组织名称是什么?
[未知]:
你所在的城市或地区叫什么名字?
[未知]:
你所在的州或省叫什么名字?
[未知]:
这个单位的两个字母的国家代码是什么?
[未知]:
CN=未知、OU=未知、O=未知、L=未知、ST=未知、C=未知是否正确?
[否]:是的
生成2048位RSA密钥对和自签名证书(SHA1 WithRSA)
有效期为10000天
for:CN=Unknown,OU=Unknown,O=Unknown,L=Unknown,ST=Unknown,C=Unknow
输入的密钥密码
(如果与密钥库密码相同,则返回):
重新输入新密码:
[存储C:\Users\cpc01\.android\releasekey.ketstore]
C:\ProgramFiles\Java\jdk1.6.0\u 45\bin>keytool-list-v-alias release\u alias-ke
商店c:\Users\cpc01\.android\releasekey.ketstore
输入密钥库密码:
别名:release\u别名
创建日期:2013年7月25日
条目类型:PrivateKeyEntry
证书链长度:1
证书[1]:
所有者:CN=未知,OU=未知,O=未知,L=未知,ST=未知,C=未知
发卡机构:CN=未知,OU=未知,O=未知,L=未知,ST=未知,C=未知
序列号:51f0c02c
有效期:2013年7月25日星期四11:35:32 IST至:2040年12月10日星期一11:35:32 IST
证书指纹:
MD5:您的MD5 Fingure打印
SHA1:你的SHA1指纹
签名算法名称:SHA1 WithRSA
版本:3
现在使用SHA1 fingure print在API控制台上注册应用程序
我希望这会对你有很大帮助。。。。
如果答案对你有帮助,请接受。。谢谢
享受编码