Good Afternoon sir. I'm Vishwanth. I'm lagging for...
# community-support
v
Good Afternoon sir. I'm Vishwanth. I'm lagging for 3 days with same issue in react native expo build. it continuously showing error like this.
Copy code
WARNING: The following problems were found when resolving the SDK location:
101
Where: ANDROID_SDK_ROOT environment variable. Problem: Directory does not exist
Could you help me with this case?
v
Doesn't sound too Gradle related, or at least very Android specific. Maybe you want to move your question to #CJYS1DAP5 instead. 🤷‍♂️
But just reading your message, well, it says you configured an Android SDK location that does not exist. Whatever that means.
v
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
v
Just that it happens while executing Gradle does not make it a Gradle problem, let alone "gradle issue only". Gradle per-se knows nothing about Android, so it can hardly complain about Gradle. Also Android is always special, and most probably the error is coming from the Android Gradle Plugin maintained by Google. That's why I suggested you move your question to #CJYS1DAP5, as there are more focussed people hanging around who use Gradle to do Android stuff.
👍 1