ChoiceSDK icon indicating copy to clipboard operation
ChoiceSDK copied to clipboard

Initialising the Choice SDK

Open Lyndon2309 opened this issue 3 years ago • 6 comments

When I try to initiate the SDK (with ChoiceSdk.init(this)), it asks me to create a class called ChoiceSdk? How do I import the ChoiceSdk class into my app so I can call it? Screenshot 2021-06-22 at 01 10 23

Lyndon2309 avatar Jun 21 '21 23:06 Lyndon2309

Which SDK module are you including in your app?

The ChoiceSdk class should automatically be available in every module, as every module implicitly depends on the choicesdk-core module which includes the class.

BsBrabi avatar Jul 01 '21 08:07 BsBrabi

How would I check that?

Lyndon2309 avatar Jul 01 '21 08:07 Lyndon2309

Sorry for the misleading comment before.

Which ChoiceSDK dependency are you using in your build.gradle file?

BsBrabi avatar Jul 01 '21 11:07 BsBrabi

I have the same problem. The dependency I am using in my project is 0.2.0

global22 avatar Aug 01 '21 05:08 global22

I found a solution for my problem. It was the kotlinx-coroutines-core dependency that is also used by other libraries but these need version 1.4.2. So I had to downgrade the project version to 1.4.2.

implementation ('org.jetbrains.kotlinx:kotlinx-coroutines-core'){ version{ strictly '1.4.2-native-mt' } }

global22 avatar Aug 01 '21 08:08 global22

We have updated our coroutines dependencies to 1.5.0 with our 0.2.0 release, have you tried it yet?

officebluesource avatar Aug 02 '21 11:08 officebluesource