打包都成功,打包基座也没问题,调试的时候改一个字就各种报错,编译又慢全是坑。测试版和正式版都一样。
有时候 关闭 IDE ,重启电脑。 偶尔正常,没一会又这样,弃坑了崩溃了,最恶心的是苹果编译一切正常放到安卓就各种报错,完全没有体会到一端代码多端通用的便利。
09:43:48.507 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider.class:
09:43:48.507 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider.class
09:43:48.507 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$$render$1.class:
09:43:48.507 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$$render$1.class
09:43:48.507 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$1.class:
09:43:48.508 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$1.class
09:43:48.508 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$2.class:
09:43:48.508 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$2.class
09:43:48.508 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$3.class:
09:43:48.508 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$3.class
09:43:48.508 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$4.class:
09:43:48.508 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$4.class
09:43:48.509 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$5.class:
09:43:48.509 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$5.class
09:43:48.509 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$6.class:
09:43:48.509 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$6.class
09:43:48.509 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$7.class:
09:43:48.509 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$7.class
09:43:48.510 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$8.class:
09:43:48.510 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$data$8.class
09:43:48.510 Error in /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$Companion.class:
09:43:48.510 java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$Companion.class
09:43:48.510 java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$Companion.class
09:43:48.510 [plugin:uni:app-uts] 编译失败
09:43:48.510 at utsCompiler.v2Complier(utsCompiler.java:212)
09:43:48.510 at utsCompiler.Complier(utsCompiler.java:116)
09:43:48.511 at utsCompiler.handleRequest(utsCompiler.java:78)
09:43:48.511 at utsCompiler$1.consume(utsCompiler.java:58)
09:43:48.511 at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:192)
09:43:48.511 at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
09:43:48.511 at utsCompiler.JsonRpc(utsCompiler.java:65)
09:43:48.511 at main.main(main.java:19)
09:43:48.511 Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$Companion.class
09:43:48.511 at Version.fakeStackEntry(Version_3.3.20-dev+aosp1.java:0)
09:43:48.511 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:75)
09:43:48.512 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:28)
09:43:48.512 at com.android.tools.r8.internal.vj.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:27)
09:43:48.512 at com.android.tools.r8.BaseCommand$Builder.build(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:2)
09:43:48.512 at utsCompiler.v2Complier(utsCompiler.java:207)
09:43:48.512 ... 7 more
09:43:48.512 Caused by: java.nio.file.NoSuchFileException: /Users/jixiaolu/Documents/HBuilderProjects/TalkArenaNew/unpackage/cache/.app-android/class/uni/UNI6115B65/GenUniModulesTmxUiComponentsXDividerXDivider$Companion.class
09:43:48.512 at com.android.tools.r8.utils.j$a.d(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:21)
09:43:48.512 at com.android.tools.r8.BaseCommand$Builder.e(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:3)
09:43:48.512 at com.android.tools.r8.BaseCommand$Builder.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:12)
09:43:48.513 at com.android.tools.r8.BaseCommand$Builder.addProgramFiles(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:3)
09:43:48.513 at com.android.tools.r8.BaseCommand$Builder.addProgramFiles(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
09:43:48.513 at com.android.tools.r8.n.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1058)
09:43:48.513 at com.android.tools.r8.n.a(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
09:43:48.513 at com.android.tools.r8.D8Command.parse(R8_3.3.20-dev+aosp1_dd4c01853fd917497aef2d09abff533f0d25b062517ea74449d40e1778a34753:1)
3 个回复
LGG233 - others
有没有考虑过自己的问题,uniapp官方很忙的好不好,有没有好好工作,工资涨没涨【dog】
DCloud_heavensoft
因为Android最终还是要编译为kotlin的class,这是kotlin编译器报的错。
运行时,可以勾选清楚原生缓存。在原生开发里,就是clean。clean会慢一些。
uni-app x只是换个写法的原生应用。
你可以把报错工程发issues提交,我们针对一些错误,可以预拦截,让报错提示更容易看懂些
f***@qyooo.com
哎,我创建一个新项目,就加了lime-i18n,结果 运行安卓 就报Cannot create property 'code' on string 'load_transformed failed
ios又没问题,目前不适合上生产环境,太多bug了
LGG233
尝一下鲜得了,真要投入使用,先等别人踩一两年的坑再说
2024-08-13 00:29
hws007
回复 3***@qq.com: 我在踩,哈哈哈,一切顺利
2024-08-13 01:14
DCloud_heavensoft
你这应该去问lime-i18n的插件作者啊
2024-08-13 03:58