Appcelerator 上的 Android SDK [英] Android SDK's on Appcelerator

查看:28
本文介绍了Appcelerator 上的 Android SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经有一个带有 Genymotion 和 tishadow 的完整工作系统.

I used to have a full working system with Genymotion and tishadow.

我有

  • 多次重新安装 Studio
  • 多次重新安装 Appcelerator
  • 从 Appcelerator 中删除了所有 SDK
  • 多次安装 Android Developer SDK

我想我已经经历了所有的排列,但仍然没有工作的开发环境.我更喜欢将 CLI 与 ST2 一起使用,而不是 Studio,因为我发现它笨重,而且在我的屏幕上使用常规 MacOSX 沙滩球攻击时,节点调用有点重.

I think I have gone through every permutation and still no working development environment. I prefer to use CLI with ST2 rather than Studio as I find it clunky and just a bit heavy of node calls with regular MacOSX beach ball attacks on my screen.

所以我的主要问题仍然在于 SDK.我设法获得了安装的模拟器的完整列表,并且 Appcelerator 指向了正确的位置.见下图:

So my main issue still lies with the SDK's. I managed to get a full list of emulators installed and Appcelerator pointing to what would appear to be the right place. See the image below:

我在正确的轨道上没有更多的崩溃或挂断试图指向目录.所以我的下一步是安装 Genymotion,设置一个模拟器,然后让它出现在 Studio 中 - 这就是我的困惑开始的地方.

I am on the right track no more crashes or hang ups trying to point to the directory. So next step for me was to install Genymotion set up an emulator and then get it to appear in Studio - this is where my confusion begins.

安装了 Genymotion 并设置了模拟器,GenyMotion 的钛配置设置为 true.没有崩溃.当我这样做时,我在 Studio 中的模拟器似乎消失了.

Genymotion installed and emulator set up and titanium config for GenyMotion set to true. No crashes. As I did this my emulators in Studio appeared to just disappear.

因此重新启动 Studio 和模拟器现在再次出现.所以我的下一步是进行 cli 构建,看看有哪些 Android 模拟器可用,看看我们是否得到与 Studio 相同的列表(我们应该做对,因为这个 Studio 只是 CLI 的 GUI 界面).打开终端,导航到目录,然后输入:

So restart of Studio and the emulators now appear again. So my next step is to do a cli build and see what Android emulators are available and to see if we get the same list as on Studio (We should do right as this Studio is just a GUI interface to CLI). Terminal opened, navigate to the directory and then type:

`appc ti build -p android`

CLI 向我展示了一个模拟器列表:

The CLI presents me with a list of emulators:

现在我完全糊涂了,这就是我认为我所有问题的来源.现在,如果我尝试运行 Genymotion 模拟器(此列表中的第 7 个),它会通过动作但永远不会启动模拟器.我已经读到您需要打开模拟器,但如果我这样做了,那么 CLI 就会挂起上面的构建命令,什么也不做.

Now I'm completely confused and this is where I think all my problems are coming from. Now if I try to run Genymotion emulator (Number 7 in this list) it goes through the motions but never launches the emulator. I've read that you need the emulator open already but if I do that then the CLI just hangs on with the build command above and does nothing.

谁能给我点灯.

以下是跟踪中的一些环境设置.

Below are some environment settings from the trace.

`Operating System
Name                        = Mac OS X
Version                     = 10.11.2
Architecture                = 64bit
# CPUs                      = 4
Memory                      = 17179869184

Node.js
Node.js Version             = 0.12.7
npm Version                 = 2.11.3

Titanium CLI
CLI Version                 = 5.0.5

Titanium SDK
SDK Version                 = 5.1.2.GA
SDK Path                    = /Users/<MY_USER_HERE>/Library/Application      Support/Titanium/mobilesdk/osx/5.1.2.GA
Target Platform             = android`

推荐答案

您在使用 Genymotion 2.6 吗?尚不支持此功能.您可以在相关票证的评论中找到一个简单的解决方法:https://jira.appcelerator.org/browse/TIMOB-20130

Are you using Genymotion 2.6? This is not supported yet. You can find a simple workaround in the comments on the related ticket: https://jira.appcelerator.org/browse/TIMOB-20130

这篇关于Appcelerator 上的 Android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆