evollu / react-native-firebase-analytics

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

error: package com.evollu.react.fa does not exist ? #25

Open esutton opened 8 years ago

esutton commented 8 years ago

Thank you for sharing your work.

I followed https://github.com/evollu/react-native-firebase-analytics/issues/20

Where should I look for this type of error?

/Users/edward3/Documents/projects/react-native/field-planner-mobile/android/app/src/main/java/com/ditchwitch/fieldplanner/MainApplication.java:25: error: package com.evollu.react.fa does not exist
import com.evollu.react.fa.FIRAnalyticsPackage;
                          ^
/Users/edward3/Documents/projects/react-native/field-planner-mobile/android/app/src/main/java/com/ditchwitch/fieldplanner/MainApplication.java:39: error: cannot find symbol
          new FIRAnalyticsPackage(),
              ^
  symbol: class FIRAnalyticsPackage
2 errors
:app:compileDebugJavaWithJavac FAILED

I appended to settings.gradle

include ':react-native-firebase-analytics'
project(':react-native-firebase-analytics').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase-analytics/android')
drewsetski commented 8 years ago

add dependencies { ... compile project(':react-native-firebase-analytics') }

to \android\app\build.gradle

evollu commented 8 years ago

@esutton is this issue resolved?

binzailani3136 commented 7 years ago

Hi, evollu! How are you? I am developing Android app with your "react-native-firebase-analytics" I need your help because I can not understand the readme completely. I did not get any issue. But I can't see any analytics graphics. Please help me. If you have any problem, I will do my best to help you. Best wishes and regards. Najib.

evollu commented 7 years ago

@binzailani3136 you need to set up Firebase SDK first following their official documentation. Then you can see some analytic event like app install etc. There might be a delay of couple hours for graphs to show up

sibelius commented 7 years ago

@binzailani3136 @esutton can u close this?