|
版本: |
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)
|
|