walterholohan / react-native-crisp-chat-sdk

React-Native bridge for Crisp Chat iOS and Android SDK's
MIT License
70 stars 26 forks source link

Android resource linking failed #35

Closed CMonjo closed 1 year ago

CMonjo commented 3 years ago

Hi !

First, thank you for this repository, very nice !

I'm trying to configure Crisp on an RN Android app but when I want to compile I have this error:

Screenshot 2021-06-27 at 12 40 01

My root build.gradle

buildscript {
    ext {
        buildToolsVersion = "29.0.2"
        minSdkVersion = 19
        compileSdkVersion = 29
        targetSdkVersion = 29
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.5.3")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

My app/build.gradle

android {
   ...
    defaultConfig {
        ...
        multiDexEnabled true
    }
}

dependencies {
   ...
    implementation 'im.crisp:crisp-sdk:1.0.6'
    implementation 'androidx.multidex:multidex:2.0.1'
}

I'm still new to RN and I must be missing something ... Thank you very much in advance !!

walterholohan commented 2 years ago

Can you try again, I have just release a new version that uses the latest Android SDK from Crisp

akinlekan28 commented 2 years ago

Change your dependency to dependencies { classpath("com.android.tools.build:gradle:4.0.1") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }

Also make sure setTokenId is supplied with a string