When I run react-native run-Android, I get the following error message:

Task :react-native-gesture-handler:compileDebugJavaWithJavac C:\temp\bacardiAPP-master\node_modules\react-native-gesture-handler\android\src\main\java\com\swmansion\gesturehandler\r eact\RNGestureHandlerEnabledRootView.java:10: error: cannot find symbol import androidx.annotation.Nullable;

C:\temp\ bacardiapp-master android gradle.properties file add the following two lines:

android.useAndroidX=true

android.enableJetifier=true

Problem solved:

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: