Android bug when running emulator project

Asked

Viewed 240 times

0

I’m trying to run a project in Android Studio and this giving an error that I do not know how to solve.

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

Gradle Console:

> Executing tasks: [:app:generateDebugSources,
> :app:generateDebugTestSources]
> 
> Configuration on demand is an incubating feature. :app:preBuild
> :app:preDebugBuild :app:checkDebugManifest :app:preReleaseBuild
> :app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
> :app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
> :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE
> :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig
> UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets
> UP-TO-DATE :app:generateDebugResValues UP-TO-DATE
> :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources
> UP-TO-DATE :app:processDebugManifest UP-TO-DATE
> :app:processDebugResources UP-TO-DATE :app:generateDebugSources
> UP-TO-DATE :app:preDebugTestBuild :app:prepareDebugTestDependencies
> :app:compileDebugTestAidl UP-TO-DATE :app:processDebugTestManifest
> UP-TO-DATE :app:compileDebugTestRenderscript UP-TO-DATE
> :app:generateDebugTestBuildConfig UP-TO-DATE
> :app:generateDebugTestAssets UP-TO-DATE :app:mergeDebugTestAssets
> UP-TO-DATE :app:generateDebugTestResValues UP-TO-DATE
> :app:generateDebugTestResources UP-TO-DATE
> :app:mergeDebugTestResources UP-TO-DATE :app:processDebugTestResources
> UP-TO-DATE :app:generateDebugTestSources UP-TO-DATE
> 
> BUILD SUCCESSFUL
> 
> Total time: 4.634 secs Executing tasks: [:app:assembleDebug]
> 
> Configuration on demand is an incubating feature. :app:preBuild
> :app:compileDebugNdk UP-TO-DATE :app:preDebugBuild
> :app:checkDebugManifest :app:preReleaseBuild
> :app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
> :app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
> :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE
> :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig
> UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets
> UP-TO-DATE :app:generateDebugResValues UP-TO-DATE
> :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources
> UP-TO-DATE :app:processDebugManifest UP-TO-DATE
> :app:processDebugResources UP-TO-DATE :app:generateDebugSources
> UP-TO-DATE :app:compileDebugJava 


> An exception has occurred in the compiler (1.7.0_71). Please file a bug at the Java Developer
> Connection (http://java.sun.com/webapps/bugreport)  after checking the
> Bug Parade for duplicates. Include your program and the following
> diagnostic in your report.  Thank you.
> com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
> bolts.Task not found
> 
>  FAILED
> 
> FAILURE: Build failed with an exception.
> 
> * What went wrong: Execution failed for task ':app:compileDebugJava'.
> > Compilation failed; see the compiler error output for details.
> 
> * 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: 4.084 secs
  • Without error logging it is virtually impossible to detect the problem.

  • @Andréribeiro would be that?

  • It’s not that. Go on View > Gradle Console and paste the text of the log into your question. It’s better to view than in a screenshot.

  • @Andréribeiro doesn’t have this option.

  • @Andréribeiro finally found, I will update the question.

  • Any project causes Crash or is a specific project?

  • @Guilhermenascimento only have this on the machine for now, I’m beginner in Android.

  • But you tried to create a "zero" project with nothing and compile? Why first of all we need to define if the problem is in the installation of Androidstudio or in your project.

  • @Guilhermenascimento just took the test, it works perfectly.

  • So the problem is with the other project and not with Androidstudio, so images or Gradle Console won’t help much. What you should do is post the code following these specifications: http://answall.com/help/mcve

  • 1

    class file for bolts.Task not found. This seems to be your problem. It is likely that some library relies on the Bolts framework, but the jar was not included in the project.

Show 6 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.