在Appcelerator的Andr​​oid SDK中的 [英] Android SDK's on Appcelerator

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

问题描述

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


  • 重新安装工作室无数次

  • 重新安装Appcelerator的无数次

  • 删除了所有SDK的从Appcelerator的

  • 安装的Andr​​oid开发者SDK的无数次

我想我已经通过各种排列依然没有工作的开发环境了。我preFER与ST2使用CLI,而不是作为工作室,我觉得它笨重,只是节点的重了些与我的屏幕上经常MacOSX的沙滩球攻击通话。

所以我的主要问题还是出在SDK中的。我设法安装模拟器和Appcelerator的指点来似乎什么是正确的位置的完整列表。见下图:

Appcelerator的工作室的Andr​​oid软件开发工具包

我在正确的轨道上没有更多的崩溃或挂起UPS试图指向的目录。所以对我来说下一步就是安装Genymotion建立一个模拟器,然后得到它出现在工作室 - 这是我的混乱开始的地方。

Genymotion安装模拟器建立和GenyMotion钛配置设置为true。没有崩溃。当我这样做我的工作室模拟器似乎只是消失。

哪里是我的模拟器

于是Studio和仿真器立即重新启动再次出现。所以,我的下一步就是做一个CLI构建,看看Android的模拟器可用,看看我们是否得到相同的列表作为工作室(我们应该做的正确,因为这工作室仅仅是一个GUI界面CLI)。终端打开,导航到该目录,然后键入:

 `APPC TI构建-p android`

在CLI presents我仿真器的列表:

WTF!完全不同的一套模拟器

现在我完全糊涂了,这是我觉得我所有的问题都来自哪里。现在,如果我尝试运行Genymotion模拟器(7号在此列表中)它会走过场,但从未启动模拟器。我读过你所需要的模拟器已经打开,但如果我这样做,那么CLI只是挂在上面构建命令不执行任何操作。

任何人都可以给我一些轻。

下面是从跟踪的一些环境设置。

 `操作系统
NAME =的Mac OS X
版本= 10.11.2
建筑= 64
#处理器= 4
内存= 17179869184Node.js的
Node.js的版本= 0.12.7
NPM版本2.11.3 =钛CLI
CLI版本5.0.5 =钛SDK
SDK版本= 5.1.2.GA
SDK路径= /用户/< MY_USER_HERE> /库/ Application Support /钛/ mobilesdk / OSX / 5.1.2.GA
目标平台= android`


解决方案

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

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

I have

  • Reinstalled Studio numerous times
  • Reinstalled Appcelerator numerous times
  • Removed all SDK's from Appcelerator
  • Installed Android Developer SDK's numerous times

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.

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:

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 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.

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`

The CLI presents me with a list of emulators:

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.

Can anyone offer me some light.

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`

解决方案

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的Andr​​oid SDK中的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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