What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not determine the dependencies of null.
SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\android\local.properties'.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
BUILD FAILED in 52s
10 actionable tasks: 10 up-to-date
Error: C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\android\gradlew.bat exited with non-zero code: 1
Error: C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\android\gradlew.bat exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\spawn-async\build\spawnAsync.js:52:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at cp.emit (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
at Object.spawnAsync [as default] (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\spawn-async\build\spawnAsync.js:17:21)
at spawnGradleAsync (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:72:46)
at Object.assembleAsync (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:52:18)
at runAndroidAsync (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\cli\build\src\run\android\runAndroidAsync.js:36:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Above is the error i get when i run; npx expo run:android.
i am using a usb cable to a physical android phone(Samsung Galaxy A23) to build the app.
Please Help.
npx expo run:android › Building app... Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Try:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 52s 10 actionable tasks: 10 up-to-date Error: C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\android\gradlew.bat exited with non-zero code: 1 Error: C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\android\gradlew.bat exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\spawn-async\build\spawnAsync.js:52:23) at Object.onceWrapper (node:events:628:26) at ChildProcess.emit (node:events:513:28) at cp.emit (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\cross-spawn\lib\enoent.js:34:29) at maybeClose (node:internal/child_process:1091:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5) ... at Object.spawnAsync [as default] (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\spawn-async\build\spawnAsync.js:17:21) at spawnGradleAsync (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:72:46) at Object.assembleAsync (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:52:18) at runAndroidAsync (C:\Users\hp spectre\Desktop\React Native Final Project\AgapeApp\node_modules\@expo\cli\build\src\run\android\runAndroidAsync.js:36:24) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Above is the error i get when i run; npx expo run:android. i am using a usb cable to a physical android phone(Samsung Galaxy A23) to build the app. Please Help.