I am facing an issue while trying to build my application using expo for android. It works perfectly on emulators, but when I run the command line:
eas build -p android --profile preview
With the configuration in eas.json file as follows:
{
"build": {
"preview": {
"android": {
"buildType": "apk"
}
}
}
}
I encounter an error in the expo console:
> Task :expo-modules-core:configureCMakeRelWithDebInfo[arm64-v8a]
"Install CMake 3.22.1 v.3.22.1" finished.
...
Error: Gradle build failed with unknown error. See logs for more information.
> Get more help at https://help.gradle.org.
....
Didn't find any issues with the project!
When I check with the command line:
npx expo-doctor
All dependencies seem correct.
✔ Check Expo config for common issues
...
✔ Check that packages match versions required by installed Expo SDK
My app.json is configured as:
{
"expo": {
"name": "Breathe",
...
"extra": {
"eas": {
"projectId": "..."
}
}
}
}
If anyone can assist me in resolving this Android build issue, it would be greatly appreciated. Thank you!