Automatically switch to replace mode in Intellij IDEA - android

I'm using Intellij IDEA 12 for Android Development, and I met a very strange problem. Whenever I open a file or a dialog (such as Logcat). The cursor switch to replace mode automatically, I have to click the INSERT key on keyboard every time to switch back to normal insert mode.
It's very weird since I haven't met this problem before, even when I'm using Android Studio and IDEA Communication Edition 12.
Could you please help me solve this problem, thank you!

I also had the same problem on Intellij IDEA 13.
That happened to me after changing my theme.
I couldn't find how to fix it in Settings.
But I deleted the config file( you have to enter your licence key again after removing it ),
then changed my theme again.
Now, it works perfect.

Related

Android studio code completion no longer working

I am on the latest version of Arch Linux. I recently encountered a bug in Android Studio where my code completion doesnt work. Originally the issue started with the code completion menu just showing up at the top of the screen instead of below my cursor, but now it doesnt show at all whatsoever. Here are some things I have tried to fix it:
Reinstalled Android Studio.
Invalidated my cache and restarted.
Manually deleted my cache.
Disabled and re-enabled code completion in the settings menu.
Nothing has worked so far. Do you guys have any suggestions on how I can fix this bug?
Have you tried disabling Power Save mode, if its enabled? Its in File -> Power Save Mode.
Try disabling 3rd party plugins that you might have installed.
I experienced similar behavior once I updated my AndroidStudio but after disabling checkstyle plugin, the code-completion started to work again.

Android Studio Inspections doesn't work correctly

When I run inspect on my code it shows a warning like this:
Property "isLoading" is never used
Even though I am using that property. There are no problems with code, everything works fine, but this issue annoys me, what should I do?
You can see both warning and usage of that property in the photo below:
If the answer above doesn't work,
Go to your local drive -- Users -- Android Studio -- System
and delete the caches folder, then open android studio.
Go to file -> Invalidate Cache/Restart
Click on Invalidate Cache/Restart, a menu pops up
On the menu, click on Invalidate Cache and Restart
// Wait for android studio to restart.
I made an enormous mistake. I assumed Android Studio knew what it was doing when it said it found unused resources and I let it remove them all. It removed much needed XML id tags, it removed drawables, launcher icons.... what a mess. Has no one in Android studio land addressed this egregious set of errors? I spent a far too much time undoing all the things "Inspect code" said was wrong and I let fix only to find the app fails.
Lesson learned - never assume Android Studio knows what it is doing when it comes to inspections. Always check each before taking their often erroneous suggestion

Eclipse Android XML jumps around the editor

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!

Blank Graphical Layout?

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.

Run without debugging in eclipse

When I run my app on my phone from eclipse, it always runs in debug. This has only recently started to happen. I guess I must have inadvertently changed a preference or something, but can't work out what. Does anyone know how I can switch it back so I can run without debugging?
Thanks in advance
TAO
I found someone else reporting the same error
http://osdir.com/ml/AndroidDevelopers/2009-08/msg00603.html
They resolved it with a phone restart.
The same worked for me.... how frustrating!!!!!!
At least its working now.
Massive thanks Aaron Digulla for our help.
TAO
Check the VM options in the project's properties. There should be something like -Xdebug=.... Remove that.
I suggest to duplicate the entry and create a second one without the debug options. Also note that under Common, you can save the launch config somewhere (for example in your project), so this setup doesn't get lost.
Just ran across this issue.
Sometimes the Eclipse Android dev environment sets the application property android:debuggable="true" in the AndroidManifest.xml file. This will cause your app to run in debug mode regardless of if you press 'run' or 'debug' in Eclipse.
I know this contribution comes a little late, but here it goes. Be sure you do not have any android.os.Debug.waitForDebugger() method invoked since your code. If so, just remove or comment it and rerun your application.

Categories

Resources