21

I don't know what happened
but when i copy paste a code or write something
No Errors were shown

See the picture below in which i copied a code but no imports yet
But Android studio doesn't show any error. Even when i Ctr + Alt + O It doesn't imports anything

enter image description here

Is their any setting to get it back or anything else?

I already tried updating all available updates

4
  • 1
    move arrow on un-imported class,interface or etc and and use ALT + ENTER. Dec 19, 2014 at 12:23
  • 1
    I accidentally entered into power saver mode Dec 19, 2014 at 13:09
  • I faced this problem just after upgrade to 4.1 Dec 13, 2020 at 16:42
  • I experience this problem all the time... but restarting android studio it works for me.
    – madlymad
    Dec 13, 2020 at 18:08

15 Answers 15

28

Sounds like you may be in power save mode. Check it on the File menu, just above Exit. While in power save, code inspection is disabled.

To get code inspection running again, you can either: 1) exit power saver mode, or 2) run inspection manually with Inspect Code... on the Analyze menu.

9

On the right side, click on the smiling face and pull the progress bar at the right:

screenshot

0
8

I fix this problem by reset setting: File > Manage IDE Settings > Restore Default Settings.

After reinstall plugins, I realized that butter knife plugin was the problem

enter image description here

enter image description here

3
  • 3
    After uninstall butter knife plugin, my android studio is cured.
    – Lyux
    May 8, 2021 at 3:34
  • 1
    Butter Knife Zelazny was the culprit in my case. fixed it. You saved me. Jul 21, 2021 at 7:29
  • You are a life saver. Thanks
    – Shinobi
    Sep 3 at 13:15
1

Clean your Project and press ALT + ENTER for import into android studio

1

in logcat view

try to remove any filter or filter by your application

enter image description here

1

Click on bottom right corner icon in android studio and uncheck the Power Save Mode

1
  • Second icon from the right, "current inspection profile"
    – gregn3
    Apr 3, 2020 at 2:36
0

On the right bottom side, click on the user face and uncheck the power Save Mode.

0

For me none of the ones above helped.

I found the solution by doing this.

Analyze --> Inspect Code... --> Check - "Whole Project"

Also if this doesnt work out. Check if one of your classes need to implement some methods and the compiler is not recognizing that.

Try also:

Code --> Implement Methods...

0

go to this path => C:\Users\AppData\Local\Google\AndroidStudio4.1\plugins

find => Groovy_Console_Plugin_8542.zip

check it is extracted if not then => extract hear

then you will get result

note: check your Highlighting level (inspection level) is on syntax

0

Just remove the ./gradle folder and then relaunch Android Studio to download/install the Gradle automatically.

0

Invalidate caches and restart helped me

0
0

What fixed mine in Android Studio V. 2022.1.1 Canary 3 was that I had "none" selected for the highlighting which showed up as "OFF" in the top-right corner of the code box:

enter image description here

Clicking on that popup box that was now there:

enter image description here

And I noticed it said "Highlight None". clicking on that blue link gave me 3 options:

enter image description here

Selecting the "All Problems" brought me to this stats popup box:

enter image description here

Once that was done doing its thing I was finally presented with errors in my code! (which really isn't good but its good in this step-by-step guide):

enter image description here

0

I found a fairly easy solution, would try this first.

  1. Close the project.
  2. Open it as a new project: Instead of clicking on the existing project in the typical way, go to File > Open, or click on the Open button in top right corner, if in the "Welcome" dialogue box
  3. Give it a few seconds to load the project and run all the related checks, etc.
  4. That should do it!
-3

On your right side , theres are colored squares next to the page scroll. Typee on the red square to see the error.

-3

Following worked for me:

While opening a new project, be sure you connect your system with power,

restart and then enable safe mode and when the settings pop up

set the check for compile if not checked.

Good Luck

1
  • Please mention something relevant to the question Jun 4, 2019 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.