将 Android Manifest 部分更改为应用程序打包失败 [英] Failed to package application when Android Manifest Portion is changed to
问题描述
我启动了一个新的测试应用程序,并从 Android-holo-colors.com 下载了一个 Holo 主题(名为 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.
我做错了什么吗?
推荐答案
Titanium 不再支持 Holo 主题,请确保在 Android-holo-colors.com 的兼容性部分选择appcompat"
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 中:<application android:theme="@style/Theme.Jstheme"/>
then in tiapp.xml: <application android:theme="@style/Theme.Jstheme"/>
这篇关于将 Android Manifest 部分更改为应用程序打包失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!