Android Studio, I changed the folder name, project won't load - android

I foolishly changed the name of the root folder for my android studio project, using my Win10 PC's File Explorer, and now I can't seem to figure out how to re-open the project in Android Studio 2.2.2 .
I changed that folder name back to the original name, still can't figure out how to open it.
All 2000+ files seem to be intact, and back where they were before my misadventures, but not sure how to get the IDE to allow me to work on this project?
I am returning the programming, after more than a year off...and am pretty much a novice Android programmer.
Thanks!!!

start deleting the .idea folder in the root of your project. Then, open your Android Studio select "Open an existing Android Studio project" (or File > Open...) and select your project's folder.

Related

Android Studio : Open Android Module in Android Studio option is missing in flutter project

I am developing a flutter app for both iOS and Android. When generating the APK, I prefer to use Android studio (my default IDE is VSCODE). However, when I go to Tools > Flutter I do not see Open Android Module in Android Studio option. I do see Open iOS Module in Xcode.
I followed couple of SO answers, even tried replacing android.iml file from a working project. Nothing happened. I re-cloned my project from BitBucket because sometimes the Android Studio was fine when the project is freshly from repo, but this time, that didn't work either.
I Also tried opening the gradle file and looking for the option (as explained in one SO answer), that didn't work too.
However I noticed, few issues.
In the folder structure, the root folder is replaced by the flutter icon. in projects where I have no issues with, the folder icon is folder.
In here I see .dart_tool folder. In working apps with no issue, I do not see this folder.
I do not have an android.iml file. In other projects I did.
Below is my folder structure in a nutshell. Whats going on here and how to fix this issue?
When you don't see any options to
open module in android studio
because of missing .iml files caused by .gitignore file, follow simple steps.
Click on File and choose Open..
Now in the opened dialog choose android folder of example flutter project under your plugin module. For e.g if test is your plugin with example as it's app then you need to select and click Ok
test\example\android
3. Then wait for Android Studio to sync and download necessary jar files.
Simplest solution
Open flutter project
Go to android folder
open manfiest file
On the top right you will see option open module in android studio
click on this option
Solution 2:-
Import your android project as a project in android studio
The easiest way is to use this command in the root directory of your project, it will create some missing files and it will definitely work.
flutter create --platforms=android .
Now just right click to Android folder

Delete project and all setting from Android Studio

My question i hope is very simple for solution.
I try this:
1) I have wrong imported project X from folder (this project is inside a folder and the icon is the simple folder) with Android Studio.
2) I delete this project from Android Studio (for try to import the second time).
Now i try to reimport again:
3) When i go to search again project X now i see the icon Android Studio not a icon folder.
So my question is..Android Studio save some setting for this project? and how i can delete all?
Inside the project you will find some Android Studio files.
.idea : in this folder Android Studio saves the settings
.iml in each module. In these files Android Studio stores the module information
You can delete these resources, and then reimport again the folder.
If what you want is to delete the whole AS project you can do so in the file explorer, just remove the project folder and restart AS. If the project appears on the recents just click it and it will go away.

Save a project as new project in Android Studio

Im new in android programming and wounder, how do make a copy of your android project in Android Studio?
I would like to save my project as a new version of my project for backup purpose. I tried just make a copy of the project in the finder and open the copied projectversion in Android Studio but it just seem to point to my old projectversion, not the new one.
How do I manage this simple and basic task?
I believe this is down to the workspace files in the .idea folder keeping absolute paths as I noticed this phenomenon when attempting to move a project.
Solution
When you have copied (or moved) the project, do not open with "Open an existing Android Studio Project", but instead open with "Import Non-Android Studio project" and select the main build.gradle file. This will fix the paths in the workspace.

checkout eclipse project from svn to android studio

I recently installed android studio and wished to work on an eclipse project that is inside an svn server.
I successfully connected with android studio to svn and managed to check out my project.
however, many folder's are missing in the project.
java source files are there, but not the res folder , assets folder
(maybe others but these are the main two)
perhaps they are hidden? how can I retrieve them ?
thank you
You may have to select the "Project view" option from the dropdown. Please find it in the image.

How to delete a project in Android Studio 0.8.9?

I have already checked this and this question. Answers are either outdated or not correct.
15 March 2015 - Close project in Android Studio, close Android Studio, delete project using the OS file manager (delete from disk) and reopen Android Studio. Worked for me Android Studio v1.1, MS Windows.
You can always navigate to android studio workspace directory (where your projects are saved) and delete the folder yourself, the next time you open android studio that project will be deleted.
MAKE IT SIMPLE (Only 4 steps)
Open Project
Go to AndroidStudioProjects Folder
Right Click on the project name to delete
Click Delete
more Here

Categories

Resources