Android 如何解决此模拟器:ERROR: unknown skin name 'WVGA800' 解决方案

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11894396/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 09:06:29  来源:igfitidea点击:

how to resolve this emulator: ERROR: unknown skin name 'WVGA800' solution

androideclipseandroid-emulatoreclipse-plugin

提问by Waqleh

i am trying to start the android emulator from eclipse classic (juno) and it keeps giving me this error:

我正在尝试从 eclipse classic ( juno)启动 android 模拟器,它不断给我这个错误:

ERROR: unknown skin name 'WVGA800'

错误:未知皮肤名称“WVGA800”

I developed my software using eclipse indigo, but since I installed eclipse juno and imported the same project it started to give me this error. any idea why? and how to resolve this issue?

我使用 eclipse indigo 开发了我的软件,但是自从我安装了 eclipse juno 并导入了相同的项目后,它开始给我这个错误。知道为什么吗?以及如何解决这个问题?

回答by Waqleh

My solution was to create a new custom virtual device from the android virtual device manager and use that.

我的解决方案是从 android 虚拟设备管理器创建一个新的自定义虚拟设备并使用它。

回答by PUG

For me on Mac OS Xthis error went away when I selected the skin in advanced setting it was saying is unknown. enter image description here

对我来说,Mac OS X当我在高级设置中选择皮肤时,这个错误消失了,它说未知。 在此处输入图片说明

回答by Miro Markaravanes

I had the problem and fixed it... Here the main idea of the issue is that the emulator can't find your android-sdk base directory.. so what is the fix? here I will explain..

我遇到了问题并修复了它......这里问题的主要思想是模拟器找不到你的android-sdk基本目录......那么修复是什么?在这里我会解释..

  1. Find where you have installed your sdk. To do so go to Start->All Programs->Android SDK Tools->SDK Manager.. You will see that the path is written on the top of the window.. copy it somewhere so we need it later.. call it "SDK Path"
  2. Go to Start and Right Click on Computer and select "Properties".. Then select the last option on the left menu which is "Advanced System Settings".. Go to the "Advanced" tab and click on the "Environment Variables.." on the first list see if there is a variable called "ANDROID_SDK_ROOT".. If it's there then check if the value is the same as the "SDK Path" we copied in the step 1.. if they are not the same then change the value of it to the SDK Path...and check if your problem is solved. if not then go to step 3..
  3. If the "ANDROID_SDK_ROOT" matches the SDK Path or your problem didn't solve in step 2 then the problem is probably caused by your username.. This was my actual problem. my username had special characters in it like ( !,@,#,... ) or even spaces in some times. Speaking technically as I am myself a programmer, when the emulator program was trying to open the path, it was giving out an error because it couldn't open it because of the special characters..Guessing that the SDK is installed in your Local App Data folder ( Users\\AppData\Local ) as mine was, you should access it with another Enviroment Variable called "LOCALAPPDATA" which links to your Local App Data folder.. So in your SDK Path change the "drive:\Users\\AppData\Local" to "%localappdata" and your problem will be solved .. For example mine was "C:\Users\MiNuS !3\AppData\Local\Android\android-sdk" and I changed it to "%localappdata%\Android\android-sdk"... (without the double quotations)..
  1. 找到您安装 sdk 的位置。为此,请转到“开始”->“所有程序”->“Android SDK 工具”->“SDK 管理器”。您将看到该路径写在窗口顶部.. 将其复制到某处以便我们稍后需要它.. 称其为“ SDK路径”
  2. 转到开始并右键单击计算机并选择“属性”..然后选择左侧菜单中的最后一个选项“高级系统设置”..转到“高级”选项卡并单击“环境变量..”在第一个列表中查看是否有一个名为“ANDROID_SDK_ROOT”的变量。如果存在,则检查该值是否与我们在步骤 1 中复制的“SDK 路径”相同。如果它们不相同,则更改将它的值添加到 SDK 路径...并检查您的问题是否已解决。如果不是,则转到第 3 步..
  3. 如果“ANDROID_SDK_ROOT”与 SDK 路径匹配,或者您的问题在第 2 步中没有解决,那么问题可能是由您的用户名引起的。这是我的实际问题。我的用户名中包含特殊字符,例如 ( !,@,#,... ) 甚至有时还有空格。从技术上讲,因为我自己是一名程序员,当模拟器程序试图打开路径时,它发出一个错误,因为由于特殊字符而无法打开它..猜测 SDK 安装在您的本地应用程序中数据文件夹( Users\\AppData\Local )就像我的一样,您应该使用另一个名为“LOCALAPPDATA”的环境变量访问它,该变量链接到您的本地应用程序数据文件夹..所以在您的SDK路径中更改“驱动器:\用户\\ AppData\Local”到“%localappdata”,你的问题就解决了..

The same problem is present in some other java programs. I had the problem with the Zend Studio too...

其他一些java程序中也存在同样的问题。我也遇到了 Zend Studio 的问题...

Hope it will solve your problem, Good Luck

希望它能解决你的问题,祝你好运

回答by Elias Mossholm

I bumped into the same problem in Android Studio on Mac OS X 10.6.8 and there it helped to create a new AVD with target API Level 17 (the only one available after the standard setup it seems). None of the pre-existing AVDs work, however, only the new one (the old ones all use target APIs lower than 17).

我在 Mac OS X 10.6.8 上的 Android Studio 中遇到了同样的问题,它帮助创建了一个具有目标 API 级别 17 的新 AVD(似乎是标准设置后唯一可用的)。现有的 AVD 都不起作用,但是只有新的(旧的都使用低于 17 的目标 API)。

回答by grgrssll

The path to where it looks for the skin is in the ~/.android/avd/$deivce-name$.avd/config.ini

它寻找皮肤的路径在 ~/.android/avd/$deivce-name$.avd/config.ini

My issue like this occured because I had copied an avd to a different computer and the path was incorrect on that new computer.

我出现这样的问题是因为我已将 avd 复制到另一台计算机上,而那台新计算机上的路径不正确。

回答by narco

One solution, if you're happy to do this, is to not use a skin. To do this:

如果您愿意这样做,一种解决方案是不使用皮肤。去做这个:

1> Tools/AVD Manager

1> 工具/AVD 管理器

2> Select the device

2>选择设备

3> Click the pen icon in the "Actions" Column

3>点击“操作”栏中的钢笔图标

4> Uncheck "Enable Device Frame"

4> 取消选中“启用设备框架”

Alternatively, if you want to select a preexisting skin, you can click on "Advanced Settings" and scroll down to the "Custom skin definition" drop down box.

或者,如果您想选择一个预先存在的皮肤,您可以单击“高级设置”并向下滚动到“自定义皮肤定义”下拉框。

And to see instructions on how to create a custom skin, you can click on "Advanced Settings" and scroll down to "How do I create a custom hardware skin", which links to here: https://developer.android.com/studio/run/managing-avds#skins

要查看有关如何创建自定义皮肤的说明,您可以单击“高级设置”并向下滚动到“如何创建自定义硬件皮肤”,链接到这里:https: //developer.android.com/工作室/运行/管理-avds#skins

回答by George Udosen

I had the same issue as I moved my avdfiles between systems and as in your case you have moved the relevant files. So the solution as to go to the .androidfolder and make changes to the files with .iniof confin their names. In there you will see that the paths to various resources are different as a result of the move you made. So put in the correct path values.

avd在系统之间移动文件时遇到了同样的问题,就像你移动了相关文件一样。因此,解决方案是转到.android文件夹并对名称中带有.iniof的文件进行更改conf。在那里,您将看到由于您所做的移动,通往各种资源的路径是不同的。所以输入正确的路径值。

That was how I solved mine.

我的就是这样解决的。

回答by BlackHatSamurai

You may need to update your AVD manager. WVGA800is the default skin for the emulator. You might try to update your software

您可能需要更新您的 AVD 管理器。WVGA800是模拟器的默认皮肤。您可能会尝试更新您的软件

回答by Ivan Buttinoni

For SDK-only installed

对于仅安装了 SDK

For who has not installedAndroid Studio but has only the SDK, to add a new device, or change a skin to an old device is

对于没有安装Android Studio 而只有 SDK 的人来说,添加新设备或换皮肤到旧设备是

$ANDROID_HOME/tools/android avd

回答by Paul Razvan Berg

My solution was to change the skin to nexus 5x!!

我的解决方案是将皮肤更改为nexus 5x!!