Cannot resolve symbol 'PackageList'
I am getting this error once I open the android folder in my newly generated react-native project.
The steps to recreate it for me is to make the expo project: expo init my-app
Then eject the project: Expo eject
And then I go into the android folder and open android\app\src\main\java\Android\Screen\MainActivity.java
and I get the bug.
any help would be much appreciated.Image of error in the android studio
You need to do a gradle sync (and build) first - the build will fail, but create PackageList for you (in e.g. android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java
Similarly, it creates a BuildConfig.java
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With