Android的工作室:不建立在模拟器后全新安装 [英] Android Studio: doesn't build on simulator after clean install

查看:206
本文介绍了Android的工作室:不建立在模拟器后全新安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何可气的是它是一个空白的活动不上干净的Andr​​oid V1.3工作室刚刚安装自动生成?我明白需要安装Java进行仿真运行,但其余的是unacceptable..X code建立在几秒钟内任何设备上。

How annoying is it that a blank activity doesn't just auto build on a clean Android Studio v1.3 install? I understand needing Java installed for a simulator to run, but the rest is unacceptable..Xcode builds on any device in seconds..

能否有人请解释这怎么可能?我的意思是我已经开发多年的Andr​​oid应用程序,但是这一个完全不同的问题。

Can someone please explain how this is possible? I mean I've been developing Android apps for years, but this a completely different issue.

没有连接的设备结果
  没有调试的应用

No Connected Devices
No Debuggable Application

这就是我得到一个全新安装在Windows 8.1的Parallels虚拟机,具有4GB的分区,实际上做滴模拟器的内存为1GB,因为它默认为Nexus 5的1.5​​GB与需要?这是没有意义的,如果他们建议512至1GB建议在安装...

That's what I get with a brand new install on a Windows 8.1 Parallels VM, with a 4GB partition, actually did drop the simulator's memory to 1GB, because it defaults to a Nexus 5 with 1.5GB needed? That makes no sense if they suggest 512 to 1GB recommended during install...

您明白的问题吧?这怎么可能发生?也许这应该是社会的维基...

You understand the question right? How can this happen? Maybe this should be community wiki...

如果我是诚实的自己,我居然不知道如何解决这个问题的开箱...

If I was honest with myself, I actually don't know how to fix this out of the box...

更新

获得

仿真器窗口是拿出来看并recentered

emulator window was out of view and was recentered

和空白模拟器的屏幕还在变化后:

and blank emulator screens still after changing:

    minSdkVersion 15
    targetSdkVersion 22

    //to

    minSdkVersion 14
    targetSdkVersion 21

<一个href=\"http://stackoverflow.com/questions/15652311/emulator-emulator-window-was-out-of-view-and-was-recentered\">This帖子不利于要么...

推荐答案

那么,在项目结构的几件事情上浪费后,我开始越来越关系到JDK新的错误。你必须设置JAVA_HOME变量...我正在运行JDK 6,安装了7和8。当我试图将其更改为8,但似乎比解决更多的问题,所以我的JDK位置设置到正确的位置为JDK 7中设置我的Mac JAVA_HOME变量,然后用于在终端命令:

Well, after messing around with a few things in Project Structure, I starting getting new error related to the JDK. You have to set the JAVA_HOME variable...I was running JDK 6, with 7 and 8 installed. When I tried to change it to 8, there seemed to be more problems than solutions, so I set the JAVA_HOME variable on my Mac by setting the JDK location to the correct location for JDK 7, then used this command in the terminal:

echo export "JAVA_HOME=\$(/usr/libexec/java_home -v 1.7)" >> ~/.bash_profile

我不得不做,在与Android工作室为Windows过去,但在安装过程中忘了这一切,因为我的Mac被默认为JDK 6,我的编译版本是不兼容的。

I've had to do that in the past with Android Studio for Windows, but forgot about all that during setup, since my Mac was defaulting to JDK 6, and my compile version wasn't compatible.

此外,这对我是有其他问题的重要......不要在在Parallels虚拟机中同时运行X code和Android的工作室?我曾在X code卡开,这与HAXM尝试运行模拟器冲突。这可能会导致你失望,这将误导你到底发生了什么的一个令人困惑的路径。

Also, and this is important for other issues I was having...don't run Xcode and Android Studio at the same time inside a Parallels VM? I had the Xcode sim open, which conflicts with HAXM trying to run the emulator. That can lead you down a confusing path that will mislead you to what's really going on.

这篇关于Android的工作室:不建立在模拟器后全新安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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