問心
問心
  • 发布:2023-08-25 14:46
  • 更新:2023-08-25 14:46
  • 阅读:172

uts插件开发报错Error: Invoke-customs are only supported starting with Android O (--min-api 26) 怎么解决

分类:uts

14:41:51.286 Error: Invoke-customs are only supported starting with Android O (--min-api 26)
14:41:51.286 com.android.tools.r8.CompilationFailedException: Compilation failed to complete
14:41:51.290 at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
14:41:51.291 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
14:41:51.294 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
14:41:51.295 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
14:41:51.308 at com.android.tools.r8.internal.vj.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
14:41:51.309 at com.android.tools.r8.D8.run(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:6)
14:41:51.314 at utsCompiler.Complier(utsCompiler.java:140)
14:41:51.315 at main.main(main.java:109)
14:41:51.318 Caused by: com.android.tools.r8.internal.f: Invoke-customs are only supported starting with Android O (--min-api 26)
14:41:51.318 at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
14:41:51.323 at com.android.tools.r8.internal.YS.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:22)
14:41:51.323 at com.android.tools.r8.internal.Fk.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:913)
14:41:51.327 at com.android.tools.r8.internal.Fk.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:705)
14:41:51.332 at com.android.tools.r8.internal.Fk.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:208)
14:41:51.336 at com.android.tools.r8.internal.RY.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:59)
14:41:51.337 at com.android.tools.r8.internal.D2.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1464)
14:41:51.341 at com.android.tools.r8.internal.D2.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:366)
14:41:51.342 at com.android.tools.r8.utils.C.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:4)
14:41:51.350 at com.android.tools.r8.utils.C.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:38)
14:41:51.350 at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1448)
14:41:51.353 at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
14:41:51.355 at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
14:41:51.358 at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
14:41:51.360 at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
14:41:51.362 at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
14:41:51.363 Suppressed: java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.android.tools.r8.internal.f: Invoke-customs are only supported starting with Android O (--min-api 26)
14:41:51.366 at com.android.tools.r8.D8.d(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:804)
14:41:51.367 at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
14:41:51.371 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:24)
14:41:51.371 at com.android.tools.r8.internal.vj.b(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
14:41:51.381 at com.android.tools.r8.D8.run(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:6)
14:41:51.381 at utsCompiler.Complier(utsCompiler.java:140)
14:41:51.385 at main.main(main.java:109)
14:41:51.385 Caused by: java.util.concurrent.ExecutionException: com.android.tools.r8.internal.f: Invoke-customs are only supported starting with Android O (--min-api 26)
14:41:51.389 at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
14:41:51.389 at com.android.tools.r8.utils.C.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:14)
14:41:51.393 at com.android.tools.r8.utils.C.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:6)
14:41:51.393 at com.android.tools.r8.utils.C.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:5)
14:41:51.396 at com.android.tools.r8.internal.D2.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:478)
14:41:51.397 at com.android.tools.r8.D8.d(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:794)
14:41:51.400 ... 6 more
14:41:51.400 Caused by: [CIRCULAR REFERENCE: com.android.tools.r8.internal.f: Invoke-customs are only supported starting with Android O (--min-api 26)]

2023-08-25 14:46 负责人:无 分享
已邀请:

要回复问题请先登录注册