evollu / react-native-firebase-analytics

React native bridge for firebase analytics
MIT License
206 stars 54 forks source link

Error when upgrading from v1.0.5 to v1.0.6 #36

Closed franrios closed 7 years ago

franrios commented 7 years ago

When installing latest version I get the following error. I've installed manually v1.0.5 to avoid this error for now .

/projectDir/node_modules/react-native-firebase-analytics/android/src/main/java/com/evollu/react/fa/FIRAnalyticsModule.java:50: error: cannot find symbol
            FirebaseAnalytics.getInstance(getReactApplicationContext()).setCurrentScreen(currentActivity, name, null);
                                                                       ^
  symbol:   method setCurrentScreen(Activity,String,<null>)
  location: class FirebaseAnalytics
1 error
:react-native-firebase-analytics:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.
avkvak commented 7 years ago

+1 Same issue

mikemonteith commented 7 years ago

This might be an issue with your firebase package being out of date? setCurrentScreen was only added with v9.8 on Oct 24th https://firebase.google.com/support/release-notes/android

bitcoinvsalts commented 7 years ago

+1 any solution for this issue?

evollu commented 7 years ago

yes update your firebase package

KendraTang commented 7 years ago

I updated Android Studio to 2.2.1 and then issue solved.