Sir, it is gradle issue only. I don't know where it went wrong. I configured gradle properly and in local, the android build is successful. once I make eas build --android preview, in eas build, it keeps on failing by showing this error.
eas.json
{
"cli": {
"version": ">= 16.6.2",
"appVersionSource": "remote"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"env": {
"ANDROID_SDK_ROOT": "/opt/android-sdk"
}
},
"preview": {
"distribution": "internal",
"env": {
"ANDROID_SDK_ROOT": "/opt/android-sdk"
}
},
"production": {
"autoIncrement": true,
"env": {
"ANDROID_SDK_ROOT": "/opt/android-sdk"
}
}
},
"submit": {
"production": {}
}
}
i also added android/local.properties.
sdk.dir=C:\\Users\\Vishwanth Prakash\\AppData\\Local\\Android\\Sdk