FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.github.parse-community.Parse-SDK-Android:parse:1.12.0.
Required by:
project :app
logcat
Related
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?
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.
I am trying to import a fresh project into my eclipse photon workspace with JAVA 8 and Gradle 4.8.1. I see the following exception. I am not sure why it is trying to build tests while importing the project itself.
org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.8.1-all.zip'.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
...
Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':buildSrc:test'.
at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)
at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
...
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':buildSrc:test'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
...
... 3 more
Caused by: org.gradle.api.GradleException: There were failing tests. See the report at: file:///C:/sources/elasticsearch-master/buildSrc/build-bootstrap/reports/tests/test/index.html
at org.gradle.api.tasks.testing.AbstractTestTask.handleTestFailures(AbstractTestTask.java:612)
at org.gradle.api.tasks.testing.AbstractTestTask.executeTests(AbstractTestTask.java:484)
at org.gradle.api.tasks.testing.Test.executeTests(Test.java:603)
...
... 30 more
UPDATE
Both didn't work however am using 4.4.1 version now :
"Loading Gradle project preview faileddue to error in the referenced gradle build"
org.gradle.tooling.BuildException: Could not fetch model of type 'GradleBuild' using Gradle installation 'C:\gradle'.
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41)
...
Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':buildSrc:compileGroovy'.
at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)
at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
...
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':buildSrc:compileGroovy'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
...
... 95 more
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:180)
at org.gradle.api.internal.tasks.compile.ApiGroovyCompiler.execute(ApiGroovyCompiler.java:56)
...
... 3 more
I'm getting following errors while 'Generate Signed APK' when I enable minify on build.gradle. Can anyone show me where is the issue? I'm unable to find since I'm new to android development and it doesn't show any class names related to my files
org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
... 3 more
Caused by: java.lang.RuntimeException: Job failed, see logs for details
at com.android.build.gradle.internal.transforms.ProGuardTransform.transform(ProGuardTransform.java:196)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
java.io.FileNotFoundException: C:\Users\MyName\AndroidStudioProjects\app_name\app\build\intermediates\transforms\mergeJavaRes\debug\jars\2\1f\main.jar (Accesso negato)
This is the error that I have when I build the project.