I closed my android studio. Opened it the following day and the default simple new project wizard window was gone, instead its a lousy NewProject dialogbox/ wizard with java, gradle, groovy, griffon, static web, & empty project options on the left. I dont want this, the simple new project dialog/ wizard we all know with startup templates is gone. Please help, how do I get it back?
Solved by OP:
You must enable the Android Support. Plugin Configuration > Plugin > Android Support Plugin. Make sure its checked!
I tried for 1 hour, but wasting a lot of time. You can reset the Android Studio to default by only deleting the .AndroidStudio folder.
This way Android Studio will be reset. This fixed the issue for me.
NOTE: Before going ahead be aware of your old projects and create a backup.
If the Plugin > Android Support Plugin is already checked, then uncheck it, check it again. Now the android studio will display a popup asking to restart to apply the changes. Selecting to restart will reset the android configurations to the latest. If there was any missing SDK, android studio will ask to download it.
Now the + Start a new Android Studio project will be displayed!
It worked for me and I hope it helps someone else. I suspect the problem was due to outdated or improper sdk configuration.
Related
Hello there I seriously need a help, I am a python programmer who just have started learning flutter, I have been sitting on one single error for 12 hours now.
I have tried every possible solution on the internet. I have re-installed android studio too, tried to fix xml files too. I am attaching the error below and a screenshot of my build.gradle too, please ask for more if need.
I also get this issue and in my case I found two solutions. First, rebuild the project or you can also try clean project. Second if your project is not big, you creat another fresh project and copy all codes from previous project to this new one and third but not in the list, go to settings and search gradle and then select the latest version of gradle or download it after finishing it restart the android studio with "run as administrator ". Hope it will works.
When I open layout file in my new Android-Studio file and press preview tab it'll show a message Waiting for build to finish... for infinite time.
Has anyone faced the same issue or any solution?
Cleaning and rebuilding my project solved the issue.
try different theme (may be from Appcompat) and API level from top
OR
If you have made some changes in the layout just undo it.
delete .idea and .gradle folder from root of the project
close android studio , restart it
click on gradle icon from right sidebar and click sync icon to refresh project.
now rebuild the project and it should work.
After a lot searching and I tried all solution which people give here, but any of them didn't solve my problem, I guess this problem is from studio's developers, and they may fix it in next patch.
so I simply re-installed my android studio and it's solved.
Try Clean and rebuild project.and Also try Invalidate caches/Restart.And this issue is also facing because of Low Ram in laptops.
After upgrading to Android Studio version 3.1, in the Project Structure dialog the build tools version was empty. Selecting a build tools version solved the problem for me.
Hope it helps for someone facing the same issue.
See my response on similar question posted:
Android studio error java.lang.IllegalArgumentException: Resource name cannot be empty
This error can occur when you update to Android Studio 3.0. It doesn't affect your ability to build a project, but the error does not allow you to visually see your xml layout files. You will also get the error when committing files to GIT, but you can still commit and push.
What I found in one of my projects is that a file was added to the "menu" folder automatically upon Android Studio upgrade, and the file had no name. It was named simply ".xml". All you need to do is delete the file and clean your project, allowing a new build of the project. That should take care of the issue.
For me I had this problem with one file, so I simply created a new one with the same code.
Simply make a build from within AS - not the command line. I get this all the time because I'm mostly using the command line. It's been like this since early versions of AS so I recon it's not high on there list of issues.
Lately (3.2) there is a lot of new internal crashes and what not - not stable at all 🤐
the question is not as simple, as replied in
Android Studio moving project to another computer?
Just copying folder results in my case in Studio could not find SDK location, rebuild does not help as errors could not find ...-appcompat-7 appear. Studio advices to load SDK, which I do not want to do as I already have SDK on that comp.
And all that just because computers have different user accounts - hence default SDK location path differs.
Is there safe simple way to copy and/or backup my work in Android Studio?
If you use source control, an easy way might be to make sure all your changes are on the server, then clone the project on your second computer.
copy the previous SDK to your new computer with project, And set location of new SDK and refresh the project
What a program Android Studio! The issue I found is that in Gradle file appcompat was last digit different version, hence asking for download and looking on Studio server could not find old version.
I already raised ADV bug to Studio support sometime ago and got no response except that it was read.
So be it, hope somebody else will find out my answer here if faced with same issue.
I solved this problem by changing the compileSdkVersion and buildToolsVersion from the build.gradle(module) of the project.
I was using my android Studio very well. I don't know what happened and now I am getting only Building "xxxx" Gradle project info whenever I want to create my new project. I am unable to open any new project. Please help. I don't have even 10 reputations to upload the screenshot.
I think my Gradle is not working. How can I reset or restart my Gradle ?
I think you have updated your gradle build tool.
Go to file>setting>build,execution deployment> gradle> check your gradle tool version
I had many hours trying to figure this out.
I have followed just about every Stack-overflow article on the issue.
The cause for me was my Anti-virus and Firewall settings. I turned these off, and restarted my Android Studio opened my application I was trying to build it all downloaded what it needed and sync'd nicely. Problem solved, relief as I have been literally days on this.
Add this line
File -> Settings -> Compiler -> Gradle -> VM Options:
-Xmx256m
I was failing a class because of this issue. I solved it by
1) Do not delete the Android Studio Version You Downloaded, Leave it intact
2) Google search an older version of Android Studio, in my case, 2.1.1
3) Download it and install, CHOOSE CUSTOM INSTALL
4) A message should appear saying approximately "Another version of Android Studio has been discovered, the installer will only download the missing files"
5) Confirm by starting a new project
I faced the same problem. Had to wait for 30 minutes for the project to built. But then it was working properly again. So maybe waiting is a solution.
I have a problem with Android Studio. Since this morning I can't edit my layouts through the Design interface. It's stuck on "Initializing Rendering Library" and the IDE freezes. All my layouts were working well yesterday and I haven't changed anything since then.
I have tried to invalidate the cache and restart but without any result.
Try that steps :
1.Update Android SDK and Android Developer Tools.
2.If that will not help, reinstall Android Studio using the newest available version (remember to do a backup of your data and projects).
3.If that will not help, install other IDE for example Eclipse and import all your projects to it.
Good luck !
For me helped such steps:
Remove .gradle folder from the project folder, all *.iml files and
.idea
Remove C:\Users\username.AndroidStudioPreview1.2
Run Android Studio without importing settings. This will allow to see a dialog where you can open your project from scratch. If you
import settings then Android Studio will open previously opened
*.xml files which caused the problem (hanging "Initializing Rendering Library") and the situation will happen again
Run Gradle cleanup
Sync project
Invalidate cache and Restart
Build the project from command line. If use Build from AndroidStudio I got hanging "scanning files to index..."
I reinstalled my android studio without success,
Then, I downloaded the sdk again, and change my old sdk-path to the new one
After I restarted my studio, it works.
The most mysterious thing is, I rechange my sdk-path back to my older one, then every thing is ok,I don't know why,but it solved the problem