Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find symbol import com.amplitude.reactnative.AmplitudeReactNativePackage [Android] #49

Closed
mohammedhammoud opened this issue Mar 20, 2021 · 1 comment

Comments

@mohammedhammoud
Copy link

I'm getting the following error trying to run this on Android with react-native 0.64.0.

BUILD FAILED in 29s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users/mohammed/code/rn-app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:15: error: cannot find symbol
import com.amplitude.reactnative.AmplitudeReactNativePackage;
                                ^
  symbol:   class AmplitudeReactNativePackage
  location: package com.amplitude.reactnative
/Users/mohammed/code/rn-app/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:71: error: cannot find symbol
      new AmplitudeReactNativePackage(),
          ^
  symbol:   class AmplitudeReactNativePackage
  location: class PackageList
Note: /Users/mohammed/code/rn-app/android/app/src/debug/java/com/myapp/ReactNativeFlipper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.

Any ideas?

@mohammedhammoud
Copy link
Author

It seems to be working now. Got this error after updating to RN 0.64.0. Solved it by removing .gradle directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant