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

Annotation does not exist

Open GautamKrishnan opened this issue 5 years ago • 2 comments

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; ^

GautamKrishnan avatar Aug 15 '19 08:08 GautamKrishnan

I get this error as well.

wachidyulio avatar Aug 16 '19 02:08 wachidyulio

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

GautamKrishnan avatar Aug 20 '19 09:08 GautamKrishnan