设备配置显示没有默认设备。如何解决这个问题? [英] Device configurations showing no default device. How to fix this?

查看:141
本文介绍了设备配置显示没有默认设备。如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IDEA 11和Device Convigurations屏幕的全新安装如下所示。

Brand new installation of IDEA 11 and Device Convigurations screen looks like this.

正如我从IDEA的文档中发现的那样,默认内容是从位于

As I found from IDEA's docs, the default content is pulled from the XML file located at

默认配置存储在Sdk_Directory / tools / lib / devices.xml中

我发现这个文件,看到它充满了内容。但是,设备配置屏幕仍为空。

I found this file and saw that it is full of content. However, Device configurations screen is still empty.

重复这是IDEA 11的全新安装(与IDEA 12预览相同)和全新安装的Android SDK。

To repeat this is a brand new installation of IDEA 11 (the same with IDEA 12 preview) and brand new installation of Android SDK.

为什么会发生这种情况以及如何解决这个问题?

Why is this happening and how to fix this?

推荐答案

我是如何解决这个问题的!

How I solved this issue!

IntelliJ的这句话团队帮助我

This quote of IntelliJ team helped me


1. Custom configurations are stored in Home_Directory/.android/devices.xml
2. Default configurations are stored in Sdk_Directory/tools/lib/devices.xml





  1. 已安装的全新Android SDK

  2. 来自<的pull devices.xml文件code> Sdk_Directory / tools / lib / devices.xml

  3. 将其复制到 Home_Directory / .android / devices.xml

  1. installed brand new Android SDK
  2. pulled devices.xml file from Sdk_Directory/tools/lib/devices.xml
  3. copied it to Home_Directory/.android/devices.xml

预览窗格使用所有设备返回到之前的状态。

Preview pane returned to previous state with all devices.

PS。这是Linux的解决方案,但Windows版本中也存在相同的文件

PS. this is a solution for Linux, but the same file exists in windows versions as well

这篇关于设备配置显示没有默认设备。如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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