4***@qq.com
4***@qq.com
  • 发布:2022-02-10 09:13
  • 更新:2022-02-10 09:26
  • 阅读:1308

【报Bug】新建Hello uni-app项目,打包失败

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 3.3.11

手机系统: Android

手机系统版本号: Android 10

手机厂商: 华为

手机机型: mete20x

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

[Info] 正在制作apk安装包...

[Info] I: Using Apktool 2.4.1 on UNI6B3E089_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: C:\Users\TD006\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk
[Info] I: Regular manifest package...
[Info] I: Decoding file-resources...
[Info] I: Decoding values / XMLs...
[Info] I: Copying raw classes.dex file...
[Info] I: Copying assets and libs...
[Info] I: Copying unknown files...
[Info] I: Copying original files...
[Info] begin replace files to apk...
[Info] begin update files to apk...
[Info] I: Using Apktool 2.4.1
[Info] I: Copying C:\Users\TD006\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__6B3E089\packge_cache__NONE\UNI__6B3E089_cm classes.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: fakeLogOpen(/dev/log_crash) failed
[Error] W: fakeLogOpen(/dev/log_stats) failed
[Error] W: fakeLogOpen(/dev/log_crash) failed
[Error] W: fakeLogOpen(/dev/log_stats) failed
[Info] I: Copying libs... (/lib)
[Info] I: Building apk file...
[Info] I: Copying unknown files/dir...
[Info] I: Built apk...
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

操作步骤:

1

预期结果:

1

实际结果:

1

bug描述:

[Info] 正在制作apk安装包...

[Info] I: Using Apktool 2.4.1 on UNI6B3E089_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: C:\Users\TD006\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk
[Info] I: Regular manifest package...
[Info] I: Decoding file-resources...
[Info] I: Decoding values / XMLs...
[Info] I: Copying raw classes.dex file...
[Info] I: Copying assets and libs...
[Info] I: Copying unknown files...
[Info] I: Copying original files...
[Info] begin replace files to apk...
[Info] begin update files to apk...
[Info] I: Using Apktool 2.4.1
[Info] I: Copying C:\Users\TD006\AppData\Local\HBuilder X\AndroidPackWork\cache__UNI__6B3E089\packge_cache__NONE\UNI__6B3E089_cm classes.dex file...
[Info] I: Checking whether resources has changed...
[Info] I: Building resources...
[Error] W: fakeLogOpen(/dev/log_crash) failed
[Error] W: fakeLogOpen(/dev/log_stats) failed
[Error] W: fakeLogOpen(/dev/log_crash) failed
[Error] W: fakeLogOpen(/dev/log_stats) failed
[Info] I: Copying libs... (/lib)
[Info] I: Building apk file...
[Info] I: Copying unknown files/dir...
[Info] I: Built apk...
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed. Reason:

2022-02-10 09:13 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

某些情况下,首次提交安心打包,您可能会遇到下列错误:

[Error] W: fakeLogOpen(/dev/log_crash) failed    
[Error] W: fakeLogOpen(/dev/log_stats) failed    
[Error] W: fakeLogOpen(/dev/log_stats) failed    
[Info] I: Copying libs... (/lib)    
[Info] I: Building apk file...    
[Info] I: Copying unknown files/dir...    
[Info] I: Built apk...    
[Error] Apk tool compile package to apk failed    
[Info] 制作结果:Failed. Reason:

解决方法: 删除unpackage/dist目录下的内容 重新提交安心打包,或者尝试云打包

该问题目前已经被锁定, 无法添加新回复