Files
zhini_im/检查高德Key配置.bat
rw0067680 c01808ac21 first commit
Change-Id: Ib7c2ab10a2562044fcaf9879388a6cbc1db6ac61
2025-12-23 10:00:49 +08:00

51 lines
1.6 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
chcp 65001 >nul
echo ========================================
echo 高德Key配置检查工具
echo ========================================
echo.
echo [1] 检查Release版本SHA1...
echo ----------------------------------------
if exist keystore2 (
keytool -list -v -keystore keystore2 -storepass yuchen.com -alias yuchen | findstr /i "SHA1"
echo.
) else (
echo ❌ 未找到keystore2文件
echo.
)
echo [2] 检查Debug版本SHA1...
echo ----------------------------------------
if exist "%USERPROFILE%\.android\debug.keystore" (
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -storepass android -alias androiddebugkey | findstr /i "SHA1"
echo.
) else (
echo ⚠️ 未找到Debug keystore可能尚未生成
echo.
)
echo [3] 当前应用配置信息
echo ----------------------------------------
echo 包名: com.xunpaisoft.social
echo Key: 2c5aa17a9ae467543613267692b4a206
echo.
echo ========================================
echo 检查步骤说明
echo ========================================
echo.
echo 1. 复制上面显示的SHA1值去掉冒号和空格
echo 2. 登录高德开放平台: https://lbs.amap.com/
echo 3. 进入"应用管理" → 找到对应的应用
echo 4. 检查以下配置:
echo - ✅ 包名: com.xunpaisoft.social
echo - ✅ SHA1: 必须与上面的SHA1值一致
echo - ✅ 平台: Android平台不能是Web服务
echo - ✅ 服务权限: 必须开启"定位服务""搜索服务"
echo.
echo 如果SHA1不匹配或服务未开启会导致错误代码1008
echo.
pause