Android: graphic layout does not work - shows nothing

My situation is this: once I made an Android project (version 2.2), but soon I needed to format my computer. After formatting, I downloaded Eclipse again, but when I imported my project, I could not use the "graphic layout" menu for xml. This does not show me anything like the picture below.

http://img525.imageshack.us/img525/3586/19978552.png

http://img525.imageshack.us/img525/3586/19978552.png

I cleaned up the project and updated the Android SDK, however none of them seemed to work well. What could be the reason for this?

+4
source share
5 answers

Try restarting Eclipse. This usually solves the problem for me when this happens.

+7
source

Right-click on your XML layout file and select Open With → Android Layout Editor . This will force eclipse to open the file in Android layout editor mode.

+4
source

None of them worked for me. what worked for me:

1- Select the project Google Project Project Build Target, and not one of Android XX This option is in the right click on the project → Properties-> Android.

2- Make changes to the XML and save it. Now go back to the "Graphic Layout" and it will show the layout.

For some, only the 2nd step works.

+1
source

This question was asked 3 years ago, I'm sure that you got your solution, however I also ran into the same problem, but got the solution in eclipse, here it is: -

1) Go to help-> AboutEclipse-> Installation Information.
2) check the Android version of DDMS, the Android development tool, the Android hierarchy viewer, the native Android development tool, Android tracking and the tracer for openGl ES on the installed software tab.
3) If they have a different version, you should update them all. 4) Go to help-> check the update in eclipse and follow the instructions.
5) Then restart eclipse.

This solves my problem.

+1
source

The theme seems a little cold, but I wanted to add it nonetheless.

I had a similar problem with my layouts lately. When I create a project, it automatically creates layouts in the latest version of Android (eclipse shows this as the current version of Android android). But I don’t see anything. So I just change the version to, say, 18, and that’s good. In addition, if I want to change it to version 22, this raises an exception, saying that the class cannot be created. (I probably miss a class or library on my system.)

Therefore, if you do not see the layout, it might be a good idea to revert to earlier versions for development. amuses.

0
source

Source: https://habr.com/ru/post/1398473/


All Articles