-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unable to compile app when adding @amplitude/analytics-react-native #695
Comments
This seems to be an issue with the plugin not being tested with React Native 0.73. Unfortunately the solution is to remove |
You guys can’t just fix this? You’re just saying I have to find another analytics provider / can’t use Amplitude? |
I can confirm that it's not working with RN 73, as mentioned in original post as soon as you add the plugin, it gives you the following error `1: Task failed with an exception.
2: Task failed with an exception.
|
@nmongiya @mihaibulic2 - I tried testing the amplitude library against both 0.73.6 and 0.74.1 and I am not running into this issue in there. Here's a branch which has test apps with version 0.74.1 (Amplitude-TypeScript/examples/react-native/app_v2/) and 0.73.6 (Amplitude-TypeScript/examples/react-native/app_v2/) Gradle version
Am I missing something in my test? Also, could you please share your |
Closing this issue since I see it working with the latest version of RN. But if anyone has any more information to share, I'm happy to spend more time understand why it may not be working. |
I'm having the same error when
@izaaz would you suggest me to upgrade to Gradle 8.7? |
After upgrading to Gradle 8.7 I started getting 3 different errors rather than 2. It is still an app with React Native 0.72.10.
|
Expected Behavior
Should compile
Current Behavior
Doesn't:
This seems like nonsense errors:
Possible Solution
Steps to Reproduce
npx react-native run-android --mode=playDebug
, everything compiles and runs works perfectlynpm install @amplitude/analytics-react-native@latest
npx react-native run-android --mode=playDebug
again, annnnd compile errorsI wasted a whole day dealing with this. As of now, I just ripped out Amplitude from our app entirely in favor of Firebase/GA which works more easily / hasn't caused us any problems. If this gets fixed, could add Amp back, but atm it's just too much of a pain / not worth it.
The text was updated successfully, but these errors were encountered: