question

sonu avatar image
sonu asked sonu commented

Unable to connect getAccount method

Hi

As I am installing application in Devkit device(Clover C100) and I am facing this isssue

"Could not find class 'com.clover.sdk.internal.util.UnstableContentResolverClient', referenced from method com.clover.sdk.util.CloverAccount.getAccounts". Please suggest why am I getting this error into this device.

Thanks in advance!

DevKit
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

That class is part of the Android SDK, it sounds like your dependencies are off. You haven't provided any information on exactly what you are doing, what steps you are taking, etc, so it is difficult to provide you with more assistance.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sonu avatar image
sonu answered sonu commented

Hi David,

We are using below dependencies for the clover as we are installing the application first time from sandbox account of app market after successfully setup the account into devkit.

implementation 'com.clover.sdk:clover-android-sdk:262.2'
implementation 'com.clover.sdk:clover-android-connector-sdk:262.2'

This is how we are getting account information of Merchant

if (mAccount == null) {
    mAccount = CloverAccount.getAccount(this)
}

CloverAccount.getAccount(this) from this we are getting issue "Could not find class 'com.clover.sdk.internal.util.UnstableContentResolverClient', referenced from method com.clover.sdk.util.CloverAccount.getAccounts".

Thanks in advance!

4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sonu avatar image sonu David Marginian ♦♦ commented ·

Thanks David.

One more clarification that we want from your side is that possible to use retrofit library in minSdkVersion 17.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ sonu commented ·
Retrofit is not a Clover API, this isn't the correct forum for that question.
0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community