Attempting to run the Android application...
[email protected] android react-native run-android
Information: JS server is already running. The app installation process is in progress.
This build contains deprecated Gradle features that are incompatible with Gradle 8.0.
You can use '--warning-mode all' to identify individual deprecation warnings and determine if they originate from your scripts or plugins.
View 5 actionable tasks: 5 up-to-date
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where: Build file 'D:\OCR2\node_modules\react-native-tesseract-ocr\android\build.gradle' line: 23
What went wrong: An issue was encountered while evaluating project ':react-native-tesseract-ocr'.
Plugin with id 'maven' not found.
- Try:
Run with --stacktrace option for a detailed stack trace. Run with --info or --debug option for additional log output. Run with --scan for comprehensive insights. ==============================================================================
2: Task failed with an exception.
- What went wrong: A problem occurred during the configuration of project ':react-native-tesseract-ocr'.
com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle
- Try:
Run with --stacktrace option for the stack trace. Run with --info or --debug option for detailed logging. Run with --scan for full insights. ==============================================================================
- For further assistance, visit
BUILD FAILED in 6 seconds
Error: The app installation failed. Ensure that the Android development environment is configured correctly: https://reactnative.dev/docs/environment-setup. Specific Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Where: Build file 'D:\OCR2\node_modules\react-native-tesseract-ocr\android\build.gradle' line: 23
What went wrong: An issue was encountered while evaluating project ':react-native-tesseract-ocr'.
Plugin with id 'maven' not found.
- Try:
Run with --stacktrace option for a detailed stack trace. Run with --info or --debug option for additional log output. Run with --scan for comprehensive insights. ==============================================================================
2: Task failed with an exception.
- What went wrong: A problem occurred during the configuration of project ':react-native-tesseract-ocr'.
com.android.builder.errors.EvalIssueException: compileSdkVersion is not specified. Please add it to build.gradle
- Try:
Run with --stacktrace option for the stack trace. Run with --info or --debug option for detailed logging. Run with --scan for full insights. ==============================================================================
- For further assistance, visit
BUILD FAILED in 6 seconds
at makeError (D:\OCR2\node_modules\execa\index.js:174:9)
at D:\OCR2\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\OCR2\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\OCR2\node_modules\@react-native-community\cli\build\index.js:142:9)
For more information, run CLI with the --verbose flag.
D:\OCR2> npm i rn-text-detector --save
Added 1 package, audited 974 packages in 3 seconds
102 packages are seeking funding
Run npm fund
for details
No vulnerabilities found
Completed steps: D:\OCR2>