Skip to main content
Solved

Cannot access 'configure': it is internal in 'Companion'

  • Feb 7, 2022 2:27 PM UTC
  • 4 replies
  • 473 views

Forum|alt.badge.img+6

Hi,

I am getting this error 

Cannot access 'configure': it is internal in 'Companion' with the line below.

 

 

import com.revenuecat.purchases.*

Purchases.configure(PurchasesConfiguration.Builder(this, "public_google_sdk_key").build())

Best answer by Cesar

I see @Peter Rule . If you’re using 4.6.1, you should be using the now deprecated version of configure:

```

Purchases.configure(this, “public_google_sdk_key")
```


I’ve noticed how our docs are pointing to use the version you posted, but that’s not available until version 5.0.0-rc1. We should make that more clear in the docs

View original
This post has been closed for comments

4 replies

Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • Feb 7, 2022 2:32 PM UTC

Which Android SDK version are you using? We’ve just made `PurchasesConfiguration` public in version 5.0.0 which is currently in the release candidate status.


Forum|alt.badge.img+6
  • Author
  • Dedicated Member
  • Feb 7, 2022 3:04 PM UTC

I was using 4.3.1 then updated to 4.6.1 but I still get the error message 


Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • Answer
  • Feb 7, 2022 3:24 PM UTC

I see @Peter Rule . If you’re using 4.6.1, you should be using the now deprecated version of configure:

```

Purchases.configure(this, “public_google_sdk_key")
```


I’ve noticed how our docs are pointing to use the version you posted, but that’s not available until version 5.0.0-rc1. We should make that more clear in the docs


Forum|alt.badge.img+6
  • Author
  • Dedicated Member
  • Feb 7, 2022 3:58 PM UTC

I see @Peter Rule . If you’re using 4.6.1, you should be using the now deprecated version of configure:

```

Purchases.configure(this, “public_google_sdk_key")
```


I’ve noticed how our docs are pointing to use the version you posted, but that’s not available until version 5.0.0-rc1. We should make that more clear in the docs

Thanks, that fixed it.