Uninitialized object exists on backward branch 45

在windows10,ionic5打包时报了这个错误

Uninitialized object exists on backward branch 45
  Exception Details:
    Location:
      com/android/tools/build/jetifier/core/proguard/ProGuardTypesMap.([Lkotlin/Pair;)V @101: goto
    Reason:
      Error exists in the bytecode
    Bytecode:
      0000000: 2b12 bfb8 008d 2a2b 4d3a 0d03 3e2c 3a04
      0000010: bb00 2459 2cbe b700 2cc0 002e 3a05 0336
      0000020: 0619 043a 0719 07be 3608 0336 0915 0915
      0000030: 08a2 0037 1907 1509 323a 0a19 0519 0a3a
      0000040: 0b3a 0e03 360c 190b b600 d419 0bb6 00d7
      0000050: b800 b6b8 0065 3a0f 190e 190f b900 5902
      0000060: 0057 8409 01a7 ffc8 1905 c000 5b3a 0e19
      0000070: 0d19 0ec0 004e b800 6bb7 00b7 b1
    Stackmap Table:
      full_frame(@45,{UninitializedThis,Object[#220],Object[#220],Integer,Object[#220],Object[#46],Integer,Object[#220],Integer,Integer,Top,Top,Top,UninitializedThis},{})
      same_frame(@104)
* 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

系统环境变量配置的JDK和Android SDK使用的内置JDK不一致导致,可以找到Android SDK的内置JDK的路径,将系统环境变量改为内置的JDK路径

你可能感兴趣的:(Uninitialized object exists on backward branch 45)