钛工作室找不到的Andr​​oid SDK(尝试多种解决方案) [英] Titanium Studio cannot find Android SDK (tried multiple solutions)

查看:176
本文介绍了钛工作室找不到的Andr​​oid SDK(尝试多种解决方案)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧。我在黔驴技穷是那种在这里。我一直想约2天,设立工作室钛识别和连接到Android SDK(Windows 7)中。我已经没有运气尝试的多个的解决方案(如下图)。这里一定是我丢失的东西。我试过谷歌和钛的开发者指南。所以这是我的最后一根稻草。任何想法?

Okay. I'm kind of at my wits' end here. I've been trying for about 2 days to set up Titanium Studio to recognize and connect to the Android SDK (Windows 7). I have tried multiple solutions (below) with no luck. There's got to be something I'm missing. I've tried Google and the Titanium developer guides. So this is my last straw. Any ideas?


  • Android SDK中主场路径为 C:\\ Android的\\ Android的SDK (避免与空间程序文件)

  • 安装了全部的SDK(3,4,7,8,10,11,12,13,14,15),他们的样品,和所有谷歌的API

  • 安装了所有的其他包

  • 新增两个的Andr​​oid的工具的和的平台工具的目录Windows的PATH变量

  • 从的平台工具的到的工具
  • 复制adb.exe 的钛喜欢看有亚行

  • 安装了电流打造钛SDK的移动设备

  • 创建Android的虚拟设备(自动真空淀积系统)的软件开发工具包7和8(钛的必要的SDK)

  • 重新启动的亚洲开发银行的服务器和计算机本身在每次更改后

  • Android SDK home path is C:\Android\android-sdk (to avoid spaces with "Program Files")
  • installed all SDKs (3,4,7,8,10,11,12,13,14,15), their Samples, and all Google APIs
  • installed all "Extras" packages
  • Added both the Android tools and platform-tools directories to Windows' PATH variable
  • Copied adb.exe from platform-tools to tools as Titanium likes to look there for adb
  • Installed the current master build of Titanium SDK for Mobile Devices
  • Created Android Virtual Devices (AVDs) for SDKs 7 and 8 (Titanium's required SDKs)
  • Restarted adb server and computer itself after each change

在钛仪表盘选项卡,在配置,我得到:

On the Titanium 'Dashboard' tab, under 'Configure', I get:

An Android SDK is missing. Titanium requires Android platforms 2.1.* and 2.2.*

当试图设置'preferences'默认的Andr​​oid SDK中的路径,我得到:

When attempting to set the default Android SDK path in 'Preferences', I get:

Could not locate the Android SDK at the given path

钛日志文件输出(对不起,有点长):

Titanium log file output (sorry, kinda long):

 !ENTRY com.appcelerator.titanium.mobile 4 0 2012-02-22 14:06:21.992
!MESSAGE (Build 1.0.0.1327639206) [ERROR]  [ERROR] The system cannot find the path specified.
[ERROR] The system cannot find the path specified.
Traceback (most recent call last):
  File "C:\Users\Stick\AppData\Roaming\Titanium\mobilesdk\win32\2.0.0.v20120221190136\android\avd.py", line 45, in <module>
    print get_avds(sdk)
  File "C:\Users\Stick\AppData\Roaming\Titanium\mobilesdk\win32\2.0.0.v20120221190136\android\avd.py", line 21, in get_avds
    for line in run.run([sdk.get_android(),'list','target'],debug=False).split("\n"):
AttributeError: 'NoneType' object has no attribute 'split'

我不知道的失踪。 Eclipse中承认一切就好了。任何建议??

I have no idea what's missing. Eclipse recognizes everything just fine. ANY suggestions??

P.S。
我注意到,当我尝试运行Android的命令,即

P.S. I've noticed that when I attempt to run 'android' commands, i.e.

android
android list targets

我得到什么似乎是一个错误:

I get what seems to be an error:

The system cannot find the path specified.

不过,命令仍然在继续,没有问题(我得到的所有目标的列表和SDK管理器中弹出)运行。我不知道是否没有任何导致该消息也引起头痛钛

However, the commands still continue to run with no issues (I get a list of all the targets and the SDK Manager pops up). I'm not sure whether or not whatever is causing that message is also causing Titanium headaches.

推荐答案

我面临完全一样的问题,但现在我已经想通了这一点,这是工作的罚款。

I was facing the exact same issue, but now I have figured this out and it was working fine.

基本上,当我安装钛Studio和我配置的Andr​​oid SDK它工作得很好,但是当我尝试执行项目有的javac没有找到的错误。在你的路径;而解决这一问题,我碰到它被提到包括邮政% %JAVA_HOME。当我这样做了Android SDK中不再由钛检测。

Basically, when I install Titanium Studio and I configure Android SDK it worked fine, but when I try to execute Project there was "javac not found" error. While resolving this issue I came across a Post where it was mentioned to include '%JAVA_HOME;%' in your Path. And when I did this the Android SDK was not longer detected by Titanium.

我删除了%JAVA_HOME%从路径变量,然后我包括Java的bin文件夹路径的路径变量,创建了一个新变量 JAVA_HOME 指向Java安装的根目录。一切都做这一步后,工作正常。

I removed the '%JAVA_HOME%' from Path Variable and then I include Java bin Folder Path to Path Variable and created a new variable 'JAVA_HOME' which points to root directory of Java installation. Everything works fine after doing this step.

我希望你现在会得到你的钛环境中运行。 : - )

I hope you will now get your Titanium Environment running. :-)

感谢。

这篇关于钛工作室找不到的Andr​​oid SDK(尝试多种解决方案)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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