React-native-screens: RN 59.x - AndroidX libraries cannot be found

Created on 12 Jul 2019  路  5Comments  路  Source: software-mansion/react-native-screens

Fairly general question

What is causing these errors:

cannot find symbol on all androidx imports

Java 10, Gradle build version 3.4.1 , RN 0.59.10

Thanks!

Most helpful comment

Not sure this really helps anyone but I was not able to build with 1.0.0-alpha.23 so in my package.json I pinned it to version 22 specifically for now, "react-native-screens": "1.0.0-alpha.22". I'm also on RN 0.59.10 and I believe we need to be on 0.60 for android x supported libs.

All 5 comments

Not sure this really helps anyone but I was not able to build with 1.0.0-alpha.23 so in my package.json I pinned it to version 22 specifically for now, "react-native-screens": "1.0.0-alpha.22". I'm also on RN 0.59.10 and I believe we need to be on 0.60 for android x supported libs.

@jannainm a downgrade to "react-native-screens": "1.0.0-alpha.22" did the trick thank you

I didn't have react-native-screens as a direct dependency, so I ran

$ npm i [email protected] --save-exact

and am now able to build.

try this

yarn add --dev jetify
then in your package.json scripts add:
"postinstall": "jetify"
then yarn jetify

then build

It looks like the issue is outdated, I am closing it then. Feel free to comment if I am wrong.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joshua-augustinus picture joshua-augustinus  路  4Comments

Kinark picture Kinark  路  4Comments

ukasiu picture ukasiu  路  4Comments

kantorm picture kantorm  路  5Comments

pvinis picture pvinis  路  5Comments