相关疑难解决方法(0)

google maps api for android,获得SHA1证书而不是MD5

当我尝试使用MD5指纹时keytool,我得到一个SHA1指纹而谷歌地图无法识别它.我如何获得MD5指纹?

android google-maps md5 sha1 fingerprint

54
推荐指数
2
解决办法
5万
查看次数

谷歌地图Android Api V2示例代码无法正常工作

我曾尝试使用之前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-maps-android-api-2

13
推荐指数
3
解决办法
4万
查看次数

如何找到我的Android应用程序的MD5指纹

我正在尝试注册Android Google地图并要求MD5指纹.如何从我的应用程序中获取指纹?

我是keystore的新手,无法理解我在网上找到的东西.如此简单的指示赞赏

提前致谢

android md5 cmd keystore

12
推荐指数
3
解决办法
3万
查看次数

安卓调试键?

尝试生成调试密钥以使用地图。

我已经尝试过这个命令

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)

如何查找并生成?任何帮助表示赞赏。

android

5
推荐指数
2
解决办法
2万
查看次数