我在“启动图片(splash)配置”中明明是用的png图,但是打包的时候总是失败,且提示我上次的图片不是png的,这是问什么?
以下是打包日志:
安装包制作开始
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] libpng error: Not a PNG file
[exec] ERROR: Failure processing PNG image res/drawable-ldpi/splash.png
[exec] libpng error: Not a PNG file
[exec] ERROR: Failure processing PNG image res/drawable-mdpi/splash.png
[exec] libpng error: Not a PNG file
[exec] ERROR: Failure processing PNG image res/drawable-xhdpi/splash.png
[exec] libpng error: Not a PNG file
[exec] ERROR: Failure processing PNG image res/drawable-xxhdpi/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/dcloud_loadingview.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/longding_bg').
[exec] res/layout/dcloud_loadingview.xml:9: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/dcloud_snow_black_progress').
[exec] res/layout/dcloud_view_splash.xml:15: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/icon').
[exec] res/layout/dcloud_view_splash.xml:49: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/dcloud_snow_black_progress').
[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/loadingview.xml:2: error: Error: No resource found that matches the given name (at 'background' with value '@drawable/longding_bg').
[exec] res/layout/loadingview.xml:9: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/dcloud_snow_black_progress').
[exec] res/layout/snow_black_progress.xml:8: error: Error: No resource found that matches the given name (at 'indeterminateDrawable' with value '@drawable/dcloud_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/dcloud_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-hdpi/dcloud_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/dcloud_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/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: 12 seconds
1 个回复
BoredApe - 有问题就会有答案。
常见打包错误,请查看http://ask.dcloud.net.cn/docs/#http://ask.dcloud.net.cn/article/111安卓失败第一条