I am trying to run the app for the Android platform but it's always failing. Can anyone please help me please check below the screenshot of the error while compiling the build for Android?
error: cannot find symbol import com.swmansion.rnscreens.RNScreensPackage;
Steps to reproduce:
npm i react-native-screens
npm run android
build is compiling and throwing errors as per the below:
error:
android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:33:
error: cannot find symbol
import com.swmansion.rnscreens.RNScreensPackage;

I ran into this issue as well. Unfortunately, I am not a Java or an Android developer, so I didn't know how to track down the reason that the Java packages were missing or why the were not being imported correctly.
I removed the four packages that appeared to be the source of the error, via
npm remove:@react-navigation/native@react-navigation/native-stackreact-native-safe-area-contextreact-native-screensAnd then added them using
yarn addinstead ofnpm install. After runningyarn install, the project loaded without those errors.I'm running a new project, and I meant to use
yarninstead ofnpmanyway, so this suffices for me. Sorry I can't be of more valuable help. :\