Skip to content

Android issue: cannot find symbol #324

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions