I'm developing React Native app with Expo. I'm having problems with my app in Android because always send me same error Message:
ReferenceError: Can't find variable: Intl
Reading many post, but I'm still with the same problem
"react-native": "0.68.2",
"expo": "^45.0.6",
"native-base": "^3.4.15",
Here's my /android/app/build.gradle
def jscFlavor = 'org.webkit:android-jsc-intl: '
if (enableHermes) {
...
} else {
implementation jscFlavor
}
CodePudding user response:
you can try this solution, if enableHermes
is true.
If disabling Hermes is not an option in your app/build.gradle, and you cant use
CodePudding user response:
EDIT:
I noticed that jsc-android-buildscripts
is supported by Expo and you might not need to install it if you are using expo. I uninstall it and it worked. Sorry it might not be the answer but I will leave it to others who might have the same problem as me
Do you have this installed? I want to use Luxon and I got the same error as you and then noticed that they recommended using jsc-android-buildscripts
My problem was that in my /android/app/build.gradle
jscFlavor
was set to 'org.webkit:android-jsc: '