Skip to main content
Solved

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


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
Did this post help you find an answer to your question?
This post has been closed for comments

4 replies

Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • 65 replies
  • February 7, 2022

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
  • 19 replies
  • February 7, 2022

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
  • 65 replies
  • Answer
  • February 7, 2022

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
  • 19 replies
  • February 7, 2022
Cesar wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings