I installed Android Studio (1.5.1 -- see image for build details).
安装时我选择了自定义选项,这样我就可以安装特定的路径。
我知道我的 %SystemDrive% 指向一个网络位置,我想安装到本地磁盘。
因此,这意味着默认情况下,应用程序将安装到:
\networkpath\users\myUserName\Android\SDK
但是,由于我选择了自定义安装,所以我选择了本地路径:
c:\users\myUsername\Android\SDK
项目创建和构建工作正常
一切似乎都安装得很好,我能够创建一个新项目并毫无问题地构建它。
然而,当我尝试运行构建时,然后基本上默默地失败了。
模拟器从未出现,也没有发生错误。
Android 监视器仅显示一条消息,指出未检测到连接的设备。AVD管理器
幸运的是,我知道一些有关检查模拟器发生了什么的信息,然后我打开了 AVD 管理器。
列出的设备显示错误。
我右键单击该设备并选择“查看详细信息”。
此时 AVD 管理器显示它正在尝试从网络路径读取,即使我在自定义安装中更改了此设置。
\networkPath\Users\myUserName\Windows.android\avd\Nexus4.avd
和
\networkPath\Users\myUserName\Windows.android\avd\Nexus4.ini
注册表编辑
I closed Android Studio. Then I opened regedit and edited the values at:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
which originally looked like the following:
并更改它们,使它们都直接指向 c:\ 驱动器(而不是 %systemdrive%)
环境变量:ANDROID_SDK_HOME
我发现其他人提到了 ANDROID_SDK_HOME 环境变量,我注意到我的机器根本没有定义该值,所以我添加了它并设置如下:
c:\users\myUsername\Android\SDK
I then started Android Studio again and started the AVD Manager.
This time there were no devices show, but instead AVD Manager prompted me to create one with the following window:
Now, I'm attempting to download one of the devices with Google APIs, but each time I do, they download and install successfully, but then disappear from the list. Notice, in the next image there are not API Level 15 or 16 with Google APIs for arm architecture.
另外请注意,有is其中一个列出了 API 级别 17,带手臂。
我现在将尝试安装该软件。
You can see that it downloaded successfully and installed fine.
Now, I click the [Finish] button.
The item no longer appears in my list.
API 级别 15 项目是自动选择的。我假设是因为这个是我安装 Android Studio 时最初下载的。
Finally, if you uncheck the [ ] show downloadable system images checkbox -- which is terribly confusing -- and I'm assuming shows you the ones you've already downloaded, then you'll see that it only shows the one API Level 15 virtual device.
这一切都太可怕了。有人见过这个问题吗?
还有其他人能够修复它吗?
我假设我只需要完全重新安装 Android Studio。