xxsnakerxx / react-native-flurry-analytics

React Native wrapper for Flurry Analytics
https://developer.yahoo.com/analytics/
MIT License
29 stars 26 forks source link

Annotation does not exist #29

Open GautamKrishnan opened 5 years ago

GautamKrishnan commented 5 years ago

I get the below error while trying to build React Native App in Android. Is this related to the AndroidX migration?

Task :react-native-flurry-analytics:compileDebugJavaWithJavac FAILED /node_modules/react-native-flurry-analytics/android/src/main/java/com/xxsnakerxx/flurryanalytics/FlurryAnalyticsModule.java:3: error: package android.support.annotation does not exist import android.support.annotation.Nullable; ^

wachidyulio commented 5 years ago

I get this error as well.

GautamKrishnan commented 5 years ago

The error is due to AndroidX upgrade.

Best way to handle would be to upgrade react-native to 0.60, use the jetifier tool to resolve the migration issues.

https://facebook.github.io/react-native/blog/2019/07/03/version-60

https://github.com/mikehardy/jetifier