当前程序编译时所需求安卓SDK API版本: 29, 实际所使用版本: 29; 运行时所需求API版本: 26
当前程序所需求Java SDK版本: 1.6; 实际所使用版本: 1.8
正在进行"生成DEX文件"工作,请稍候...
错误:
步骤"生成DEX文件"执行失败
Uncaught translation error:
com.android.dx.*Fcode.SimException: ERROR in com.youth.banner.adapter.BannerAdapter.onBindViewHolderLandroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)
at com.android.dx.*Fcode.Simulator.fail(Simulator.java:947)
at com.android.dx.*Fcode.Simulator.checkInvokeDynamicSupported(Simulator.java:848)
at com.android.dx.*Fcode.Simulator.access$700(Simulator.java:43)
at com.android.dx.*Fcode.Simulator$SimVisitor.visitConstant(Simulator.java:711)
at com.android.dx.*Fcode.BytecodeArray.parseInstruction(BytecodeArray.java:780)
at com.android.dx.*Fcode.Simulator.simulate(Simulator.java:117)
at com.android.dx.*Fcode.Ropper.processBlock(Ropper.java:789)
at com.android.dx.*Fcode.Ropper.doit(Ropper.java:744)
at com.android.dx.*Fcode.Ropper.convert(Ropper.java:349)
at com.android.dx.dex.*F*Franslator.processMethods(*Franslator.java:309)
at com.android.dx.dex.*F*Franslator.translate0(*Franslator.java:150)
at com.android.dx.dex.*F*Franslator.translate(*Franslator.java:102)
at com.android.dx.command.dexer.Main.translateClass(Main.java:779)
at com.android.dx.command.dexer.Main.access$2700(Main.java:85)
at com.android.dx.command.dexer.Main$ClassTranslatorTask.call(Main.java:1901)
at com.android.dx.command.dexer.Main$ClassTranslatorTask.call(Main.java:1886)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
...at bytecode offset 0000002c
locals[0000]: Lcom/youth/banner/adapter/BannerAdapter;
locals[0001]: Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
locals[0002]: I
locals[0003]: I
stack[0002]: Landroid/view/View;
stack[0001]: Lcom/youth/banner/adapter/BannerAdapter;
stack[top0]: I
...while working on block 002a
...while working on method onBindViewHolderLandroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
...while processing onBindViewHolder (Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
...while processing com/youth/banner/adapter/BannerAdapter.class
1 error; aborting
错误: 建立所指定的安卓APK输出文件"E:\火山安卓\banner封装学习\_int\banner封装学习\debug\linker\banner.apk"失败
--- 项目"banner封装学习"编译或连接失败. 编译过程中共遇到了 0 个警告, 2 个错误.