当我尝试使用MD5指纹时keytool,我得到一个SHA1指纹而谷歌地图无法识别它.我如何获得MD5指纹?
我曾尝试使用之前Google_Play_SERVICE/SAMPLE使用所有可用选项提供的Google地图示例代码,并显示以下日志.
01-14 17:58:39.773:E/Google Maps Android API(13114):授权失败.
它显示了所有示例Map选项的空白屏幕.
现在我创建了一个新项目,这里是完整的代码: -
Activity.java
public class MapActivity extends FragmentActivity
{
private Context context = this;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_map);
GoogleMap gMap = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
int result = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
Log.e("Maps", "Result int value::" + result);
switch (result) {
case ConnectionResult.SUCCESS:
Log.e("Maps", "RESULT:: SUCCESS");
break;
case ConnectionResult.DEVELOPER_ERROR:
Log.e("Maps", "RESULT:: DE");
break;
case ConnectionResult.INTERNAL_ERROR:
Log.e("Maps", "RESULT:: IE");
break;
case ConnectionResult.INVALID_ACCOUNT:
Log.e("Maps", "RESULT:: IA");
break;
case ConnectionResult.NETWORK_ERROR:
Log.e("Maps", "RESULT:: NE");
break;
case ConnectionResult.RESOLUTION_REQUIRED: …Run Code Online (Sandbox Code Playgroud) 我正在尝试注册Android Google地图并要求MD5指纹.如何从我的应用程序中获取指纹?
我是keystore的新手,无法理解我在网上找到的东西.如此简单的指示赞赏
提前致谢
尝试生成调试密钥以使用地图。
我已经尝试过这个命令
keytool -list -alias androiddebugkey \
-keystore ~/.android/debug.keystore.keystore \
-storepass android -keypass android
Run Code Online (Sandbox Code Playgroud)
但我得到这个输出:
keytool error: java.lang.Exception: Keystore file does not exist: /Users/chance 1/.android/debug.keystore.keystore
Run Code Online (Sandbox Code Playgroud)
如何查找并生成?任何帮助表示赞赏。