It just happened right after upgrading to v2.2, where androids studio is showing the full package name of the project for each package I create!
Anyone has any idea how to hide the full package name and just showing the package name the I am creating?
This is because you have the Flatten Packages option active. To return to the default behavior you must turn this option off by going to your Project view at the left side (usually) and then on the click Show Option Menu Icon (a little cog on the top of this sidebar)
Image guide: http://imgur.com/a/sEFxm
EDIT: Sorry it seems I cannot yet post a comment to a reply ?
There is currently a bug issued here about the same problem fairly recent
https://code.google.com/p/android/issues/detail?id=222914
They suggest that the bug has to do with enabling dataBindings in your project and they already looking for a fix to this as we speak.
On the other hand if you do not have dataBindings enabled please try the following: Close AStudio, remove the .idea folder from your project, and then import your project again.
It has been Fixed in Android Studio V2.2.1.
I have a really wired issue.
Everything worked fine yesterday, but today when I opened the Eclipse and trying to open a layout it looks like this:
As you can see there is nothing shown(Not the name of the layout, not design and graphical tabs).
I already tried the following:
To upgrade everything in the SDK manager.
To restart everything including my computer(which in most of the time fix any problem in eclipse).
Shift+Alt+F7 doesn't work.
UPDATE:
Add to done list:
Re-Open Perspective
Window>> Reset Perspective
This is my Error Log:
right click on the layout you want to open and choose
Open with >> Android Common XML Editor,
try this as well
Window>> Reset Perspective
sometime graphical layout show. but nothing showing. only blank. this is happen because the manifest minimum sdk is not support to view the layout.to resolve that change the api level which display in the right corner of layout display area.
There are 2 solutions that found:
Convert the project to Android Studio.(I don't take it because I've a complex project)
I Re-install the Eclipse.
Hope that it will help someone to save some time.
I can not see any errors or warnings in my Eclipse(4.4.2) unless I specifically select the project or file in Package Explorer and then go to the Problem view.
So far I tried different options in "configure contents" and "show" dialogs in the Problems view menu without success. The only time I see errors in the Problems view is if I set the options "show all" or "all errors" and then it shows every issue with every project I have, don't want/need that.
I also tried (following suggestions from other posts) closing/reopening project, Build Automatically and fix project properties... no luck.
I remember it used to be that if you had issues in a file you were currently editing you could jump straight to the Problems view and it would show you the issues for the project where that file lives, in other words the current project being edited. This is the result I want.
Android SDK manager is up to date so I am out of ideas. Appreciate any help.
Open the 'Configure Contents' menu and select the 'All Errors' (click the line don't use click the check box). You should then be able to configure the Scope of the errors on the right hand side of the dialog (such as any element in same project)
I have a problem when I select any project then I go to Properties and then select Android. The problem is that when I select Android it remains loading.
I had this problem before and i know what i'm gonna say is somehow weird but it worked for me.
After opening Properties window and before clicking on Android re-size the window as small as you can such that you still can see the Android label to click on it :D, click the Android label and wait for 1-2 seconds then re-size the window again. i hope it works with you too.
Try to install the latest version of Eclipse. That should solve the loading issue in the Android project properties window.
I had a HD hardware failure the otherday and have been trying to recreate my Android programming environment.
I have installed Eclipse and the Android SDK. I have updated the SDK to the latest version.
I then imported my project from my backup folder. When I look at my layout files in eclipse I cannot view the Grphical.layout as its not an option. I get the following tab options for the page (Design or Source).
However my old environmet which i have a copy of in a virtual machine gives me following tab options for the layout file (Graphical Layout or filename.xml)
Any ideas why this is occuring? I assume it must be something to do with eclipse not realising that its menat to be looking at android xml layout files.
Please help,
Iain
comic if graphical layout is not showing by opening the xml file try using OpenWith ->Layout Editor on the xml file witch u want to open from project explorer under res folder
If the above answer doesn't work and if you cannot see the option of 'Layout Editor' on right click, restart eclipse. Worked for me.
sometime graphical layout show.but nothing showing.only blank.this is happen because the manifest minimum sdk is not support to view the layout.to resolve that change the api level which display in the right corner of layout display area.
I tried the option suggested by Muni, but did not work. Then I noticed that the Android version in the Graphical Layout was higher than what I had selected for my project which was causing the issue. After setting it to appropriate version it worked fine.
I had same problem with ADT eclipse. Probably this happens when you change something with your editor like changing themes.
Need not to worry about this, here I have solution for your issue it to navigate with your xml sourc and xml Layout files as for displaying Graphical Layout use this keyboard shortcut.
Shift+Alt+F7 and for navigating with source editor of xml file use this shortcuts as Alt+F7 Thanks for such good question. hope my answer will useful for all those are stuck with this.
I was facing this problem but that didn't get corrected by restarting.
Actually, my xml file say "MyFile.xml" was present in a sub folder of layout and in the layout folder itself(root).
When i opened "MyFile.xml" from the subfolder it just showed the code.
When i opened "MyFile.xml" directly from the layout folder(not from itz sub folder), it showed both the design and code.
:p
that was my blunder!
Just follow this pattern :
Package Explorer ---> res --> Layout ---> activity_main.XML
Open activity_main.XML
May 2013
just open with regular xml editor and put them side by side. 'right click' open with xml editor, and drag it so the windows layout side by side.
My problem was that I installed everything and restarted eclipse. But I didn't go back to.
Window | Android SDK manager.
When I did that I saw that eventhough I had installed everything and the SDK worked just fine. There was another 3 packages left to install. I installed that (and some sample code). Restarted Eclipse and everything worked like a charm.
This Question was asked 3 year ago, I am sure that you have get your solution, however i was also facing the same problem but got the solution in eclipse, here it is:-
1)Goto help->AboutEclipse->Installation details.
2)check the version of Android DDMS, Android development tool, Android hierarchy viewer, Android native development tool, Android trace view and tracer for openGl ES in installed software tab.
3)If they have different version than you have to update all of them.
4)Goto help->check for update in eclipse and follow the instruction.
5)Then restart eclipse.
This solve my problem.
From the upper right corner try a different "Android version to use when rendering layouts in eclipse". (Small green android icon). This worked for me.
If you can't see "Android Layout Editor",
right click on an xml layout file and choose Open With | Android Common XML Editor then choose Graphical Layout tab.
See here
If the above solutions doesn't fix the problem , then remove the very first line that is autogenerated while creating the xml file
and select some theme like "No Title Bar" or other.
Your problem will be fixed.
I am doing only
WORKSPACE ALL CONTENT DELETE
INSTALLED adt-bundle-windows-x86-20131030 USED
ECLIPS DOUBLE CLICK
MY PROBLEM SOLVE