Skip to main content
Answer

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

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

This post has been closed for comments

4 replies

Cesar
RevenueCat Staff
Forum|alt.badge.img+3
  • RevenueCat Staff
  • 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
  • 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
  • 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
  • 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

Thanks, that fixed it.