SDKBOX Play crash

Some of our users reported after a crash (No static method isAtLeastR()Z) then lost all saved data (UserDefault).

To reproduce the crash:

  1. Use SDKBOX Play 2.5.1.2 + play-services-base:17.1.0 (this should work properly)
  2. Use SDKBOX Play 2.5.1.2 + play-services-base:17.2.0 (this will reproduce the crash)
  3. Use SDKBOX Play 2.6.0.1 + play-services-base:17.2.0 (this fixed the crash but all data gone)

I have no Android 10 device on hand so I cannot test more deeply, this post is for reference that do not use SDKBOX Play 2.5.1.2 with play-services-base:17.2.0.

Thanks for report.

Update more details:

  1. Use AndroidX-core 1.1.0, SDKBOX Play 2.5.1.2 + play-services-base:17.1.0 (this should work properly)
  2. Use AndroidX-core 1.2.0, SDKBOX Play 2.5.1.2 + play-services-base:17.2.0 (this will reproduce the crash)
  3. Use AndroidX-core 1.2.0, SDKBOX Play 2.6.0.1 + play-services-base:17.2.0 (this fixed the crash but all data gone)

Sdkboxplay relies on three libraries:

  1. ‘com.google.android.gms:play-services-auth:17.0.0’

  2. ‘com.google.android.gms:play-services-drive:17.0.0’

  3. ‘com.google.android.gms:play-services-games:19.0.0’

‘play-services-base’ is not directly dependent, and this three libs will dependent on play-services-base:17.0.0

Yes, however in my test the problem seems to be androidx core and play-base version not match, maybe its not related to SDKBox Play, is an android problem, but the crash log shows SDKBox Play using those method, so I just want to file this issue.