Question

Unresolved reference: Entitlement

  • 7 February 2022
  • 3 replies
  • 47 views

Userlevel 1
Badge +5
Hi,import com.revenuecat.purchases.Entitlement throws Unresolved reference: Entitlement error in my Android app.  The other imports are accepted.import com.android.billingclient.api.SkuDetailsimport com.revenuecat.purchases.Entitlementimport com.revenuecat.purchases.Offeringimport com.revenuecat.purchases.PurchaserInfoimport com.revenuecat.purchases.Purchases

Any suggestions?

Regards

Peter


3 replies

Userlevel 3
Badge +8

Hi @Peter Rule,

Can you confirm you’re following the steps in our Android installation guide? https://docs.revenuecat.com/docs/android 

 

If you followed those instructions and you’re still getting this error, it could be an issue with your IDE - I did see a StackOverflow post with some suggestions that might help: https://stackoverflow.com/questions/49545037/android-studio-3-1-erroneous-unresolved-references-in-editor/49595693#49595693
 

Userlevel 1
Badge +5

Hi @sundeep 

Yes I am following the guide.  I have it working now.  My imports are below. I am able to download the entitlement.

 

import com.revenuecat.purchases.*import com.revenuecat.purchases.Purchases.Companion.configure

Does not look like 

com.revenuecat.purchases.Entitlement

exists anymore

Reply