uni-app 本地打包报错
uni-app 本地打包报错
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Windows | Win7 | HBuilderX |
产品分类:uniapp/App
PC开发环境操作系统:Windows
手机系统:Android
手机系统版本号:Android 11
手机厂商:小米
手机机型:mi10
页面类型:vue
打包方式:离线
项目创建方式:HBuilderX
示例代码:
[Info] 正在制作apk安装包…
[Info] I: Using Apktool 2.4.1 on UNI.com.qh.jkt_cm.apk
[Info] I: Loading resource table…
[Info] I: Decoding AndroidManifest.xml with resources…
[Info] I: Loading resource table from file: C:\Users\Administrator\AppData\Local\apktool\framework\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 raw classes2.dex file…
[Info] I: Copying raw assets/39285EFA.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 copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-hdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-hdpi/icon.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-hdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-hdpi/icon.png] success.
[Info] begin copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-xhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xhdpi/icon.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-xhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xhdpi/icon.png] success.
[Info] begin copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-xxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xxhdpi/icon.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-xxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xxhdpi/icon.png] success.
[Info] begin copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-xxxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xxxhdpi/icon.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/icon-android-xxxhdpi.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xxxhdpi/icon.png] success.
[Info] begin copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/splash-android-hdpi.9.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-hdpi/splash.9.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/splash-android-hdpi.9.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-hdpi/splash.9.png] success.
[Info] begin copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/splash-android-xhdpi.9.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xhdpi/splash.9.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/splash-android-xhdpi.9.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xhdpi/splash.9.png] success.
[Info] begin copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/splash-android-xxhdpi.9.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xxhdpi/splash.9.png]…
[Info] copy file[D:/phpStudy/PHPTutorial/jingjiren/app_code/unpackage/cache/wgt/UNI.com.qh.jkt/.manifest/splash-android-xxhdpi.9.png] to [C:/Users/Administrator/AppData/Local/HBuilder X/UNI.com.qh.jkt/packge_cache/NONE/UNI.com.qh.jkt_cm/res/drawable-xxhdpi/splash.9.png] success.
[Info] begin update files to apk…
[Info] I: Using Apktool 2.4.1
[Info] I: Copying C:\Users\Administrator\AppData\Local\HBuilder X__UNI*.com.qh.jkt\packge_cache__NONE**__UNI**.com.qh.jkt_cm classes.dex file…
[Info] I: Copying C:\Users\Administrator\AppData\Local\HBuilder X__UNI**.com.qh.jkt\packge_cache__NONE**__UNI**.com.qh.jkt_cm classes2.dex file…
[Info] I: Checking whether resources has changed…
[Info] I: Building resources…
[Error] W: ERROR: 9-patch image C:\Users\Administrator\AppData\Local\HBuilder X__UNI**.com.qh.jkt\packge_cache__NONE**__UNI**.com.qh.jkt_cm\res\drawable-hdpi\splash.9.png malformed.
[Error] W: No marked region found along edge.
[Error] W: Found along top edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\Administrator\AppData\Local\HBuilder X__UNI**.com.qh.jkt\packge_cache__NONE**__UNI*.com.qh.jkt_cm\res\drawable-hdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\Administrator\AppData\Local\HBuilder X*UNI*.com.qh.jkt\packge_cache*NONE**UNI*.com.qh.jkt_cm\res\drawable-xxhdpi\splash.9.png malformed.
[Error] W: No marked region found along edge.
[Error] W: Found along top edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\Administrator\AppData\Local\HBuilder X*UNI*.com.qh.jkt\packge_cache*NONE**UNI*.com.qh.jkt_cm\res\drawable-xxhdpi\splash.9.png
[Error] W: ERROR: 9-patch image C:\Users\Administrator\AppData\Local\HBuilder X*UNI*.com.qh.jkt\packge_cache*NONE**UNI*.com.qh.jkt_cm\res\drawable-xhdpi\splash.9.png malformed.
[Error] W: No marked region found along edge.
[Error] W: Found along top edge.
[Error] W: ERROR: Failure processing PNG image C:\Users\Administrator\AppData\Local\HBuilder X*UNI*.com.qh.jkt\packge_cache*NONE**UNI*.com.qh.jkt_cm\res\drawable-xhdpi\splash.9.png
[Error] brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_6686695444426494182.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 26, --version-code, 1010, --version-name, 1.0.10, --no-version-vectors, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL4345169634358724739.tmp, -e, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL4053571603861786691.tmp, -0, arsc, -I, C:\Users\Administrator\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Administrator\AppData\Local\HBuilder X*UNI*.com.qh.jkt\packge_cache*NONE**UNI*.com.qh.jkt_cm\res, -M, C:\Users\Administrator\AppData\Local\HBuilder X*UNI*.com.qh.jkt\packge_cache*NONE**UNI*.com.qh.jkt_cm\AndroidManifest.xml]
[Error] Apk tool compile package to apk failed
[Error] 制作结果:Failed.
更多关于uni-app 本地打包报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
没有,最后用的云打包
回复 普通人6: 我是切换到上一个版本解决了这个问题,把编译器

