I got my both ios and android builds started failing yesterday (even after the outage is resolved, it keeps failing.).
I also got back in commits and tried a version that was built before, but it is not working anymore.
Things I tried so far, but didn’t work:
1- Clean setup,
2- Latest eas cli and tried an older version as well,
3- Installing react-native-community/cli and android version,
4- setting expo build properties for ios and android,
5- upgrade/downgrading some packages: react-native, expo-permissions, etc.
6- expo doctor…
I am getting the following error:
on iOS:
[Expo] Enabling modular headers for pod ExpoModulesCore.
Auto-generating .xcode.env.local
with $NODE_BINARY=/Users/expo/.nvm/versions/node/v16.18.1/bin/node.
Error: Failed to build the app: No package name found. Found errors in /Users/expo/workingdir/build/node_modules/expo-permissions/android/src/main/AndroidManifest.xml.
Invalid Podfile
file: unexpected token at ‘info Run CLI with --verbose flag for more details.’
From /Users/expo/workingdir/build/ios/Podfile:14
config = use_native_modules!
Error: Unknown error. See logs for more information.
on Android:
Daemon will be stopped at the end of the build.
Build failed with an exception.
Script ‘/home/expo/workingdir/build/node_modules/react-native-community/cli-platform-android/native_modules.gradle’ line: 450
A problem occurred evaluating script.
Calling [node, /home/expo/workingdir/build/node_modules/react-native-community/cli/build/bin.js, config]
finished with an exception. Error message: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object
The current character read is ‘i’ with an int value of 105
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0
info Run CLI with --verbose flag for more details.
^.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 15s
Error: Gradle build failed with unknown error. See logs for the “Run gradlew” phase for more information.
package.json:
{
“main”: “node_modules/expo/AppEntry.js”,
“scripts”: {
“start”: “expo start”,
“android”: “expo start --android”,
“ios”: “expo start --ios”,
“web”: “expo start --web”,
“eject”: “expo eject”,
“test”: “jest”
},
“jest”: {
“preset”: “jest-expo”,
“transformIgnorePatterns”: [
“node_modules/(?!((jest-)?react-native|react-native(-community)?)|expo(nent)?|expo(nent)?/.|expo-google-fonts/.|react-navigation|react-navigation/.|unimodules/.|unimodules|sentry-expo|native-base|react-native-svg)”
]
},
“dependencies”: {
“expo/webpack-config”: “^0.17.2”,
“react-native-async-storage/async-storage”: “^1.18.1”,
“react-native-community/masked-view”: “0.1.11”,
“react-navigation/native”: “^5.4.0”,
“react-navigation/stack”: “^5.3.7”,
“base-64”: “^0.1.0”,
“date-fns”: “^2.30.0”,
“expo”: “^47.0.0”,
“expo-auth-session”: “~3.8.0”,
“expo-build-properties”: “~0.4.1”,
“expo-contacts”: “~11.0.1”,
“expo-firebase”: “^0.0.0-alpha.0”,
“expo-firebase-recaptcha”: “~2.3.1”,
“expo-in-app-purchases”: “~14.0.0”,
“expo-notifications”: “^0.18.1”,
“expo-permissions”: “^14.1.1”,
“expo-updates”: “~0.15.6”,
“firebase”: “^7.14.4”,
“form-urlencoded”: “^6.1.0”,
“jest”: “^26.6.3”,
“jest-expo”: “^48.0.2”,
“libphonenumber-js”: “^1.10.26”,
“react”: “18.1.0”,
“react-dom”: “18.1.0”,
“react-native”: “0.70.5”,
“react-native-animatable”: “^1.3.3”,
“react-native-country-picker-modal”: “^2.0.0”,
“react-native-gesture-handler”: “~2.8.0”,
“react-native-keyboard-aware-scroll-view”: “^0.9.5”,
“react-native-popup-menu”: “^0.16.1”,
“react-native-qrcode-svg”: “^6.2.0”,
“react-native-reanimated”: “~2.12.0”,
“react-native-safe-area-context”: “4.4.1”,
“react-native-screens”: “~3.18.0”,
“react-native-svg”: “13.4.0”,
“react-native-swiper”: “^1.6.0”,
“react-native-url-polyfill”: “^1.3.0”,
“react-native-vector-icons”: “^9.2.0”,
“react-native-web”: “~0.18.7”,
“react-native-webview”: “11.23.1”
},
“devDependencies”: {
“@babel/core”: “^7.19.3”,
“babel-preset-expo”: “~9.2.1”
},
“private”: true
}
Thank you!