Android 模拟器不显示应用程序 - 它只显示皮肤
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3062202/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android emulator not showing the app- it only shows the skin
提问by Alexander Fradiani
I started to develop android apps a few days ago, but I'm stuck with this problem.
几天前我开始开发 android 应用程序,但我遇到了这个问题。
I'm using Eclipse with ADT and have created the simple Hello World
or any of the other sample applications, and when I run the project, Eclipse launches the Android emulator but it shows only the skin, with the screen saying "ANDROID" and nothing else, it's unresponsive to anything I do in the code.
我正在使用带有 ADT 的 Eclipse 并创建了简单的Hello World
或任何其他示例应用程序,当我运行该项目时,Eclipse 启动了 Android 模拟器,但它只显示了皮肤,屏幕上显示“ANDROID”而没有其他内容,它对我在代码中所做的任何事情都没有反应。
It happens targeting both 2.2 and 1.5 versions, why is this happening and how can I fix this?
它同时针对 2.2 和 1.5 版本,为什么会发生这种情况,我该如何解决?
采纳答案by Cristian
The emulator will show "ANDROID" when it's loading. You will have to give it a minuto for it to start. If it does not start it could be cause for several reasons: for instance, if your computer don't have enough resources to run the emulator, or if there are internal problems with the SDK, etc. Try to run the emulator from the SDK folder and see if it works; if not, the problem could be your computer.
模拟器在加载时会显示“ANDROID”。您必须稍等片刻才能开始。如果它没有启动可能有多种原因:例如,如果您的计算机没有足够的资源来运行模拟器,或者 SDK 存在内部问题等。尝试从 SDK 运行模拟器文件夹,看看它是否有效;如果没有,则问题可能出在您的计算机上。
回答by tlayton
Cristian's right - the "ANDROID" display is the loading screen. Give it a minute or two - if the main screen does not appear then, there may be some sort of problem. If so, you may also want to check that you created the emulator properly (a.k.a. for the version you are using, etc).
克里斯蒂安的右边 - “ANDROID”显示是加载屏幕。给它一两分钟 - 如果然后没有出现主屏幕,则可能存在某种问题。如果是这样,您可能还想检查您是否正确创建了模拟器(也就是您使用的版本等)。
If the main screen does eventually show, then the loading process is simply slow. To deal with this during development, I would suggest leaving the emulator open when you compile and run your application code. The old version of the application will be replaced by the new one, and the app will automatically restart.
如果最终显示主屏幕,则加载过程很慢。为了在开发过程中处理这个问题,我建议在编译和运行应用程序代码时让模拟器保持打开状态。旧版本的应用程序将被新版本替换,应用程序将自动重启。