evollu / react-native-firebase-analytics

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

error: cannot find symbol import com.evollu.react.fa.FIRAnalyticsPackage; #64

Open kirschem opened 6 years ago

kirschem commented 6 years ago

Hello,

I installed the package with npm install react-native-firebase-analytics --save then I tried to link it with react-native link. This did nothing, so I linked the library manually:

MainApplication.java: import com.evollu.react.fa.FIRAnalyticsPackage; ... new FIRAnalyticsPackage()

android/app/build.gradle (bottom of the file): dependencies { ... compile project(':react-native-firebase-analytics') } apply plugin: 'com.google.gms.google-services'

android/build.gradle: dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' }

settings.gradle: include ':app', ':react-native-firebase-analytics' project(':react-native-firebase-analytics').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase-analytics/android')

Still i get this error when compiling: error: cannot find symbol import com.evollu.react.fa.FIRAnalyticsPackage;

Any Ideas?

AviramCohen commented 6 years ago

+1