Ionic 3 build error: "No server to serve request" - angularjs

I ran this command:
ionic cordova build android
And I received this error:
Error: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: No server to serve request. Check logs
for details. :app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:mergeDebugResources'.
Error: java.util.concurrent.ExecutionException: java.lang.RuntimeException: No server to serve request. Check logs
for details.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org

Just comment these line of code in your app build.gradle file
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
Re-run the command it will build successfully.

Related

React Native Error Occur, Someone Know About This Error

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
5 actionable tasks: 5 up-to-date
FAILURE: Build failed with an exception.
Where:
Build file 'D:\React Native Applications\FirstProject\android\app\build.gradle' line: 240
What went wrong:
A problem occurred configuring project ':app'.
groovy.lang.MissingPropertyException: No such property: ABI for class: org.gradle.api.tasks.OutputFile
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
BUILD FAILED in 17s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
Where:
Build file 'D:\React Native Applications\FirstProject\android\app\build.gradle' line: 240
What went wrong:
A problem occurred configuring project ':app'.
groovy.lang.MissingPropertyException: No such property: ABI for class: org.gradle.api.tasks.OutputFile
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
BUILD FAILED in 17s
at makeError (D:\React Native Applications\FirstProject\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\React Native Applications\FirstProject\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (D:\React Native Applications\FirstProject\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\React Native Applications\FirstProject\node_modules\#react-native-community\cli\build\index.js:142:9)
info Run CLI with --verbose flag for more details.
Please Give Solution About This Error
So, if your project arises this type of error in the React-Native application, just open android/app/build.gradle Line: 240, remove this line
def abi = output.getFilter(OutputFile.ABI)
And paste the below code.
def abi = output.getFilter(com.android.build.OutputFile.ABI)

Getting Error of gradle while running android of React Native

I am new to React Native. Getting below error. Any suggestion how to trace this type of errors in react.
Spent a whole day to find out cause of the error.
What went wrong:
Could not open settings generic class cache for settings file 'D:\ReactNative\SSC2\android\settings.gradle' (C:\Users\Dell.gradle\caches\7.5.1\scripts\8mud6kpc6deuu7vvpctiud3o6).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 63
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
BUILD FAILED in 1s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
What went wrong:
Could not open settings generic class cache for settings file 'D:\ReactNative\SSC2\android\settings.gradle' (C:\Users\Dell.gradle\caches\7.5.1\scripts\8mud6kpc6deuu7vvpctiud3o6).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 63
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
BUILD FAILED in 1s
at makeError (D:\ReactNative\SSC2\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\ReactNative\SSC2\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (D:\ReactNative\SSC2\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)
at async Command.handleAction (D:\ReactNative\SSC2\node_modules\#react-native-community\cli\build\index.js:108:9)
info Run CLI with --verbose flag for more details.
Any suggestion how to troubleshoot and trace this type of errors in react.

react native video tag eroor

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.yqritc:android-scalablevideoview:1.0.4.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/C:/Users/Ritik/.m2/repository/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/E:/react native/Imusic/node_modules/react-native/android/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/E:/react native/Imusic/node_modules/jsc-android/dist/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://dl.google.com/dl/android/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://www.jitpack.io/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
Required by:
project :app > project :react-native-video
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
BUILD FAILED in 20s
error Failed to install the app. Make sure you have the Android development environment set
up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.yqritc:android-scalablevideoview:1.0.4.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/C:/Users/Ritik/.m2/repository/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/E:/react native/Imusic/node_modules/react-native/android/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- file:/E:/react native/Imusic/node_modules/jsc-android/dist/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://dl.google.com/dl/android/maven2/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
- https://www.jitpack.io/com/yqritc/android-scalablevideoview/1.0.4/android-scalablevideoview-1.0.4.pom
Required by:
project :app > project :react-native-video
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
BUILD FAILED in 20s
at makeError (E:\react native\Imusic\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at E:\react native\Imusic\node_modules\#react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (E:\react native\Imusic\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:106:5)
at async Command.handleAction (E:\react native\Imusic\node_modules\#react-native-community\cli\build\index.js:192:9)
In your build.gradle in your Android folder you need to change allprojects (not in build dependencies) like this:
allprojects {
repositories {
// ...
mavenCentral()
mavenLocal()
jcenter()
maven { url 'https://www.jitpack.io' }
// ...
}
}
Then, Clean cache and build again.

Task :app:buildDebugStaticWebviewAssets FAILED

> Task :app:buildDebugStaticWebviewAssets FAILED
./tools/build-webview: error: unexpected destination directory '/d/CODE_WORKSPACE/zulip-mob/zulip-mobile/android/app/build/intermediates/merged_assets/debug/out/webview' (expected target in Android build dir)
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:buildDebugStaticWebviewAssets'.
Process 'command 'bash'' finished with non-zero exit value 1
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
BUILD FAILED in 4s
55 actionable tasks: 1 executed, 54 up-to-date
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: gradlew.bat app:installDebug. Run CLI with --verbose flag for more details.

conversation+discovery java code is working

I am trying to run the sample java watson conversation with discovery service in my IBM account.
I have created the java app and added the service details in environment variables and tried to deploy the code but getting below error .
please let me know what is the cause for this issue.
Preparing to start the job...
Cloning the 'master' branch from repo 'https://git.eu-gb.bluemix.net/anil.narayanaswamy002/tnchatbot.git'
Repository successfully cloned
Download https://plugins.gradle.org/m2/com/moowork/gradle/gradle-node-plugin/0.12/gradle-node-plugin-0.12.pom
Download https://plugins.gradle.org/m2/com/moowork/gradle/gradle-gulp-plugin/0.12/gradle-gulp-plugin-0.12.pom
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'conversation-with-discovery'.
Could not resolve all dependencies for configuration ':classpath'.
Could not resolve org.codehaus.groovy:groovy-backports-compat23:2.3.5.
Required by:
com.ibm.watson.wea.app:conversation-with-discovery:0.5.0-SNAPSHOT
Could not GET 'https://plugins.gradle.org/m2/org/codehaus/groovy/groovy-backports-compat23/2.3.5/groovy-backports-compat23-2.3.5.pom'.
peer not authenticated
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.217 secs
Finished: FAILED

Resources