AS出现了问题(Android Studio)。彻底卸载并重新安装3.4.2。我没有使用旧的用户设置。开始一个新项目。在不编写任何代码的情况下,“我的应用程序”,“运行构建”,“配置构建”,“ Gradle同步问题”和未初始化的对象都进行了红色检查。谢谢桑迪
使用Gradle文件同步项目
sync failed 39 s 110 ms
Starting Gradle Daemon 29 s 916 ms
Run build 3 s 858 ms
Load build 2 s 185 ms
Configure build 371 ms
null
Uninitialized object exists on backward branch 48
Exception Details:
Location:
com/android/java/model/builder/GradlePluginModelBuilder.buildAll(Ljava/lang/String;Lorg/gradle/api/Project;)Ljava/lang/Object; @98: goto
Reason:
Error exists in the bytecode
Bytecode:
0x0000000: bb00 2059 2cb9 0026 0100 c000 284e 3a0d
0x0000010: 3a0c 2d3a 04bb 002a 592d 100a b800 30b7
0x0000020: 0034 c000 363a 0519 04b9 003a 0100 3a06
0x0000030: 1906 b900 4001 0099 002e 1906 b900 4401
0x0000040: 003a 0719 0519 07c0 0046 3a08 3a0e 1908
0x0000050: b600 4ab6 0011 3a0f 190e 190f b900 4e02
0x0000060: 0057 a7ff ce19 05c0 0050 3a0e 190c 190d
0x0000070: 190e c000 36b7 0053 b0
Stackmap Table:
full_frame(@48,{Object[#2],Object[#100],Object[#34],Object[#40],Object[#40],Object[#54],Object[#60],Top,Top,Top,Top,Top,Uninitialized[#0],Uninitialized[#0]},{})
same_frame(@101)