Samsung / GearVRf

The GearVR framework(GearVRf) is an Open Source VR rendering library for application development on VR-supported Android devices.
http://www.gearvrf.org
Apache License 2.0
407 stars 217 forks source link

org.gearvrf:platformsdk_support 4.0.1-SNAPSHOT GVRActivity cast error #2026

Closed Sorduea closed 5 years ago

Sorduea commented 5 years ago

Trying to use the PlatformEntitlementCheck with gearvrf 4.0.1-SNAPSHOT and I'm getting the following error:

Caused by: java.lang.NoSuchMethodError: No virtual method getActivity()Lorg/gearvrf/GVRActivity; in class Lorg/gearvrf/GVRContext; or its super classes (declaration of 'org.gearvrf.GVRContext'

I believe it is casting to GVRActivity when GVRContext.getActivity returns Activity.

liaxim commented 5 years ago

@Sorduea The snapshot was outdated. Please make sure your gradle dependencies are refreshed and try again.

Sorduea commented 5 years ago

Refreshed dependencies and the entitlement check now succeeds. Thank you for the help and quick response.