Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169483

Execution Failed : Compilation Error in Android Studio

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_111"
      Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
      Java HotSpot(TM) Client VM (build 25.111-b14, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Ver - Windows 10 Pro

      A DESCRIPTION OF THE PROBLEM :
      I am using Android Studio to develop Android App, recently updated java to 1.8. While I am running my Project in Android Studio IDE it raising following error,

      An exception has occurred in the compiler (1.8.0_92). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found
      :agendacalendar:compileDebugJavaWithJavac FAILED

      Error:Execution failed for task ':agendacalendar:compileDebugJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.

      I had tried so many solutions from various sources but no solution couldn't worked.


       

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Should display as

      BUILD SUCCESSFULL

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Information:Gradle tasks [clean, :agendacalendar:generateDebugSources, :agendacalendar:mockableAndroidJar, :agendacalendar:prepareDebugUnitTestDependencies, :agendacalendar:generateDebugAndroidTestSources, :agendacalendar:compileDebugSources, :agendacalendar:compileDebugUnitTestSources, :agendacalendar:compileDebugAndroidTestSources, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources]
      Jack is required to support java 8 language features.
      Jack is required to support java 8 language features.
      :clean
      :agendacalendar:clean
      :app:clean
      :app:preBuild UP-TO-DATE
      :app:preDebugBuild UP-TO-DATE
      :app:checkDebugManifest
      :app:preReleaseBuild UP-TO-DATE
      :app:generateDebugBuildConfig
      :app:mergeDebugShaders
      :app:compileDebugShaders
      :app:generateDebugAssets
      :app:generateDebugResValues UP-TO-DATE
      :app:mockableAndroidJar
      :agendacalendar:preBuild UP-TO-DATE
      :agendacalendar:preDebugBuild UP-TO-DATE
      :agendacalendar:checkDebugManifest
      :agendacalendar:preDebugAndroidTestBuild UP-TO-DATE
      :agendacalendar:preDebugUnitTestBuild UP-TO-DATE
      :agendacalendar:preReleaseBuild UP-TO-DATE
      :agendacalendar:preReleaseUnitTestBuild UP-TO-DATE
      :agendacalendar:prepareComAndroidSupportAnimatedVectorDrawable2400Library
      :agendacalendar:prepareComAndroidSupportAppcompatV72400Library
      :app:preDebugUnitTestBuild UP-TO-DATE
      :app:prepareDebugUnitTestDependencies
      :app:preDebugAndroidTestBuild UP-TO-DATE
      :app:prepareDebugAndroidTestDependencies
      :app:compileDebugAndroidTestAidl
      :app:processDebugAndroidTestManifest
      :app:compileDebugAndroidTestRenderscript
      :app:generateDebugAndroidTestBuildConfig
      :app:mergeDebugAndroidTestShaders
      :app:compileDebugAndroidTestShaders
      :app:generateDebugAndroidTestAssets
      :app:mergeDebugAndroidTestAssets
      :app:generateDebugAndroidTestResValues UP-TO-DATE
      :app:generateDebugAndroidTestResources
      :app:mergeDebugAndroidTestResources
      :app:processDebugAndroidTestResources
      :agendacalendar:prepareComAndroidSupportDesign2400Library
      :agendacalendar:prepareComAndroidSupportRecyclerviewV72400Library
      :app:generateDebugAndroidTestSources
      :app:incrementalDebugJavaCompilationSafeguard
      :agendacalendar:prepareComAndroidSupportSupportV42400Library
      :app:compileDebugNdk UP-TO-DATE
      :app:incrementalDebugUnitTestJavaCompilationSafeguard UP-TO-DATE
      :app:processDebugJavaRes UP-TO-DATE
      :app:processDebugUnitTestJavaRes UP-TO-DATE
      :app:incrementalDebugAndroidTestJavaCompilationSafeguard
      :app:compileDebugAndroidTestNdk UP-TO-DATE
      :agendacalendar:prepareComAndroidSupportSupportVectorDrawable2400Library
      :agendacalendar:prepareSeEmilsjolanderStickylistheaders270Library
      :agendacalendar:prepareDebugDependencies
      :agendacalendar:compileDebugAidl
      :agendacalendar:compileDebugRenderscript
      :agendacalendar:generateDebugBuildConfig
      :agendacalendar:mergeDebugShaders
      :agendacalendar:compileDebugShaders
      :agendacalendar:generateDebugAssets
      :agendacalendar:mergeDebugAssets
      :agendacalendar:generateDebugResValues UP-TO-DATE
      :agendacalendar:generateDebugResources
      :agendacalendar:mergeDebugResources
      :agendacalendar:processDebugManifest
      :agendacalendar:processDebugResources
      :agendacalendar:generateDebugSources
      :agendacalendar:mockableAndroidJar UP-TO-DATE
      :agendacalendar:prepareDebugUnitTestDependencies
      :agendacalendar:prepareDebugAndroidTestDependencies
      :agendacalendar:compileDebugAndroidTestAidl
      :agendacalendar:compileDebugNdk UP-TO-DATE
      :agendacalendar:compileLint
      :agendacalendar:copyDebugLint UP-TO-DATE
      :agendacalendar:incrementalDebugJavaCompilationSafeguard
      :agendacalendar:compileDebugJavaWithJavac
      :agendacalendar:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
      An exception has occurred in the compiler (1.8.0_92). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
      com.sun.tools.javac.code.Symbol$CompletionFailure: class file for java.lang.invoke.MethodType not found
      :agendacalendar:compileDebugJavaWithJavac FAILED
      Error:Execution failed for task ':agendacalendar:compileDebugJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.
      Information:BUILD FAILED
      Information:Total time: 1 mins 5.228 secs
      Information:1 error
      Information:0 warnings
      Information:See complete output in console

      REPRODUCIBILITY :
      This bug can be reproduced often.

      SUPPORT :
      YES

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: