Using HBuild to package vue project APP, has been a failure.

it has been packed many times and has been reported wrong all the time. I packed the dist bag directly.
I have changed the index under config

clipboard.png
according to reason, there is no problem. As a result, the APK packaged with Android has failed all the time.
the APK packaged with IOS can be successful. Ask
the error code for packing is as follows,

manifest.plus.distribute.splashscreen.android.mdpi;manifest.plus.distribute.splashscreen.android.ldpi;
Buildfile: installation package production directory 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: SDKbuild-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 = SDKplatforms/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

installation package production directory build.xml:249: The following error occurred while executing this line:
installation package production directory build.xml:205: exec returned: 1

Total time: 1 minute 8 seconds
BuildConfigure Failed 20015

Mar.04,2021

productionSourceMap: true, change yours to true
productionGzip: false, and change yours to false
.
has the same problem as the landlord. This is the solution


tried useless, or packaging failed, the packaged page can be accessed normally, but uploaded to the server packaged into APP, it has been a failure


brother problem solved? I have exactly the same problem as you!

Menu