Android build failed error code 256

I tried to build android app from the sample code with the 2018 version and latest 2020.3567 but got error: Feb 05 11:39:40.684 Building Android app for baitianju\_123456@163.com with 2020.3567 Feb 05 11:39:42.660 Using custom build id from app bundle: 00000 (AppSettings.lua) Feb 05 11:39:45.210 BUILD SUCCESSFUL Total time: 2 seconds Feb 05 11:40:02.105 Feb 05 11:40:02.106 FAILURE: Build failed with an exception. Feb 05 11:40:02.106 \* What went wrong: A problem occurred configuring project ':App'. Feb 05 11:40:02.107 \> Failed to notify project evaluation listener. \> Uninitialized object exists on backward branch 142 Feb 05 11:40:02.107 Exception Details: Location: Feb 05 11:40:02.108 com/android/build/gradle/internal/pipeline/VariantInfoImpl.(Lcom/android/build/gradle/internal/scope/VariantScope;)V @200: goto Reason: Error exists in the bytecode Bytecode: Feb 05 11:40:02.108 0000000: 2b12 3cb8 0034 2a2b b900 4201 0059 1244 0000010: b800 47b6 004d b900 5201 002b b900 5401 0000020: 0059 1256 b800 472b b900 4201 0059 1244 Feb 05 11:40:02.109 0000030: b800 47b6 005a c000 5c59 125e b800 47b9 0000040: 0061 0100 5912 63b8 0047 2bb9 0042 0100 0000050: 5912 44b8 0047 b600 6759 1269 b800 47c0 Feb 05 11:40:02.109 0000060: 006b 4d3a 0e3a 0d36 0c3a 0b03 3e2c 3a04 0000070: bb00 6d59 2c10 0ab8 0073 b700 76c0 0078 0000080: 3a05 0336 0619 04b9 007c 0100 3a07 1907 0000090: b900 8101 0099 0036 1907 b900 8501 003a Feb 05 11:40:02.110 00000a0: 0819 0519 08c0 0087 3a09 3a0f 0336 0a19 00000b0: 0959 1289 b800 47b9 008a 0100 3a10 190f 00000c0: 1910 b900 8e02 0057 a7ff c619 05c0 0090 00000d0: 3a0f 190b 150c 190d 190e 190f c000 6bb8 Feb 05 11:40:02.110 00000e0: 0096 2bb9 0042 0100 5912 44b8 0047 b600 00000f0: 5ac0 005c 5912 5eb8 0047 b900 9801 00b7 0000100: 009a b1 Stackmap Table: Feb 05 11:40:02.111 full\_frame(@142,{UninitializedThis,Object[#62],Object[#107],Integer,Object[#107],Object[#120],Integer,Object[#126],Top,Top,Top,UninitializedThis,Integer,Object[#169],Object[#169]},{}) same\_frame(@203) \* Try: Feb 05 11:40:02.111 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. Feb 05 11:40:02.111 \* Get more help at [https://help.gradle.org](https://help.gradle.org) BUILD FAILED in 15s Feb 05 11:40:02.593 Android build failed (256) after 20 seconds Feb 05 11:40:02.798 ERROR: Build Failed: Failed to Build Error code: 256 Feb 05 11:40:02.798