小编Tam*_*mal的帖子

发布后,Android排行榜无法正常工作,显示RESULT_APP_MISCONFIGURED错误

我在我的应用程序(游戏)中添加了排行榜.当我从Android工作室直接在手机中运行应用程序时,它工作正常.但是在googleplay中从alpha测试下载应用程序后,排行榜无效.

它显示app错误配置的错误.

RESULT_APP_MISCONFIGURED

我已正确地在google开发者控制台中添加了SHA1密钥.我再次检查了SHA1密钥,发现密钥是正确的.

我在stackoverflow中搜索了这个主题,但找不到任何解决我问题的方法.我也检查了这个解决方案,但它没有解决问题.

请参阅以下我从谷歌开发者控制台拍摄的屏幕截图.为了安全起见,我从屏幕截图中删除了包名/ sha1键和其他私有内容.

  1. 链接应用 链接应用

  2. 领导委员会 领导委员会

  3. 开发者控制台 Developer Console

以下是我在代码中使用的游戏辅助类.

    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

5
推荐指数
1
解决办法
672
查看次数