您好,我第一次將Heyzap排行榜與我的應用程序集成。我已經通過Heyzap官方網站上的this文件。但我覺得他們只在登記入住Heyzap時纔有指導。整合Leaderboarad Heyzap與示例應用程序
我下載了排行榜Heyzap的sdk,並在我的項目中做了一個庫項目。但是我在下面提到的那個sdk裏面的三個java文件中出錯了。
1)HeyzapLib.java:
錯誤 -
- errror1
i.setFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
The error says "FLAG_INCLUDE_STOPPED_PACKAGES cannot be resolved or is not a field";
- 誤差2
new LeaderboardDialog(context, context.getPackageName(), levelId).show();
The error says "The constructor LeaderboardDialog(Context, String, String) is undefined"
- 誤差3
LeaderboardScoreLauncher.launchScoreDialog(context, score, displayScore, levelId, gameIcon, context.getPackageName(), true, showScoreDialog);
The error says "The method launchScoreDialog(Context, String, String, String, Drawable, String, boolean) in the type LeaderboardScoreLauncher is not applicable for the arguments (Context, String, String, String, Drawable, String, boolean, boolean)"
2)HeyzapMarmalade.java:
錯誤:
The import com.ideaworks3d cannot be resolved
3)UnityHelper.java:
錯誤:
The import com.unity3d cannot be resolved
同樣,與SDK一起進來的文件中,他們遵循了軟件包名稱找到遊戲,然後加入排行榜,使他們的儀表盤排行榜。我按照指示完成了,但如何將其與我的代碼鏈接?
任何人都可以提出建議或建議如何進行?