My android studion was working fine. But suddenly I can't refactor any of my projects. When I got to the Refactor->rename then the Button Grayed.
I tried re-installing android studio but did not work. Then I updated it to the latest version (From 173.4720617 to Build# AI-173.4819257) but got the same problem.
Even I tried to refactor different projects on another pc but got the same problem.
I don't know how this problem is generated within a night to all of my pc's.
Please help me solving this problem
The button is disabled because you are not changing the package name. Try to change the package name to different text, this will enable the button automatically.
Related
I'm currently using intellij idea 2020.3.1 . I have done many mini projects with java and flutter and i have never faced any problem with the autocomplete feature/intellisense before until now. It just suddenly stopped working and i have been trying to fix it for days. I have tried the following solutions to no avail.
Disable the power mode off
I have marked my project root directory as the sources root
I set up my JDK correctly
I have done the "invalidate caches/restart"
All to no avail. Is there anything else i could do, please?enter image description here
After much research on the internet, i found out that the problem was from Settings|Editor|Code Completion|Show the documentation popup , was unchecked. How it became unchecked(I cant remember doing it), i dont really know. After i checked it, the code completion feature started working
My Android Studio no longer recognizes basic embedded packages such as Strings and Integers.
This is something that occurs across any projects so it may not have to do with code.
I have tried looking into the JDK however nothing has changed with it and it used to work okay in the past. I have also tried Invalidate and Restart which is the most used tool for miscellaneous issues.
Seems like the Java kit is misplaced because this is for all basic types String, Integers, Objects...
Any suggestions are helpful.
Try the following:
Open up Android Studio to the welcome screen where you can select projects
Click on Configure in the lower right corner
Click on Project Defaults and then click on Project Structure
Click on the checkbox Use Embedded JDK (Recommended)
Click OK
That will use the Android Studio embedded JDK instead of a configured one.
After I restart my laptop, I have a problem with my project on android studio.
when I open android studio I see
that shows run btn is disabled. and my left menu is changed.
I confused with this problem.
and there is no "Android" option on dropdown ,
and this is my edit configuration view:
I found an answer that did repair my project.
there was an error on bottom right side of android studio that told "plugins are disable"
I clicked on it and another window opens then I checked options and press OK.
so after that it suggests to restart android studio.
the there was all right.
Excuse me for my English. I will thanks to some one that edits my answer to correct English.
Click here and select Android. Your run option will appear.
From My Sample project
I made a simon says project at home and brought the disk on key to school,
when I opened it on the program in the school computer all of this
my code is solid and it works but for some reason all of these baisc methods like the R symbol that is used in "R.id.etc"
the "AppCompatActivity" that is used in the title of the activity calss is not resolved
and the app in
import android.support.v7.app.AppCompatActivity;
is not resloves , is there an easy fix for this issue?
I have tried cleaning and rebuilding the project but my knowledge of this ide doesn't extend beyond that, my project builds with no erros but it shows errors for no reason on the code page and says it cannot resolve symbols.
I have run the project on my phone and the build ran fine with no erros and the code worked just like before, my android final project is due in a week and I want to keep working on it please help .
You try to choose File | Invalidate Caches/Restart then uncheck offline mode and final Clean, Build Project.
i solved it by using this solution from a different thread posted by "Nauraushaun"
https://stackoverflow.com/a/30262226/7547488
From 2 days, when I open Android Studio project, it seems like JDK is not defined, like on picture. When I place mouse cursor on some red method and click alt + enter, I can setup JDK, but when I make it, it does not help at all. Even Gradle refresh gives nothing.
I can temporarily fix this by going to "Invalidate caches/Restart...", but then upon the next restart I see the same problem.
Android Studio Version: 2.3.3
Edit