我在我的应用程序(游戏)中添加了排行榜.当我从Android工作室直接在手机中运行应用程序时,它工作正常.但是在googleplay中从alpha测试下载应用程序后,排行榜无效.
它显示app错误配置的错误.
RESULT_APP_MISCONFIGURED
我已正确地在google开发者控制台中添加了SHA1密钥.我再次检查了SHA1密钥,发现密钥是正确的.
我在stackoverflow中搜索了这个主题,但找不到任何解决我问题的方法.我也检查了这个解决方案,但它没有解决问题.
请参阅以下我从谷歌开发者控制台拍摄的屏幕截图.为了安全起见,我从屏幕截图中删除了包名/ sha1键和其他私有内容.
以下是我在代码中使用的游戏辅助类.
class GameHelperUtils {
public static final int R_UNKNOWN_ERROR = 0;
public static final int R_SIGN_IN_FAILED = 1;
public static final int R_APP_MISCONFIGURED = 2;
public static final int R_LICENSE_FAILED = 3;
private final static String[] FALLBACK_STRINGS = {
"*Unknown error.",
"*Failed to sign in. Please check your network connection and try again.",
"*The application is incorrectly configured. Check that the package name and signing certificate match the …Run Code Online (Sandbox Code Playgroud) java android leaderboard google-play-services android-studio