walterholohan / react-native-crisp-chat-sdk

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

method configure in class Crisp cannot be applied to given types; #18

Closed mohamedabady closed 3 years ago

mohamedabady commented 3 years ago

while trying to build the app

got this error :

error: method configure in class Crisp cannot be applied to given types; Crisp.configure("MY_WEBSITE_ID"); ^ required: Context,String found: String reason: actual and formal argument lists differ in length

walterholohan commented 3 years ago

Have you followed the specific Android installation instructions on the README. The error above seems that the Crisp Android SDK was not installed correctly. Make sure you add the correct implementation to your build.gradle files

aseferov commented 3 years ago

It should be Crisp.configure(getApplicationContext(), "YOUR_WEBSITE_ID");

walterholohan commented 3 years ago

Thanks @aseferov. Ive just pushed an update to the README to reflect this