我正在从Titanium为Android / iPhone创建应用。 我发布了一个APK,它在Android 4.2.2上工作正常但由于某种原因我不能在旧设备上安装它。 我使用谷歌android api 2.2发布。 这是XML:
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<property name="ti.android.runtime">v8</property>
<sdk-version>3.2.2.GA</sdk-version>
<analytics>false</analytics>
<deployment-targets>
<target device="tizen">false</target>
<target device="mobileweb">false</target>
<target device="iphone">true</target>
<target device="ipad">false</target>
<target device="android">true</target>
<target device="blackberry">false</target>
</deployment-targets>
<id>lorem Ipsum</id>
<name>lorem Ipsum</name>
<version>2.6</version>
<publisher>lorem Ipsum</publisher>
<url>lorem Ipsum</url>
<description>not specified</description>
<copyright>lorem Ipsum</copyright>
<icon>appicon.png</icon>
<persistent-wifi>false</persistent-wifi>
<prerendered-icon>false</prerendered-icon>
<statusbar-style>default</statusbar-style>
<statusbar-hidden>false</statusbar-hidden>
<fullscreen>false</fullscreen>
<navbar-hidden>true</navbar-hidden>
<guid>ed5eb571-eab4-4b3b-8b97-a10b19404318</guid>
<iphone>
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
<orientations device="ipad">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
</iphone>
<modules/>
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:installLocation="preferExternal"
android:versionCode="8" android:versionName="2.6">
<uses-sdk android:maxSdkVersion="19"
android:minSdkVersion="16" android:targetSdkVersion="19"/>
<supports-screens android:anyDensity="false"
android:largeScreens="true" android:normalScreens="true"
android:resizeable="true" android:smallScreens="true"/>
<application>
<activity
android:configChanges="keyboardHidden|orientation"
android:label="lorem Ipsum"
android:name=".lorem Ipsum"
android:screenOrientation="portrait" android:theme="@style/Theme.Titanium">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
</android>
</ti:app>
我做错了吗? 我在设备上遇到的错误是:&#34;解析包时出现问题&#34;。 我注意到的另一件事是apt似乎没有图标,即使它在新设备上有一个图标。
答案 0 :(得分:2)
根据Titanium兼容性矩阵,SDK 3.2.0+似乎不支持Android版本,您在SDK版本中显示3.2.2.GA.
为了支持Android 2.2(API 8),您必须将Titanium SDK版本降至3.1.0。