问题标签 [android-studio]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
9978 浏览

android - 在android studio中,如何在一个窗口中打开多个项目?

我正在尝试谷歌的安卓工作室。在eclipse中,我可以在一个窗口下打开多个项目。这是在android studio中做到这一点的方法吗?

0 投票
1 回答
2652 浏览

android - 将现有项目导入 android studio 但未找到外部库 (com.google.android.gms)

我正在尝试 Google 在 IO 上宣布的 android studio。我已经安装并工作并从 subversion 导入了我现有的项目并创建了一个 android studio 项目。除了其中一个库出现问题外,一切似乎都很好,我认为它与 Drive library 有关com.google.android.gms.common.AccountPicker。在日志中它说com.google.android.gms.common.AccountPicker does not exist

感谢您的任何帮助,您可以提供。

0 投票
8 回答
151025 浏览

android - 如何将 SDK 添加到 Android Studio?

我正在使用基于 IntelliJ 的 Google 的 Android Studio 0.1,但我无法弄清楚如何将其他 SDK 添加到我的项目中。

根据 Google 的建议,我将现有项目从 Eclipse 导出到 Gradle 项目,然后将其导入 Android Studio 。

我项目的 SDK 是 Google APIs 2.3.3。但是,我使用了一个名为 PullToRefresh 的库,它似乎需要 SDK 4.1,因此我正在尝试将 SDK 16 添加到我的项目中。

我已经确保使用 SDK 管理器下载 SDK。这些 SDK 会自动添加到 Android Studio.app 的 sdk 文件夹中。

我打开 Project Structure 窗口,单击 Platform Settings 下的“SDKs”,我目前看到 JDK 1.7 和 Google APIs 2.3.3 显示。我单击该列表上方的 + 号以添加新的 SDK。然后我导航到包含 android-16 的 sdk 目录,如下面的屏幕截图所示。我不太确定这要我添加什么,但我已经突出显示了 android-16 文件夹(关于我唯一可以选择的东西),当我点击“选择”时,窗口消失了,但没有新的 SDK 出现SDK 列表。

SDK 选择器的屏幕截图

这是我的 SDK Manager 视图的屏幕截图,显示了已安装的 SDK:

SDK管理器截图

0 投票
1 回答
1425 浏览

android-studio - Android工作室项目创建

我收到以下错误消息“您的 Android SDK 已过期或缺少模板。请确保您使用的是 SDK 版本 22 或更高版本。” 当我尝试使用 android studio 创建项目时,请帮帮我,我已将我的 SDK 版本更新为 22 仍然面临这个问题

0 投票
2 回答
719 浏览

android - 我无法在 Windows 8 中安装 Android Studio

我需要在 Windows 8 中安装 Android Studio,但我不能,因为在安装过程中告诉我找不到 JDK 安装,创建变量 HOME_JAVA 和真相,无法继续安装。

有人试图在 Windows 8 中运行它?

0 投票
1 回答
1825 浏览

facebook - Android Studio - Facebook 登录按钮呈现错误

我对 Facebook SDK 和登录按钮有疑问。当我尝试放置登录按钮时,我收到此消息

我不知道为什么 Android Studio 不呈现按钮。我成功添加了模块,我可以使用像 Session 这样的 Facebook SDK 类......

你知道可能是什么问题吗?

0 投票
6 回答
185168 浏览

android - 如何在 Android Studio/IntelliJ 中导入 Maven 依赖项?

我使用 Android Studio 中的默认向导创建了一个新的 Android 项目。编译并将应用程序部署到我的设备。一切都很好。

现在我想导入一个在 Maven 上可用的外部库。(http://square.github.io/picasso/)。我去了模块属性,并添加了一个 Maven 库。它正确显示在依赖项列表中。此外,它显示在编辑器中,我可以在代码中正确使用它。

但是,在编译时,我收到 Gradle 错误:无法找到类

有任何想法吗?

0 投票
4 回答
12279 浏览

android-studio - 如何更改 Android Studio for Mac 的主题?

我正在尝试找出将黑色主题设置为我新安装的 android studio 的方法,但我没有成功。

我看到了一个类似的问题,但那是针对 Windows 的(我没有获得设置选项)。

请告诉我如何在mac机器上做同样的事情。

0 投票
3 回答
12927 浏览

android - android-studio can't find an aidl interface for use in class

I have an interface defined in the aidl but I can't extend it or find it any way. The ide just tells me: Can not resolve symbol 'KeyEventListener' Any idea how to fix this?

Additional infos:

  • KeyEventListener is the name of the interface defined in KeyEventListener.aidl
  • KeyEventListenerImpl is the class which extends the interface Stub
  • KeyEventListener just contains one method named 'void doIt();' and is well formatted;

I know android-studio is some thing like a pre-alfa but like it very much and would be very happy if some one could halp me out on this!

enter image description here

0 投票
5 回答
39286 浏览

android - Android Studio 在 Windows 8 64 位上启动失败

安装工作正常,JDK也没有问题。安装后程序不启动。双击该图标不会发生任何事情。以管理员身份开始或安装“只为我”或为所有用户安装都没有区别。我没有答案..这可能是一个常见问题吗?