沫沫子
沫沫子
  • 发布:2015-09-01 17:35
  • 更新:2015-09-01 17:47
  • 阅读:1492

为什么hbuilder无法打包

分类:HBuilder
mui

为什么最新版本的 hbuilder无法打包,为什么hbuilder无法打包,为什么hbuilder无法打包,为什么hbuilder无法打包

2015-09-01 17:35 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

请问你打的是什么包呢? 有错误提示吗

沫沫子

沫沫子 (作者)

打包android的

安装包制作开始

cd 安装包制作目录[BASE] && ant
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
...................

  • BoredApe

    发一下完整的打包日志

    2015-09-01 17:51

  • 沫沫子 (作者)

    回复 BoredApe:安装包制作开始


    cd 安装包制作目录[BASE] && ant

    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:185: 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]

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.msc.c.b) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.msc.c.d) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.msc.c.e) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.a.d) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.speech.d) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.speech.e) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.speech.h) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.speech.i) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.b) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.n) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.p) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.l) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.m) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.k) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.y) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.z) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.

    [apply] warning: Ignoring InnerClasses attribute for an anonymous inner class

    [apply] (com.iflytek.ui.s) that doesn't come with an

    [apply] associated EnclosingMethod attribute. This class was probably produced by a

    [apply] compiler that did not target the modern .class file format. The recommended

    [apply] solution is to recompile the class from source, using an up-to-date compiler

    [apply] and without specifying any "-target" type options. The consequence of ignoring

    [apply] this warning is that reflective operations on this class will incorrectly

    [apply] indicate that it is not an inner class.


    package-res:


    package-res-and-assets:

    [echo]

    [echo] Packaging resources and assets...

    [echo]

    [exec] libpng error: Not a PNG file

    [exec] ERROR: Failure processing PNG image res/drawable-hdpi/splash.png

    [exec] res/layout/dcloud_dialog.xml:3: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/dcloud_dialog_shape_bg').

    [exec] res/layout/dcloud_dialog.xml:12: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/dcloud_dialog_shape').

    [exec] res/layout/image_pick_gallery.xml:25: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/image_pick_title_sel').

    [exec] res/layout/image_pick_gallery.xml:63: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/image_pick_no_media').

    [exec] res/layout/image_pick_gallery_item.xml:13: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/image_pick_no_media').

    [exec] res/layout/image_pick_gallery_item.xml:21: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/image_pick_mask').

    [exec] res/layout/snow_black_progress.xml:8: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/snow_black_progress').

    [exec] res/layout/snow_white_progress.xml:8: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/snow_white_progress').

    [exec] res/layout/stream_running_progress.xml:8: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/stream_running_progress').

    [exec] res/drawable/slt_as_ios7_cancel_bt.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_single_pressed').

    [exec] res/drawable/slt_as_ios7_cancel_bt.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_single_normal').

    [exec] res/drawable/slt_as_ios7_other_bt_bottom.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_bottom_pressed').

    [exec] res/drawable/slt_as_ios7_other_bt_bottom.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_bottom_normal').

    [exec] res/drawable/slt_as_ios7_other_bt_middle.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_middle_pressed').

    [exec] res/drawable/slt_as_ios7_other_bt_middle.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_middle_normal').

    [exec] res/drawable/slt_as_ios7_other_bt_single.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_single_pressed').

    [exec] res/drawable/slt_as_ios7_other_bt_single.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_single_normal').

    [exec] res/drawable/slt_as_ios7_other_bt_title.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_top_normal').

    [exec] res/drawable/slt_as_ios7_other_bt_title.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_top_normal').

    [exec] res/drawable/slt_as_ios7_other_bt_top.xml:4: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_top_pressed').

    [exec] res/drawable/slt_as_ios7_other_bt_top.xml:5: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/actionsheet_top_normal').

    [exec] res/drawable-hdpi/snow_black_progress.xml:2: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/snow_black').

    [exec] res/drawable-hdpi/snow_white_progress.xml:2: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/snow_white').

    [exec] res/drawable-hdpi/stream_running_progress.xml:2: error: Error: No resource found that matches the given name (at 'drawable' with value '@drawable/stream_running').


    BUILD FAILED

    安装包制作目录build.xml:250: The following error occurred while executing this line:

    安装包制作目录build.xml:208: exec returned: 1


    Total time: 33 seconds

    2015-09-01 17:55

  • BoredApe

    图片格式不对,应用图标和启动图片都要求png格式,其它格式(如jpg)会报错。

    解决方法:请检查应用的图标是否有格式问题,严格按照指定的尺寸使用png格式提交打包。

    图标文件和启动图片都需要png格式的图片,可以根据HBuilder提示添加指定尺寸的图片或者通过修改manifest文件修改图片的引用


    务必注意不能把jpg等文件改名为png来使用。

    2015-09-01 18:05

  • 沫沫子 (作者)

    回复 BoredApe:谢谢你哟,我已经知道为什么失败啦,,,

    2015-09-01 18:06

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