Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
789 views
in Technique[技术] by (71.8m points)

intellij idea - Device configurations showing no default device. How to fix this?

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

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

Default configurations are stored in 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.

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

How I solved this issue!

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. 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. this is a solution for Linux, but the same file exists in windows versions as well


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...