离子生成释放错误[--nodesugar_try_with_resources_if_needed]

时间:2019-05-17 14:28:16

标签: android ionic-framework build

在尝试构建我的apk时出现此错误

    code 1):An error occurred while running cordova build android --release (exit
    (truncated) ... --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\16.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\17.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\18.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\19.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\20.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\21.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\22.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\23.jar        --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\24.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\25.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\26.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\27.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\28.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\29.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\30.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\31.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\32.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\33.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\34.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\35.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\36.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\37.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\38.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\39.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\40.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\41.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\42.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\43.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\44.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\45.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\46.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\47.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\48.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\49.jar
    --classpath_entry
    C:\Escripta\platforms\android\app\build\intermediates\transforms\stackFramesFixer\release\50.jar
    --bootclasspath_entry
    C:\Users\Gentelli\AppData\Local\Android\Sdk\platforms\android-26\android

.jar         --bootclasspath_entry         C:\ Users \ Gentelli \ AppData \ Local \ Android \ Sdk \ platforms \ android-26 \ optiona l \ org.apache.http.legacy.jar         --bootclasspath_entry C:\ Program         Files \ Java \ jdk1.8.0_161 \ jre \ lib \ resources.jar --bootclasspath_entry         C:\ Program Files \ Java \ jdk1.8.0_161 \ jre \ lib \ rt.jar --bootclasspath_entry

  C:\Program Files\Java\jdk1.8.0_161\jre\lib\jsse.jar
  --bootclasspath_entry C:\Program Files\Java\jdk1.8.0_161\jre\lib\jce.jar

  --bootclasspath_entry C:\Program
    Files\Java\jdk1.8.0_161\jre\lib\charsets.jar --bootclasspath_entry
   C:\Program Files\Java\jdk1.8.0_161\jre\lib\jfr.jar --min_sdk_version 19

    --nodesugar_try_with_resources_if_needed
    --desugar_try_with_resources_omit_runtime_classes}

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or

    --debug option to get more log output.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 28s

0 个答案:

没有答案