TitaniumStudio - Android SDK

发布于 2024-12-10 19:43:42 字数 832 浏览 0 评论 0原文

我已经尝试了我能想到的所有可能的方法,并遵循了我能找到的每个论坛列表,但仍然无济于事。我正在尝试让 Android SDK 被 TitaniumStudio 识别。我通过浏览文件夹并以这种方式运行它来安装,我尝试过命令行选项,我通过 Eclipse (它可以在其中运行)安装它,但 TitaniumStudio 仍然无法识别它。我已经重新安装了TitaniumStudio,但没有用。

要点:

  • 一切都是最新的
  • 我正在使用 Mac OSX 10.6.8
  • 我知道终端及其功能,但不知道 Unix 命令
  • 上面的内容可能很重要,因为在论坛的某个地方有人提到更改 PATH让 sdk 使用 /.bash_profile 读取 /tools 和 /platform-tools 文件夹(我认为这就是它的名字,如果我错了请纠正我)但是当我尝试通过终端运行命令来创建AVD(android create avd -n android_sdk -t 2(android_sdk 是 AVD 名称,2 指向 android-4 平台)),我收到以下错误:

-bash:android:找不到命令

请帮助我深入了解这个“-bash”以及它是什么以及如何解决这个恼人的问题! >。<


编辑:当我尝试通过终端发送 (android create avd -n android_sdk -t 2) 时,我已经得到了以下错误:

有效的 ABI:无 ABI。

错误:该平台有多个 ABI。请使用 --abi 指定一个。

这到底是什么意思?什么是 ABI? oO

I've tried every possible way I can think of and followed every forum list I can find, still to no avail. I'm trying to get the Android SDK to be recognized by TitaniumStudio. I installed in by going through the folders and running it that way, I've tried the command line option, I've installed it through Eclipse (which it works in) but TitaniumStudio STILL will not recognize it. I've reinstalled TitaniumStudio, that didn't work.

Key Points:

  • Everything is up to date
  • I'm working on Mac OSX 10.6.8
  • I know of Terminal and what it can do, but don't know Unix commands
  • The above is probably significant because somewhere in a forum someone mentioned changing the PATH for the sdk to read the /tools and /platform-tools folders using the /.bash_profile (I think that's what it's called, correct me if I'm wrong there) but when I tried to run the command via terminal to create an AVD (android create avd -n android_sdk -t 2 (android_sdk being the AVD name and 2 to point to the android-4 platform)), i get the following error:

-bash: android: command not found

Please help me with some insight into this "-bash" and what that is and how to fix this annoying problem! >.<


EDIT: I've gotten it to a point where I now get the following error when I try to send (android create avd -n android_sdk -t 2) through terminal:

Valid ABIs: no ABIs.

Error: This platform has more than one ABI. Please specify one using --abi.

What the heck does that mean and what's an ABI?? o.O

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

萌面超妹 2024-12-17 19:43:42

运行tools/android,它将启动“Android SDK Manager”,您将在其中看到列出的各种平台以及它们下面这些平台的ABI。例如,当我启动“Android SDK Manager”时,我会看到 Android 4.0 (API 14),然后在它下面是“ARM EABI v7a System Image”。检查这个包并安装它。通过运行命令“android list Targets”确认 ABI 确实已列出。

Run tools/android, It'll fire up a "Android SDK Manager" where you would see various platforms listed and the ABI's for those platforms underneath them. For example when I fire up my "Android SDK Manager", I see Android 4.0 (API 14) and then underneath it is "ARM EABI v7a System Image". Check this package and install it. Confirm that ABI's are indeed listed by running the command "android list targets".

一片旧的回忆 2024-12-17 19:43:42

请记住在更改 .bash_profile 或 .bashrc 文件时启动新终端。如果不这样做,会导致像您遇到的错误,因为更改未加载,并且新的路径和其中的所有程序都不可用。

话虽这么说,您需要将包含二进制程序的文件夹添加到您的路径中,您可以使用以下命令验证该路径是否已加载:

echo $PATH

这在 Snow Leopard 上给了我这个:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

在 OSX 中设置路径可能很困难,因为它似乎他们在发布之间已经改变了很多这种行为。

在这里查看有关设置路径变量的更详细答案:https://superuser.com/questions/69130/where-does-path-get-set-in-os-x-10-6-snow-leopard

这里还有一个描述如何让 Snow Leopard 读取用户在 home-dir 中提供的 .bashrc: http://kaspergrubbe.dk/2011/enable-bashrc-on-osx-snow-leopard-and-lion/

Remember to start a new terminal when you are making changes to .bash_profile or .bashrc files. Failing to do so, would lead to errors like you are experiencing because the changes isn't loaded in, and the new PATHs and all the programs there isn't available to you.

With that being said, you need to add the folder with binary programs to your path, you can verify that the path is loaded in with the following command:

echo $PATH

Which gives me this on Snow Leopard:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Setting a path can be difficult in OSX because it seems like they have changed this behavior quite a bit between releases.

Look here for a more detailed answer about setting path variables: https://superuser.com/questions/69130/where-does-path-get-set-in-os-x-10-6-snow-leopard

There is also a description here on how to get Snow Leopard to read the user supplied .bashrc in the home-dir: http://kaspergrubbe.dk/2011/enable-bashrc-on-osx-snow-leopard-and-lion/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文