Cannot run flutter project on emulator - java

I have downloaded Android Studio Chipmunk|2021.2.1 Patch 1
I have java version 8 (build 1.8.0_341-b10)
I am trying to run main.dart (default flutter program ) on vscode but it does not work\
I have run flutter doctor command to check for any issues but everything is correct
The error list is:
FAILURE: Build failed with an exception.
* Where:
Build file 'G:\proj\android\app\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all files for configuration 'classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:aaptcompiler:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.lint:lint-gradle-api:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:gradle-api:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > androidx.databinding:databinding-compiler-common:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools.build:builder-model:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdk-common:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:common:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools.build:manifest-merger:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools.analytics-library:tracker:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.lint:lint-gradle-api:27.1.0 > com.android.tools.lint:lint-model:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdklib:27.1.0 > com.android.tools:repository:27.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdk-common:27.1.0 > com.android.tools.analytics-library:shared:27.1.0
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.72/kotlin-stdlib-jdk8-1.3.72.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve org.ow2.asm:asm:7.0.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
> Could not resolve org.ow2.asm:asm:7.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm/7.0/asm-7.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm/7.0/asm-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve org.ow2.asm:asm-analysis:7.0.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
> Could not resolve org.ow2.asm:asm-analysis:7.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-analysis/7.0/asm-analysis-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve org.ow2.asm:asm-commons:7.0.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
> Could not resolve org.ow2.asm:asm-commons:7.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-commons/7.0/asm-commons-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve org.ow2.asm:asm-util:7.0.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
> Could not resolve org.ow2.asm:asm-util:7.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-util/7.0/asm-util-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
> Could not resolve net.sf.proguard:proguard-gradle:6.0.3.
> Could not get resource 'https://repo.maven.apache.org/maven2/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/net/sf/proguard/proguard-gradle/6.0.3/proguard-gradle-6.0.3.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc1.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0
> Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc1.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc1/tensorflow-lite-metadata-0.1.0-rc1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc1/tensorflow-lite-metadata-0.1.0-rc1.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve org.ow2.asm:asm-tree:7.0.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
> Could not resolve org.ow2.asm:asm-tree:7.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/ow2/asm/asm-tree/7.0/asm-tree-7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
> Could not resolve it.unimi.dsi:fastutil:7.2.0.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0
> Could not resolve it.unimi.dsi:fastutil:7.2.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/it/unimi/dsi/fastutil/7.2.0/fastutil-7.2.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
..........
My gradle wrapper properties:
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
My build gradle:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.flut"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
I read some issues regarding gradle incompatibility but i don't quite understand it well and i don't get why these errors are occurring exactly.
UPDATE: I tried some fixes and the error list has now reduced to this
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0.
Required by:
project :
> Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.0/kotlin-gradle-plugin-1.7.0.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.0/kotlin-gradle-plugin-1.7.0.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.4/userguide/build_environment.html#gradle_system_properties
> Remote host terminated the handshake
* 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 3s\
I think there is some issue of TLS protocol version. But i can't find much detail about it.

Open Flutter Terminal and run:
flutter clean
flutter pub get
Then update your classpath:
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

Related

Exception: Gradle task assembleDebug failed with exit code 1

Hey guys I just started building flutter app for the first time and I am having this error, I have installed all requirements and configurations but I still, have this error when I click on run.
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
[Fatal Error] jvnet-parent-5.pom:2:1: Content is not allowed in prolog.
[Fatal Error] kotlin-stdlib-common-1.3.72.pom:2:1: Content is not allowed in prolog.
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\watchdog\Documents\coding\Android\flutter_1\android\app\build.gradle' line: 26
* What went wrong:
A problem occurred evaluating project ':app'.
> Could not resolve all files for configuration 'classpath'.
> Could not resolve org.glassfish.jaxb:jaxb-runtime:2.3.1.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > androidx.databinding:databinding-compiler-common:4.1.0
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > com.android.tools.build:builder:4.1.0 > com.android.tools:sdklib:27.1.0 > com.android.tools:repository:27.1.0
> Could not resolve org.glassfish.jaxb:jaxb-runtime:2.3.1.
> Could not parse POM https://repo.maven.apache.org/maven2/org/glassfish/jaxb/jaxb-runtime/2.3.1/jaxb-runtime-2.3.1.pom
> Could not resolve com.sun.xml.bind.mvn:jaxb-runtime-parent:2.3.1.
> Could not resolve com.sun.xml.bind.mvn:jaxb-runtime-parent:2.3.1.
> Could not parse POM https://repo.maven.apache.org/maven2/com/sun/xml/bind/mvn/jaxb-runtime-parent/2.3.1/jaxb-runtime-parent-2.3.1.pom
> Could not resolve com.sun.xml.bind.mvn:jaxb-parent:2.3.1.
> Could not resolve com.sun.xml.bind.mvn:jaxb-parent:2.3.1.
> Could not parse POM https://repo.maven.apache.org/maven2/com/sun/xml/bind/mvn/jaxb-parent/2.3.1/jaxb-parent-2.3.1.pom
> Could not resolve com.sun.xml.bind:jaxb-bom-ext:2.3.1.
> Could not resolve com.sun.xml.bind:jaxb-bom-ext:2.3.1.
> Could not parse POM https://repo.maven.apache.org/maven2/com/sun/xml/bind/jaxb-bom-ext/2.3.1/jaxb-bom-ext-2.3.1.pom
> Could not resolve org.glassfish.jaxb:jaxb-bom:2.3.1.
> Could not resolve org.glassfish.jaxb:jaxb-bom:2.3.1.
> Could not parse POM https://repo.maven.apache.org/maven2/org/glassfish/jaxb/jaxb-bom/2.3.1/jaxb-bom-2.3.1.pom
> Could not resolve net.java:jvnet-parent:5.
> Could not resolve net.java:jvnet-parent:5.
> Could not parse POM https://repo.maven.apache.org/maven2/net/java/jvnet-parent/5/jvnet-parent-5.pom
> Content is not allowed in prolog.
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72.
Required by:
unspecified:unspecified:unspecified > com.android.tools.build:gradle:4.1.0 > org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72 > org.jetbrains.kotlin:kotlin-stdlib:1.3.72
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72.
> Could not parse POM https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.72/kotlin-stdlib-common-1.3.72.pom
> Content is not allowed in prolog.
* 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 10s
Exception: Gradle task assembleDebug failed with exit code 1
Please any help on fixing this?

Deploy AAR services using AXIS2 on JBOSS application server

Could you please help with the following deployment on the JBOSS application server.
Versions:
JBOSS EAP 7.3
Axis2 1.7.8
Issue:
I am trying to deploy Axis2.war on the application server by adding some AAR files in the Axis2.war file. Specifically I have placed a list of new AAR services in the directory axis2.war/WEB-INF/services. The AAR service names have also been included in the services.list file.
Axis2.war application gets deployed succesfully but the AAR services are turned to faulty services. The AAR files are JAVA compiled services provided by an official software distributor, meaning that I can change only the app server configuration, not the classes.
Logs:
When checking the logs the following errors are shown:
> [INFO] The xxxx.aar service, which is not valid, caused java.lang.NoClassDefFoundError:
> org/springframework/context/support/ClassPathXmlApplicationContext
> at com.xxxxx.services.integrationlandscape.IntegrationLandscapeServiceSpringContext.loadServiceContext(IntegrationLandscapeServiceSpringContext.java:27)
> at com.xxxxxx.services.integrationlandscape.IntegrationLandscapeServiceSpringInit.startUp(IntegrationLandscapeServiceSpringInit.java:17)
> at org.apache.axis2.deployment.ServiceBuilder.startupServiceLifecycle(ServiceBuilder.java:942)
> at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:444)
> at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
> at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:117)
> at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232)
> at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)
> at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136)
> at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:289)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
> at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
> at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
> at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
> at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
> at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
> at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:585)
> at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:556)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:598)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:750)
> at org.jboss.threads.JBossThread.run(JBossThread.java:485) Caused by: java.lang.ClassNotFoundException: Class Not found :
> org.springframework.context.support.ClassPathXmlApplicationContext
> at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:96)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> at org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:277)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> ... 43 more [INFO] org.apache.axis2.deployment.DeploymentException:
> java.lang.NoClassDefFoundError:
> org/springframework/context/support/ClassPathXmlApplicationContext
It seems that the compiled class IntegrationLandscapeServiceSpringContext attempts to initiate another class which is not defined in the classpath. It is possible that there is some missing configuration for the Axis2.war file to integrate well with Spring. Could you please elaborate if this is the case and how it can be resolved by reconfiguring the application server's settings?
Thank you.

Problems with Firebase initialization (android-java)

I want to initialize a Firebase, but I got some problems.
This is the text of an error:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
Here is the project build.gradle code:
buildscript {
repositories {
google() // Google's Maven repository
}
dependencies {
classpath 'com.google.gms:google-services:4.3.10'
classpath 'com.android.tools.build:gradle:4.0.2'
}
}
plugins {
id 'com.android.application' version '7.1.0' apply false
id 'com.android.library' version '7.1.0' apply false
}
allprojects {
repositories {
google()
}
}
The problem disappears when I delete google() from
allprojects {
repositories {
google()
}
}
But when I delete google(), there is another error: GoogleSignIn.getLastSignedInAccount causes exception
There is also gradle error log:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':app:dataBindingMergeDependencyArtifactsDebug'.
Could not resolve all files for configuration
':app:debugCompileClasspath'.
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.6.0.
Required by:
project :app > androidx.navigation:navigation-fragment:2.4.0
project :app > androidx.navigation:navigation-runtime:2.4.0
project :app > androidx.navigation:navigation-common:2.4.0
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.6.0.
Required by:
project :app > androidx.fragment:fragment:1.4.0
project :app > androidx.fragment:fragment-ktx:1.4.0
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.6.0.
Required by:
project :app > androidx.core:core-ktx:1.2.0
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.6.0.
Required by:
project :app > androidx.activity:activity-ktx:1.2.3
project :app > androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1
project :app > androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1
project :app > androidx.savedstate:savedstate-ktx:1.1.0
project :app > androidx.lifecycle:lifecycle-runtime-ktx:2.3.1
Could not find org.jetbrains.kotlin:kotlin-stdlib:1.6.0.
Required by:
project :app > androidx.collection:collection-ktx:1.1.0
Could not find org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1.
Required by:
project :app > androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1
project :app > androidx.lifecycle:lifecycle-runtime-ktx:2.3.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 1s
The problem was solved by adding jcenter() to
allprojects {
repositories {
google()
jcenter()
}
}
I don't know why it's working, and why it didn't worked before. If you know why or you have another solution, please, answer.

Could not resolve all dependencies for configuration :classpath'

I'm trying to create a mod for Minecraft 1.7.10 and I am currently at setting up gradlew and other apps.
When, I run this command: .\gradlew setupDecompWorkspace I have this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Forge src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.eclipse.equinox:common:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:jobs:3.5.300-v20130429-1813
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.equinox:preferences:3.5.100-v20130422-1538
> Failed to list versions for org.eclipse.equinox:common.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:preferences:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255
> Failed to list versions for org.eclipse.equinox:preferences.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:registry:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255
> Failed to list versions for org.eclipse.equinox:registry.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core.runtime:compatibility:[3.1.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914
> Failed to list versions for org.eclipse.core.runtime:compatibility.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:expressions:[3.1.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914
> Failed to list versions for org.eclipse.core:expressions.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:filesystem:[1.0.0,2.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914
> Failed to list versions for org.eclipse.core:filesystem.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse:osgi:[3.7.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse:osgi.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:common:[3.6.100,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:common.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:jobs:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.core:jobs.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:registry:[3.4.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:registry.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:preferences:[3.4.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:preferences.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:contenttype:[3.3.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.core:contenttype.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:app:[1.0.0,2.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:app.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
* 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: 17.807 secs
What do I do to solve the issue? Here's my build.gradle file:
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
apply plugin: 'forge'
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
minecraft {
version = "1.7.10-10.13.4.1558-1.7.10"
runDir = "eclipse"
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
Can you share your gradle build file?
Also did you try to use the maven central in the gradle build file?
ex:
repositories {
mavenCentral() }
Go to C:\Users\[username] delete the .gradle file. Then go to your folder where you extracted forge 1.7.10 and open gradle >> wrapper >> gradle-wrapper.properties and change/replace the last line with this - distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
Also make sure you have JDK 8 or higher installed and have set the path.

install4j fails to download JDK archives from well-known OpenJDK providers

Install4j allows users to select a JDK for automatic download with the json property:
<jreBundles jdkProviderId="Liberica" release="OpenJDK 11.0.6+10">
On my desktop I can dry run just fine and also fetch the jdk from the bellsoft-
However when I run dry run on my server I get the following error and the jdk cannot be fetched. I can download it in the browser online from the website without issues but not with the Install4j GUI.
> Creating JRE bundle:
> Finding JDK release OpenJDK 11.0.6+10 [windows-amd64]
> Downloading bellsoft-jdk11.0.6%2B10-windows-amd64.zip
>
> Build failed.
>
> Cause: java.net.SocketTimeoutException
> Read timed out Stack trace:
>
> com.exe4j.a.d: javax.net.ssl.SSLException: Read timed out at
> com.install4j.b.o.b(ejt:237) at com.install4j.gui.b.run(ejt:100)
> Caused by: javax.net.ssl.SSLException: Read timed out at
> java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
> at
> java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321)
> at
> java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:264)
> at
> java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:259)
> at
> java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:137)
> at
> java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1152)
> at
> java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1063)
> at
> java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:402)
> at
> java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567)
> at
> java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
> at
> java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:163)
> at
> com.install4j.runtime.installer.helper.content.HttpRequestHandler.getURLConnection(HttpRequestHandler.java:288)
> at
> com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:135)
> at
> com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:155)
> at
> com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:24)
> at
> com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:128)
> at
> com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:150)
> at com.install4j.jdk.h.a(ejt:282) at com.install4j.jdk.h.a(ejt:19)
> at com.install4j.jdk.j.a(ejt:153) at
> com.install4j.jdk.j.invoke(ejt:19) at
> com.install4j.jdk.aa$a.a(ejt:18) at com.install4j.jdk.ak.a(ejt:61)
> at com.install4j.jdk.h.b(ejt:140) at com.install4j.jdk.h.a(ejt:97)
> at com.install4j.b.i.a(ejt:35) at com.install4j.b.c.h(ejt:942) at
> com.install4j.b.c.a(ejt:909) at com.install4j.b.c.W(ejt:890) at
> com.install4j.b.o.a(ejt:490) at com.install4j.b.o.b(ejt:166) ... 1
> more Caused by: java.net.SocketTimeoutException: Read timed out at
> java.base/java.net.SocketInputStream.socketRead0(Native Method) at
> java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
> at
> java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
> at
> java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
> at
> java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:448)
> at
> java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:165)
> at
> java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:108)
> ... 27 more
If the build sever cannot make a connection to the server of the JDK provider, you can avoid the JRE bundle creation by transferring the relevant directories in
$HOME/.install4j/jres/generated
from your development machine to the build machine, then no download is required. This assumes that you have run the build for all media files on your development machine, so that all JRE bundles have been generated.

Categories