using affectiva sdk in telegram messenger in android

141 Views Asked by At

I have a research base project which uses affectiva SDK emotion detection tool while Android users are working with Telegram messenger. I'm using latest telegram messenger version provided by this github page. Therefore, I need to add Affectiva libraries. According to affectiva developer portal, I tried to add the SDK, by declaring a dependency on the SDK in build.gradle file. Thus, the task is to merge these 2 applications into one. After syncing gradle, when I try to build project several errors appear. I think the main error is about merging manifests.

Some possible solution I have tried:

Updating gradle to latest version

Set minsdkVersion and targetsdkVersion to 16 and 24, respectively

Add the following code to defualtconfig block in build.gradle file

multiDexEnabled true

add following code to dependencies instead what instruction said.

compile ('com.affectiva.android:affdexsdk:3.1.2')
            {
                exclude group: 'com.android.support', module: 'multidex'
            }

Dear affectiva support team, please check this problem and I will glad to hear from your team and I can provide additional information. Thank you in advance for any help you can provide.

0

There are 0 best solutions below