打包好多次了一直报错。。。我是直接打包的dist包。
config下面的index 我是更改过的
按道理是没问题的,结果打包安卓的APK 一直失败
打包IOS的APK 可以成功,求问
打包报错代码 如下,
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
就可以了。
和楼主遇到一样的问题。就是这样的解决的