I am running from vs code the command expo run:android, on a new blank expo project adn gets the error
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Cannot query the value of this provider because it has no value available.
my local.properties files points to the right location :
sdk.dir = C:\\Users\\\myuser\\AppData\\Local\\Android\\sdk
my build gradle looks like this
buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
}
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.0")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
i have installed sdk 29, 30, 31, 32 in my computer.
nothing helps.
every time i run expo run:android i get one of two erros (without changing nothing in the code just sending the command again)
Could not create task ':app:lint'. SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at ....
or
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Cannot query the value of this provider because it has no value available.