繁体   English   中英

来自appcelerator钛的Android APK

[英]Android APK from appcelerator titanium

我正在从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>

我做错了吗? 我在设备上遇到的错误是:“解析包时出现问题”。 我注意到的另一件事是apt似乎没有图标,即使它在较新的设备上有一个。

根据Titanium兼容性矩阵,SDK 3.2.0+似乎不支持Android版本,您在SDK版本中显示3.2.2.GA。

http://docs.appcelerator.com/titanium/3.0/#!/guide/Titanium_Compatibility_Matrix-section-29004837_TitaniumCompatibilityMatrix-Android

为了支持Android 2.2(API 8),您必须将Titanium SDK版本降至3.1.0。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM