[Fixed] Gradle build failed with unknown error in Expo/React Native

preview_player
Показать описание
I faced the “Gradle build failed with unknown error” issue during Expo’s eas build and managed to resolve it using these steps:

✅ Ran npx expo install --check to ensure all dependencies are properly installed and compatible
✅ Removed any deprecated or incompatible packages in my React Native code
✅ If I had an .android folder, I ran npx expo prebuild again to ensure it was clean
✅ Finally, ran eas build again – this time it completed successfully!

This cleared up the mystery Gradle error and let me move forward. Hope it helps! 🚀
Рекомендации по теме
visit shbcf.ru