Android - Google Play Game Service, Could not find android.view.View.getDisplay method

Login popups did not appear. Logarithm said

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

I tested only on a real Samsung S3 device which is Android 4.1.2 (API 16). The getDisplay () method required API 17. I tried "extends FragmentActivity", but there is no getDisplay () in the support-v4 library. GamesClient.Builder.setViewForPopups () either do not help. The Google Play Play service must support Android 2.2 as required.

All my dev tools have been updated. google-play-lib 3.1.59 (744626-30), SDK 22.0.4.

Many thanks.

+4
source share
3 answers

Could you post a more complete magazine? There is a possibility that these lines are not the reason that the login window does not appear in your application ( see this other post, which shows these lines in the logs, but was still able to continue ).

Other things that may help you:

  • Following the instructions for a sample of type A-Number , I was able to run it on my Android 4.1.1 phone.
  • The Google Play Services library that I have is newer than yours (3.2.65 (834000-30)).
+1
source

Try the following:

  • Right-click the project and select "Properties"
  • Go to Java Build Path-Order and Export.
  • Check "Android Private Libraries" if you post your libraries there or mark your libraries.

Then clean and build.

0
source

Try testing a different version of Android, as I also ran into some problems when testing my applications on Android 4.1.2. It would also be better if you put the code in which you get the error. This helps solve the problem much faster.

Also, let us know if the problem is fixed. It will be useful for someone else with the same problem.

0
source

Source: https://habr.com/ru/post/1493096/


All Articles