鍍金池/ 問(wèn)答/網(wǎng)絡(luò)安全  HTML/ 利用HBuild 打包vue項(xiàng)目APP,一直失敗

利用HBuild 打包vue項(xiàng)目APP,一直失敗

打包好多次了一直報(bào)錯(cuò)。。。我是直接打包的dist包。
config下面的index 我是更改過(guò)的

clipboard.png
按道理是沒(méi)問(wèn)題的,結(jié)果打包安卓的APK 一直失敗
打包IOS的APK 可以成功,求問(wèn)
打包報(bào)錯(cuò)代碼 如下,

manifest.plus.distribute.splashscreen.android.mdpi;manifest.plus.distribute.splashscreen.android.ldpi;
Buildfile: 安裝包制作目錄build.xml

Copy_Ressource:

 [echo] Copy app resource. 
 [echo]         
 [echo] assets
 [echo]         

init:

 [echo] Init output directory.....
 [echo]         

dirs:

 [echo] 
 [echo]             Creating output directories if needed...
 [echo]         
[mkdir] Created dir: 安裝包制作目錄bin/classes

resource-src:

 [echo] 
 [echo]             Generating R.java / Manifest.java from the resources...
 [echo]         
 [echo] 
 [echo]             outdir-r path: src
 [echo]         
 [echo] 
 [echo]             aapt path: SDK目錄build-tools/android-4.4/aapt
 [echo]         

aidl:

 [echo] 
 [echo]             Compiling aidl files into Java classes...
 [echo]         

compile:

 [echo] 
 [echo]             outdir-classes = bin/classes
 [echo]              android-jar = SDK目錄platforms/android-19/android.jar
 [echo]              external = libs
 [echo]         
[javac] 安裝包制作目錄build.xml:182: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to 安裝包制作目錄bin/classes

dex:

 [echo] 
 [echo]             Converting compiled files and external libraries into bin/classes.dex...
 [echo]         

package-res:

package-res-and-assets:

 [echo] 
 [echo]             Packaging resources and assets...
 [echo]         
 [exec]       Unable to add 'assets/apps/H5BD35887/www/dist/static/css/app.2a7e5f16b9dc370366990c138a667c55.css.gz': file already in archive (try '-u'?)
 [exec] ERROR: unable to process assets while packaging 'bin/Pandora.ap_'
 [exec] ERROR: packaging of 'bin/Pandora.ap_' failedBUILD FAILED

安裝包制作目錄build.xml:249: The following error occurred while executing this line:
安裝包制作目錄build.xml:205: exec returned: 1

Total time: 1 minute 8 seconds
BuildConfigure Failed 20015

回答
編輯回答
終相守

productionSourceMap: true, 把你的改成true
productionGzip: false, 把你的改成false
就可以了。
和樓主遇到一樣的問(wèn)題。就是這樣的解決的

2018年7月5日 18:17
編輯回答
神曲

兄弟 問(wèn)題解決了嗎? 我和你一模一樣的問(wèn)題!!

2017年6月30日 12:04
編輯回答
朽鹿

試過(guò)了 沒(méi)用,還是打包失敗, 打包出來(lái)的頁(yè)面可以正常訪問(wèn),但是上傳至服務(wù)器打包成APP ,就一直失敗

2018年6月25日 19:04