react-native-firebase-analytics icon indicating copy to clipboard operation
react-native-firebase-analytics copied to clipboard

installation error because of setScreenName

Open bitcoinvsalts opened this issue 8 years ago • 3 comments

When compiling the app with xcode I get this error:

/Users/herve76/Desktop/Fishii/node_modules/react-native-firebase-analytics/ios/RNFIRAnalytics.m:42:17: No known class method for selector 'setScreenName:screenClass:'

and with android:

:react-native-firebase-analytics:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
/Users/herve76/Desktop/Fishii/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

I really want to use this package. Can someone help me find a solution to this issue please?

bitcoinvsalts avatar Dec 14 '16 23:12 bitcoinvsalts

FYI I am able to run this package if I comment all the setscreen references.

bitcoinvsalts avatar Dec 15 '16 16:12 bitcoinvsalts

Same here. Running react-native 0.39.2.

flobiwankenobi avatar Dec 16 '16 12:12 flobiwankenobi

You need to update your pods. Run pod update in the ios folder

IjzerenHein avatar Dec 21 '16 12:12 IjzerenHein