gpt4 book ai didi

Android - Google Play 游戏服务,找不到方法 android.view.View.getDisplay

转载 作者:太空宇宙 更新时间:2023-11-03 10:22:30 25 4
gpt4 key购买 nike

登录弹出窗口没有出现。 logcat 说

  Could not find method android.view.View.getDisplay, referenced from method com.google.android.gms.internal.bn$b.b
VFY: unable to resolve virtual method 3169: Landroid/view/View;.getDisplay ()Landroid/view/Display;
VFY: replacing opcode 0x6e at 0x0009

我只在真机 Samsung S3 上测试过,它是 Android 4.1.2 (API 16)。 getDisplay() 方法需要 API 17。我试过“扩展 FragmentActivity”,但 support-v4 库中没有 getDisplay()。 GamesClient.Builder.setViewForPopups() 要么无济于事。根据要求,Google Game Play 服务应支持自 Android 2.2 以来。

我所有的开发工具都是最新的。谷歌播放库 3.1.59 (744626-30),SDK 22.0.4。

非常感谢。

最佳答案

尝试以下步骤:

  1. Right click the project, and choose Properties
  2. Go to Java Build Path-Order and Export.
  3. Tick 'Android Private Libraries' if you put your libs there or tick on your libs.

然后清理并构建。

关于Android - Google Play 游戏服务,找不到方法 android.view.View.getDisplay,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17824742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com