PS D:\AppAuction\Myapp> npx react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 936 file(s) to forward-jetify. Using 8 workers... info Starting JS server... info Launching emulator... info Successfully launched emulator. info Installing the app... Starting a Gradle Daemon, 1 incompatible and 2 stopped Daemons could not be reused, use --status for details 6 actionable tasks: 6 up-to-date
FAILURE: Build failed with an exception.
Where: Build file 'D:\AppAuction\Myapp\android\app\build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options:
at makeError (D:\AppAuction\Myapp\node_modules\execa\index.js:174:9)
at D:\AppAuction\Myapp\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\AppAuction\Myapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\AppAuction\Myapp\node_modules\@react-native-community\cli\build\index.js:192:9)
info Run CLI with --verbose flag for more details.