Any idea how to get out of this error please
I ran react-native link after react-native run-android
Ps : I use expo app then I eject my project
Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version. Class name for the included build object
BUILD FAILED in 1m 15s
error Failed to install the app. Make sure you have the Android development environment set up: Setting up the development environment · React Native.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
(node:15708) [DEP0148] DeprecationWarning: Use of deprecated folder mapping “./” in the “exports” field module resolution of the package at C:\Users..\plant-app\node_modules@expo\devcert\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like “./*”.
(Usenode --trace-deprecation ...
to show where the warning was created)
Note: C:\Users.…\plant-app\node_modules\react-native-gradle-plugin\src\main\java\com\facebook\react\codegen\generator\SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.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 ‘C:\Users.…\plant-app\android\local.properties’.