Development issue/problem:

I get the following mistake when making my project:

org.gradle.api.internal.tasks.compile.CompilationFailedException : Компиляция не удалась, подробнее см. вывод ошибки компилятора.на org.gradle.api.internal.tasks.compile.JdkJavaCompiler.exec(JdkJavaCompiler.java:50)на org.gradle.api.internal.tasks.compile.JdkJavaCompiler.exec(JdkJavaCompiler.java:35)на org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:98)на org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.exec(NormalizingJavaCompiler.java:51)на org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.exec(НормализацияJavaCompiler.java:37)на org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:35)на org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execution(CleaningJavaCompilerSupport.java:25)на org.gradle.api.internal.tasks.build.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:39)на сайте org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:24)на сайте org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:207)на сайте org.gradle.api.tasks.compile.JavaCompile.comp(JavaCompile.java:133)на сайте com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:125)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.gradle.internal.reflects.JavaMethod.invoke(JavaMethod.java:73)на сайте org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)на сайте org.gradle.api.internal.project.taskfactory.StandardTaskAction.execution(StandardTaskAction.java:39)на org.gradle.api.internal.project.taskfactory.StandardTaskAction.execution(StandardTaskAction.java:26)на org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)на org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execution(DefaultBuildOperationExecutor.java:336)на сайте org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)на сайте org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)на сайте org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)на сайте org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executionAction(ExecuteActionsTaskExecuter.java:110)на org.gradle.api.internal.tasks.exec.ExecuteActionsTaskExecuter.executionActions(ExecuteActionsTaskExecuter.java:92)на org.gradle.api.internal.tasks.exec.executeActionsTaskExecuter.java:92)на org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execution(ExecuteActionsTaskExecuter.java:70)на org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)на org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execution(SkipUpToDateTaskExecuter.java:62)на org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execution(ResolveTaskOutputCachingStateExecuter.java:54)на org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execution(ValidatingTaskExecuter.java:60)на org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execution(SkipEmptySourceFilesTaskExecuter.java:97)на org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)на org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execution(ResolveTaskArtifactStateTaskExecuter.java:52)на org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execution(SkipTaskWithNoActionsExecuter.java:52)на org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execution(SkipOnlyIfTaskExecuter.java:54)на org.gradle.api.internal.tasks.execution.skipOnlyIfTaskExecuter.java:54)на org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execution(ExecuteAtMostOnceTaskExecuter.java:43)на org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)на org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)на org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execution(DefaultBuildOperationExecutor.java:336)на org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execution(DefaultBuildOperationExecutor.java:336)на org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)на сайте org.gradle.internal.progress.DefaultBuildOperationExecutor.execution(DefaultBuildOperationExecutor.java:199)на сайте org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)на org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execution(DefaultTaskGraphExecuter.java:241)на org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execution(DefaultTaskGraphExecuter.java:230)на org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)на org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execution(DefaultTaskPlanExecutor.java:98)на org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execution(DefaultTaskExecutionPlan.java:626)на org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executionWithTask(DefaultTaskExecutionPlan.java:581)at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)at java.lang.Thread.run(Thread.java:745).

Java compiler :

Cause: org.gradle.api.internal.tasks.compileFailedException : Compilation failed, see the compilation failure output.

This is my build.gradle level project:

Assembly scenario {

Repositories {google()jcenter()mavenCentral()}dependencies {classpath ‘com.android.tools.build:gradle:3.1.0’classpath ‘com.google.gms:google-services:3.1.1’}}dependencies {classpath ‘com.android.tools.build:gradle:3.1.0’classpath ‘com.google.gms:google-services:3.1.1’}} } }.

all projects {repositories {google()jcenter()maven {url https://maven.google.com}maven {url https://jitpack.io}}}}

task clean(type: Remove) {
remove rootProject.buildDir
}

Does anyone know how to fix this?

How can I solve this problem?

Solution 1:

I solved this problem with the suggestion of @CommonsWare to go to the second button on the toolbar of the construction view from top to bottom, which oscillates between the tree view and the raw output of the Gradle console. The error showed that it was due to the use of a depreciated display, articleListAdapter. If you delete it, the error will be corrected.

Android Gradle CompilationFailedException after Android Studio Update –

The other warning has been fixed by changing the build for implementation in the build.gradle of the application layer.

Solution 2:

Thanks to Paradox for the answer that helped me.

In the latest version of Android Studio,
, the icon has been changed.

Android Gradle CompilationFailedException after Android Studio Update –

Solution 3:

TL;DR: Do the search.

I ran into the same problem a few minutes ago. In addition to the wonderful reaction of @Momen [picture below]. I made an extra remark.

Android Gradle CompilationFailedException after Android Studio Update –

When I clicked on the icon in the image above, I still couldn’t figure out exactly what the problem was because the logs were barely complete. However, beneath the enormous pile of logs was the possibility to work with the scanner.

Android Gradle CompilationFailedException after Android Studio Update –

By clicking on Run with Scan, the exact compilation error came to light.

I really hope this helps somebody. Have fun coding!

Solution 4:

Simply remove the tiered version from the last version to a lower version (3.3.1).

Solution No 5:

Allow the use of an impersonal NDK:

  • Go to gradle.properties
  • Add the following: android.useDepricatedNdk=true

Solution No 6:

I hope this helps

Parameters-> Build, Run, Deploy->Compiler->Command line options text field -(write to text field)-> scan

Good luck!

compilation error in android studio,android studio see compilation errors,android studio see build output,android studio where is compiler output,android studio compiler error line number,android gradle plugin source code,gradle version command,gradle-release-plugin,gradle dsl method not found: 'kapt()',add google maven repository and sync project,caused by: com android tools r8 utils b,multidexenabled true,firebase-core latest version,java lang illegalstateexception couldn t retrieve android gradle model for current android model,gradle compilation failed; see the compiler error output for details.,android studio compile output,org.gradle.api.tasks.taskexecutionexception: execution failed for task ':compilejava',recompile with for details android studio,android studio error console

You May Also Like

JOI Book SK3000 Review: Qualcomm has entered the Windows Laptop Game

About a year or two ago, Qualcomm announced that it would enter…

7 Ways To Maximize Air Conditioning Efficiency At Home

Air conditioners are not only an extravagance, but also a necessity in…

How To Make Circle Custom Progress Bar in Android –

Development issue/problem: I want a custom progress bar in the form of…

Lenovo Launches Three New IdeaPad Laptops for Smart Consumer Experiences

As technology and digital transformation continue to evolve, more and more brands…