无法打包应用程序时,Android的Menifest部分变成 [英] Failed to package application when Android Menifest Portion is changed to
问题描述
我开始了新的测试程序,并从Android-holo-colors.com下载的河洛主题(名称JSTheme)
并替换/ res文件夹,在该下载的zip文件res文件夹的内容。
I started a new test app, and downloaded a Holo Theme (by name JSTheme) from Android-holo-colors.com And replaced the /res folder contents with the res folder in that downloaded zip file.
但是,当我更换tiapp.xml行
But when I replace the line in tiapp.xml
<android xmlns:android="http://schemas.android.com/apk/res/android" />
到这一点,那么编译没有发生。然后,它显示:
[错误]:无法打包的应用程序:
[错误]应用程序安装过程异常终止。进程退出值为1
to this, then the compile is not happening. It shows then: [ERROR] : Failed to package application: [ERROR] Application Installer abnormal process termination. Process exit value was 1
<android xmlns:android="http://schemas.android.com/apk/res/android">
<tool-api-level>14</tool-api-level>
<manifest>
<application android:theme="@style/Theme.JSTheme"/>
<uses-sdk android:targetSdkVersion="14"/>
</manifest>
</android>
当我恢复回来的线上面相同
And when I restore back the lines above to same
然后应用程序被编译,一切工作。
Then the app gets compiled and everything works.
我是不是做错了什么?
当我恢复回来的线上面相同
And when I restore back the lines above to same
<android xmlns:android="http://schemas.android.com/apk/res/android" />
然后应用程序被编译,一切工作。
Then the app gets compiled and everything works.
我是不是做错了什么?
推荐答案
二不支持霍洛主题了,请确保您选择Android-holo-colors.com
Titanium doesn't support Holo themes anymore, make sure that you select 'appcompat' on the compatibility section of Android-holo-colors.com
另外,我发现最好在网站上只使用小写字母,然后利用在tiapp.xml的第一个字母
Also, i found it best to use only lower case letters on the website and then capitalise the first letter in tiapp.xml
例如。
在Android-holo-colors.com其命名为:jstheme
e.g. on Android-holo-colors.com name it: jstheme
然后tiapp.xml:&lt;应用机器人:主题=@风格/ Theme.Jstheme/&GT;
then in tiapp.xml: <application android:theme="@style/Theme.Jstheme"/>
这篇关于无法打包应用程序时,Android的Menifest部分变成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!