起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3087|回复: 7

[结贴] v3.1 更换APP图标

[复制链接]

57

主题

375

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
QQ
发表于 2015-4-15 10:31:32 | 显示全部楼层 |阅读模式
版本: BeX5V3.1 小版本号:
数据库: Oracle 服务器操作系统: Windows 应用服务器:
客户端操作系统: 浏览器:
打包APP,想更换图标,出现错误 :方法:
1.更改Native/项目/platforms/android/res下的图标。
2.再重新生成APP的时候 报错。错误信息如下 :


Build started.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "path" started.
Task "path" finished.
Task "typedef" started.
Task "typedef" finished.
Target "saveLastPackConfig" started.
Task "propertyfile" started.
Updating property file: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build.properties
Task "propertyfile" finished.
Target "saveLastPackConfig" finished.
Target "compileUI" started.
Task "delete" started.
Deleting directory D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\www
Task "delete" finished.
Task "mkdir" started.
Created dir: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\www
Task "mkdir" finished.
Task "compileUI" started.
Task "compileUI" finished.
Task "propertyfile" started.
Updating property file: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build.properties
Task "propertyfile" finished.
Target "compileUI" finished.
Target "processWWW" started.
Task "delete" started.
Deleting directory D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\www
Task "delete" finished.
Task "mkdir" started.
Created dir: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\www
Task "mkdir" finished.
Task "processWWW" started.
Task "processWWW" finished.
Task "propertyfile" started.
Updating property file: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build.properties
Task "propertyfile" finished.
Target "processWWW" finished.
Target "packAndroid" started.
Task "mkdir" started.
Task "mkdir" finished.
Task "delete" started.
Deleting directory D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android
Task "delete" finished.
Task "mkdir" started.
Created dir: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android
Task "mkdir" finished.
Task "delete" started.
Task "delete" finished.
Task "condition" started.
Task "condition" finished.
Task "java" started.
I: Using Apktool 2.0.0-RC3 on x5.apk.t
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Task "java" finished.
Task "copy" started.
Copying 13 files to D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res
Task "copy" finished.
Task "mkdir" started.
Task "mkdir" finished.
Task "copy" started.
Task "copy" finished.
Task "apk" started.
Task "apk" finished.
Task "java" started.
I: Using Apktool 2.0.0-RC3 on x5
I: Smaling smali folder into classes.dex...
I: Building resources...
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\drawable\icon.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\drawable-ldpi\icon.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\drawable-mdpi\icon.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\drawable-hdpi\icon.png
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\drawable-xhdpi\icon.png
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:5: error: Public symbol drawable/bubble declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:6: error: Public symbol drawable/bubble_arrow_up declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:7: error: Public symbol drawable/color_button_background declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:8: error: Public symbol drawable/color_picker_advanced_select_handle declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:9: error: Public symbol drawable/color_picker_border declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:10: error: Public symbol drawable/dropdown_popup_background declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:11: error: Public symbol drawable/dropdown_popup_background_down declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:12: error: Public symbol drawable/dropdown_popup_background_up declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:23: error: Public symbol drawable/ic_action_next_item declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:24: error: Public symbol drawable/ic_action_previous_item declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:25: error: Public symbol drawable/ic_action_remove declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:13: error: Public symbol drawable/ic_menu_search_holo_light declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:14: error: Public symbol drawable/ic_menu_share_holo_light declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:15: error: Public symbol drawable/icon declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:16: error: Public symbol drawable/launcher_icon declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:17: error: Public symbol drawable/ondemand_overlay declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:18: error: Public symbol drawable/pageinfo_warning_major declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:22: error: Public symbol drawable/screen declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:19: error: Public symbol drawable/share_via_barcode declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:20: error: Public symbol drawable/shopper_icon declared here is not defined.
D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\values\public.xml:21: error: Public symbol drawable/splash declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_5533877158839392174.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 19, --version-code, 50301, --version-name, 5.3.1, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL5764709799726013481.tmp, -0, arsc, -I, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\framework\1.apk, -S, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res, -M, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
        at brut.androlib.Androlib.buildResources(Androlib.java:374)
        at brut.androlib.Androlib.build(Androlib.java:277)
        at brut.androlib.Androlib.build(Androlib.java:250)
        at brut.apktool.Main.cmdBuild(Main.java:225)
        at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_5533877158839392174.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 19, --version-code, 50301, --version-name, 5.3.1, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL5764709799726013481.tmp, -0, arsc, -I, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\framework\1.apk, -S, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res, -M, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:488)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_5533877158839392174.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 19, --version-code, 50301, --version-name, 5.3.1, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL5764709799726013481.tmp, -0, arsc, -I, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\framework\1.apk, -S, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res, -M, D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:482)
        ... 6 more
****ERROR****: Task "java" finished with error.
****ERROR****: Target "packAndroid" finished with error.
****ERROR****: Build finished with error.
****ERROR**** 错误信息: Java returned: 1
****ERROR**** 调用栈:
        at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at Pack.execTask(Pack.java:47)
        at Pack.pack(Pack.java:94)
        at Pack.execute(Pack.java:100)
        at com.justep.ui.JavaServer.runJava(Unknown Source)
        at com.justep.ui.JavaServer.doJ(Unknown Source)
        at com.justep.ui.JavaServer.service(Native Method)
        at com.justep.ui.servlet.MainServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1666)
        at com.justep.portal.filter.RedirectFilter.doFilter(Unknown Source)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1645)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:564)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98)
        at org.eclipse.jetty.server.Server.handle(Server.java:461)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
        at java.lang.Thread.run(Thread.java:745)


31

主题

1856

帖子

3070

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3070
发表于 2015-4-15 10:54:27 | 显示全部楼层
libpng error: Not a PNG file
ERROR: Failure processing PNG image D:\BeX5_V3.1_XSGS\model\Native\xsgs_外网\build\android\x5\res\drawable-xhdpi\icon.png


确认你的图标是png格式
回复 支持 反对

使用道具 举报

57

主题

375

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
QQ
 楼主| 发表于 2015-4-15 10:59:33 | 显示全部楼层
这不是png格式 吗
360桌面截图20150415105809.jpg
回复 支持 反对

使用道具 举报

31

主题

1856

帖子

3070

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3070
发表于 2015-4-15 11:22:59 | 显示全部楼层
你看错误,你的图片应该不是png,只是文件名叫png
回复 支持 反对

使用道具 举报

57

主题

375

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
QQ
 楼主| 发表于 2015-4-15 11:29:37 | 显示全部楼层
wsh 发表于 2015-4-15 11:22
你看错误,你的图片应该不是png,只是文件名叫png

没有问题啊,png是文件扩展名啊。
360桌面截图20150415112801.jpg
回复 支持 反对

使用道具 举报

31

主题

1856

帖子

3070

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3070
发表于 2015-4-15 13:29:05 | 显示全部楼层
我的意思是,你要确认你的文件是不是png格式,错误信息提示就是说你的图片不是png格式

你的图片怎么来的? ps? 保存时确认选的是png格式?
回复 支持 反对

使用道具 举报

31

主题

1856

帖子

3070

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3070
发表于 2015-4-15 13:30:56 | 显示全部楼层
这样你直接用默认带的图片,然后在windows下点右键编辑(需要win7以及以上版本,xp不支持编辑png),随便加点东西在保存,这样打包看是否出错和安装后看图标是否替换了
回复 支持 反对

使用道具 举报

57

主题

375

帖子

1515

积分

金牌会员

Rank: 6Rank: 6

积分
1515
QQ
 楼主| 发表于 2015-4-15 14:40:12 | 显示全部楼层
wsh 发表于 2015-4-15 13:30
这样你直接用默认带的图片,然后在windows下点右键编辑(需要win7以及以上版本,xp不支持编辑png),随便加 ...

看来确实是这样,,我又把文件另存为png格式 ,重新生成app。现在好了
结贴。。谢谢。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-24 03:58 , Processed in 0.127116 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表