【问题标题】:Titanium Studio won't recognize V8 Android?Titanium Studio 无法识别 V8 Android?
【发布时间】:2012-11-17 23:30:23
【问题描述】:

每次我尝试在 Titanium Studio 中将程序作为 V8 Android 运行时,都会收到以下错误消息:

This launch uses a V8 Android Runtime, which require Android 2.2 SDK and above. 
Please edit your launch configuration to select a compatible SDK.

我可以将它作为 Rhino 程序运行,但如果可能的话,我希望 V8 引擎的速度更快。我正在尝试将程序作为 Android 2.2 运行,并且我拥有最新的 SDK。知道发生了什么吗?

tiapp.xml(略微精简)

<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <deployment-targets>
        <target device="mobileweb">true</target>
        <target device="iphone">false</target>
        <target device="ipad">false</target>
        <target device="android">true</target>
        <target device="blackberry">false</target>
    </deployment-targets>
    <sdk-version>2.1.4.GA</sdk-version>
    <publisher>pearsonartphoto</publisher>
    <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>false</navbar-hidden>
    <analytics>true</analytics>
    <property name="ti.ui.defaultunit">system</property>
    <iphone>
        <orientations device="iphone">
            <orientation>Ti.UI.PORTRAIT</orientation>
        </orientations>
        <orientations device="ipad">
            <orientation>Ti.UI.PORTRAIT</orientation>
            <orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
            <orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
            <orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
        </orientations>
    </iphone>
    <android xmlns:android="http://schemas.android.com/apk/res/android"/>
    <mobileweb>
        <precache/>
        <splash>
            <enabled>true</enabled>
            <inline-css-images>true</inline-css-images>
        </splash>
        <theme>default</theme>
    </mobileweb>
    <modules>
        <module platform="commonjs" version="2.3.0">ti.cloud</module>
    </modules>
</ti:app>

我的配置:

  • Windows 7 64 位
  • 最新的 Android SDK(Rev 21 和 API 17)64 位
  • Titanium Studio 2.1.4 GA

【问题讨论】:

  • 您的 tiapp.xml 是否设置为 2.1.4 SDK? &lt;sdk-version&gt;2.1.4.GA&lt;/sdk-version&gt;
  • &lt;sdk-version&gt;2.1.4.GA&lt;/sdk-version&gt; 检查。

标签: android titanium


【解决方案1】:

在 Titanium Studio 中,进入 Run->Run Configurations...

从 Android Emulator 项目列表中,找到有问题的项目并将其突出显示。在右侧,确保 Android API 至少为 2.2 或更高版本。

【讨论】:

  • 这就是问题所在。感谢您的帮助!
【解决方案2】:

我遇到了同样的问题,我通过以下步骤解决了它

  1. 转到您的 Titanium 首选项(窗口 -> 首选项)。
  2. 选择如图所示的 Titanium 选项。
  3. 将默认 Android SDK 设置为 Google APIs Android 2.2
  4. 选择您的屏幕尺寸
  5. 按确定
  6. 重启 Titanium 工作室
  7. 使用 android 模拟器运行您的应用程序

如果没有解决你的问题,请检查你的android SDK

  1. 转到您的 andorid sdk 位置(例如:C:\Program Files\Android\android-sdk)
  2. 打开 AVD 管理器
  3. 创建一个新的虚拟设备
  4. 选择目标设备为 Android 2.2 API Level 8
  5. 试试您的新虚拟设备

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-27
    • 2013-05-10
    • 2021-05-06
    • 2019-01-28
    相关资源
    最近更新 更多