Home » Android » java – How to enable Inspection, after being Disabled in Android Studio?

java – How to enable Inspection, after being Disabled in Android Studio?

Posted by: admin April 23, 2020 Leave a comment

Questions:

enter image description here

Problem:

In my manifest my application word was having Yellow Background, when I do Alt+Enter it gives me above options, I clicked Disable inspection just to check it, but when I do Alt+enter, but again after doing alt+enter I didn’t get any option for getting it enabled?

After clicking Disable Inspection, I am not getting any option for Enable Inspection, Is there any way to get Enabled again?

How to&Answers:

You can find and disable/enable all inspections here.

Settings lint isnpections

For your situation, you have to find and make selected this two:

Google app indexing
Allow backup

Answer:

If your project is under version control, you might notice that .idea/inspectionProfiles/Project_Default.xml and .idea/inspectionProfiles/profiles_settings.xml were either added or changed. You could just reset or remove those files (Making sure to only reset the parts you want to re-enable.)

Answer:

If you want to restore all inspections to default, you can go to:
File > Settings > Inspections >
Click on Advanced Settings
enter image description here

and Reset to Default Settings

Answer:

I found this on google, why dont you try this out:

https://www.jetbrains.com/help/pycharm/2016.1/disabling-and-enabling-inspections.html?origin=old_help

Answer:

Go to File -> Setting -> Editor -> Inspection and mark which inspection that you want to enable.

Answer:

If you haven’t closed IntelliJ yet,
Menu FileSettings Repository...Overwrite Local will restore a backup of your settings, including the just disabled inspection.

This is effectively an ‘undo’ but you need to have prepared a settings repository in advance for it to work. If you haven’t done this yet, you’re on your own, and I suggest you make one now for future accidents (and as a bonus, for sharing settings among multiple computers).