【问题标题】:Windows Emulators in AppceleratorAppcelerator 中的 Windows 模拟器
【发布时间】:2017-02-19 13:09:26
【问题描述】:

我正在尝试使用 appcelerator 为 Windows Mobile 创建一个应用程序,iOS 和 Android 版本已经构建。但我在 Appcelerator 中找不到任何模拟器。

他们在 Visual Studio 2015 中工作。

所以我启用了 Hyper-V 选项并让模拟器在 VS 2015 中运行,当我使用 appcelerator 运行应用程序时,它显示:无效的“--device-id”值“8-1-1”

怎么办? 提前致谢!

当我运行“appc info”时,我得到了这个(注意没有列出模拟器:

Appcelerator Command-Line Interface, version 6.1.0
Copyright (c) 2014-2017, Appcelerator, Inc.  All Rights Reserved.

Operating System
  Name                        = Microsoft Windows 10 Pro
  Version                     = 10.0.14393
  Architecture                = 32bit
  # CPUs                      = 8
  Memory                      = 15.9GB

Node.js
  Node.js Version             = 4.6.0
  npm Version                 = 2.15.9

Appcelerator CLI
  Installer                   = 4.2.8
  Core Package                = 6.1.0

Titanium CLI
  CLI Version                 = 5.0.11
  node-appc Version           = 0.2.39

Titanium SDKs
  6.0.1.GA
    Version                   = 6.0.1
    Install Location          = C:\ProgramData\Titanium\mobilesdk\win32\6.0.1.GA
    Platforms                 = android, mobileweb, windows
    git Hash                  = 265db0d
    git Timestamp             = 12/20/2016 00:54
    node-appc Version         = 0.2.39

Intel® Hardware Accelerated Execution Manager (HAXM)
  Not installed

Java Development Kit
  Not found

Genymotion
  Path                        = not found
  Genymotion Executable       = not found
  Genymotion Player           = not found
  Home                        = not found

VirtualBox
  Executable                  = not found
  Version                     = unknown

Android SDK
  Android Executable          = not found
  ADB Executable              = not found
  SDK Path                    = not found

Android NDK
  NDK Path                    = not found
  NDK Version                 = not found

Android Platforms
  None

Android Add-Ons
  None

Android Emulators
  None

Genymotion Emulators
  None

Connected Android Devices
  None

Microsoft (R) Visual Studio
  14.0 (selected)
    Path                      = C:\Program Files (x86)\Microsoft Visual Studio 14.0\
    CLR Version               = v4.0.30319
    MSBuild Version           = v14.0.25420.1
    Windows Phone SDKs        = not installed

Microsoft (R) Windows Phone SDK
  8.1 (selected)
    Path                      = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\

Windows PowerShell
    Enabled                   = yes

Windows Phone Emulators
8.1
10.0

Windows Phone Devices

Java Development Kit Issues
  ×  JDK (Java Development Kit) not installed.
     If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
     set.
     The JDK is required for must be manually downloaded and installed from
     http://appcelerator.com/jdk.

Android Issues
  ×  JDK (Java Development Kit) not found.
     If you already have installed the JDK, verify your JAVA_HOME environment variable is correctly
     set.
     The JDK can be downloaded and installed from http://appcelerator.com/jdk.

【问题讨论】:

    标签: windows-mobile appcelerator


    【解决方案1】:

    你能运行这个命令,看看是否有帮助。

    appc run -p windows --target wp-emulator --deploy-time development --device-id 8-1-1

    也请检查此线程。 Unable to run Windows Phone 8.1 Emulator on Titanium Appcelerator

    确保 appc info 输出中列出了 Windows 8.1 模拟器。看起来和这个差不多。

    Windows Phone Emulators
    8.1
      Emulator 8.1 WVGA 4 inch 512MB
        UDID                      8-1-1
      Emulator 8.1 WVGA 4 inch
        UDID                      8-1-2
      Emulator 8.1 WXGA 4.5 inch 
        UDID                      8-1-3 
      Emulator 8.1 720P 4.7 inch 
        UDID                      8-1-4 
      Emulator 8.1 1080P 5.5 inch 
        UDID                      8-1-5 
      Emulator 8.1 1080P 6 inch 
        UDID                      8-1-6
    

    【讨论】:

    • 感谢您的回复!这是我在使用您的建议后遇到的错误:2017-02-26T16:27:07.905Z |错误 |抛出了一个未捕获的异常!未找到 Windows Phone 模拟器 2017-02-26T16:27:07.908Z |错误 |未找到 Windows Phone 模拟器
    • hmm..系统中好像没有安装 windows phone 模拟器。即使你上面的 *appc info" 也没有显示 windows 8.1 模拟器列表。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-10-29
    • 1970-01-01
    • 2013-09-01
    • 1970-01-01
    相关资源
    最近更新 更多