React-native-intercom: Android issue: cannot find symbol

Created on 26 Oct 2019  路  1Comment  路  Source: tinycreative/react-native-intercom

I followed the instructions to a T and can't figure out what the error could be here. Does anyone know why it couldn't find the symbol?

The only difference I can see is I have the following which is a bit different:

@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  packages.add(new IntercomPackage());

  return packages;
}

Here is the error

 Task :app:compileReleaseJavaWithJavac FAILED
/home/circleci/android/android/app/src/main/java/com/project/MainApplication.java:18: error: cannot find symbol
import io.intercom.android.sdk.Intercom;
                              ^
  symbol:   class Intercom
  location: package io.intercom.android.sdk
/home/circleci/android/android/app/src/main/java/com/project/MainApplication.java:55: error: cannot find symbol
        Intercom.initialize(this, "android_sdk-1234567890", "du23522pr");
        ^
  symbol:   variable Intercom
  location: class MainApplication

Most helpful comment

I forgot to put this:

dependencies {
    implementation 'io.intercom.android:intercom-sdk-base:6.+'
}

>All comments

I forgot to put this:

dependencies {
    implementation 'io.intercom.android:intercom-sdk-base:6.+'
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

felippepuhle picture felippepuhle  路  9Comments

nabilfreeman picture nabilfreeman  路  11Comments

nazarTrynko picture nazarTrynko  路  6Comments

mrharel picture mrharel  路  4Comments

wadeyw picture wadeyw  路  5Comments