I don't know how to explain this other than I cannot click on anything in the android studio designer. I can edit the xml fine, but I am trying to use constraint layouts and its easier if I can drag and drop things. When I hover over anything the hand pointer does not appear and the attributes don't show up if I click. I think it has something to do with floobits but I'm not sure. Floobits just seems sort of buggy to me. Just wanted to post to see if others have had the same problem or for someone to hopefully point out something obvious I have missed. I have opened another project and that works perfectly fine. Thanks.
Screenshot:
Clean Project -> then Rebuild project -> then restart Android studio
Related
I apologize in advance if it is a duplicate topic, but I did not find a direct answer in any other.
Android Studio does not display marks (on the scroll bar) by referencing error/warning/occurences in the code. Is there any way to make it show?
I have not used Android Studio for a long time and I get lost because in Eclipse this is a basic functionality. So in files with many lines of code it becomes complicated to see the locations of the code where there are errors or occurrences.
In Android Studio it looks like this:
In Eclipse like this:
Is it possible to make Android Studio behave similarly to Eclipse? If not, is there any friendlier way to see the error/warnings/occurrences marks?
Thanks for any help.
Please check the highlighting level. Inspections should be selected...
No highlighting
highlighting now activated
so I'm trying out Android Studio for the first time, and I've already run into something. I'm following the official "first application" tutorial on developer.android.com, but it's not matching up. So, I tested this with two apps, and it wasn't like a bug in the first one exclusively, it happened in both. Here's a pic of an app where nothing has been changed and I followed the tutorial exactly:
As you can see in the hierarchy, it is supposed to have the Hello World text that displays when you make a new app. However, with me not changing anything, it's not showing up.
Any ideas?
Also to clarify, the items do show up when I run it on my device, it just doesn't show up on the computer.
Check the upper right corner of the Preview screen, you should see a red warning mark. Click on that and it will tell what is preventing Android Studio from rendering your layout.
Some times android studio stuck or something.Try doing
File->Invalidate Caches/Restart
The best solution is
Clean Project
Rebuild Project
In your style.xml file change the string parent with the below line:
parent="Base.Theme.AppCompat.Light.DarkActionBar"
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 have been coping with an annoying "bug" in eclipse (android) for some time, and today it has just annoyed me to much! So I was wondering has anyone else come accross it, and have you found a fix for it?
It's hard to explain, so hopefully these three screen caps will help:
The first screenshot, everything is ok.
The second screenshot, after a simple click everything moves around.
The third screenshot, another click and things move again.
Closing the file and opening it again seams to solve the problem for a while, but it's really annoying!
Has anyone come across this, or a fix for it?
--EDIT
Forgot to mention, I am running:
Eclipse 4.2.0 64-Bit (on Windows 7)
ADT 20
This is a known bug and happens if you edit the layout in the visual editor and then switch back to the xml editor. You can sometimes fix it by scrolling up and down the file or selecting all the text. Otherwise, just close and reopen the xml file when switching from visual editor to xml editor. It's annoying and still happens to me even after several updates to ADT.
Edit:
I have since found a better solution. In Eclipse go to Window->Preferences. Then under Android->Editors uncheck "Automatically format the XML edited by the visual layout editor". This should solve the problem. You can always auto-format the code manually by pressing Ctrl+Shift+F.
As some commentators have mentioned it seems that this is a duplicate (have flagged as such), although as it is a hard issue to describe that is no surprise! I have tried an answer from one of the questions and it seems to solve the problem. Although it does not prevent the issue!
I don't get this. I've searched everywhere and no one's answers have solved this for me.
Why does this keep happening? I can't do anything! The XML Code is still there, but it doesn't show anything in the Graphical Editor. The Palette comes up if I change it to "4in WVGA (Nexus S)" or some other configuration, but I still can't see anything and the Theme drop down menu is unselectable. All my XML documents are like that.
Just delete any custom device screen configuration you have added . It will solve the issue :)
That just happen to me and after some attempts I found the reason.
When I first opened the project in eclipse I found some errors related with the version of Java. I changed the JDK compliance to 1.6 (Project->Properties->Java Compiler) and all errors dissapear but all graphical layouts went blank.
I uncheked "Enable project specific settings" (Project->Properties->Java Compiler) and now all the graphical layouts are working.
When everything fails, close eclipse and start it all over again, it solved my problem.
I also had that problem, it happened to me when i imported my project. after some time I came to reason just change the workspace of eclipse to folder, which contains your folder.
I changed workspace on opening eclipse, there can be some other way as well
hope this will solve it
If it has never worked for you (or something went wrong upgrading your SDK, as in my case), you may need to install an extra package. For me the issue was fixed when I installed Android Native Development Tools under NDK Plugins (SDK version 20).
I had this problem since I switched the option Show previews in the palette. I switched to show only icons, everything is ok now.