Android Studio Can't Open Existing Projects - android

I cant open any of my existing projects on android studio for some reason, I can create a new project but any time i try and open an exiting one it opens the file finder i click on the project and nothing happens.
Ive tried invalidating and clearing cache, uninstalling all plugin, deleting, re-downloading and re-installing but nothing seems to be working
Im running macOS Catalina 10.15 and Android Studio 3.4.2
Image

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004341740-IDEA-2019-2-doesn-t-open-old-projects
Adding
-Dide.mac.file.chooser.native=false
to .vmoptions helps.

Just to summarise (and make it clear) there are 3 different options to solve this.
From within Android Studio if you can open it...
Click the menu item Help->Edit Custom VM Options...
In the editor studio.vmoptions that opens up, add the following, save and restart Android Studio
-Dide.mac.file.chooser.native=false
Via Mac OS X Terminal window, type
open -a /Applications/Android\ Studio.app "path to your project"
You can get the path to your project by going into the project directory and typing,
pwd
From Mac OS X Finder
locate the folder for the Android Studio project that you want to open.
drag the folder to the Android Studio App (from Applications or from the Dock if it is there)

There is something wrong with androdi studio in macOS Catalina, so you can not open exist project or import project in android studio. But as an alternative, you can open project in command line, like below
$ open -a /Applications/Android\ Studio.app "path to your project"

Drag the project folder and drop on Android studio icon in the dock to open the project. Since its beta we have to wait for a fix from Apple or Jetbrains.

See my answer at,
IntelliJ IDEA can't open projects or add SDK on macOS Catalina, I think it also works for Android studio.
Mac OS, Mojave or Catalina, Exit Android studio first,
Apple menu  > System Preferences, click Security & Privacy, then click Privacy.
Click the lock, then enter your administrator password.
From the list of items on the left, select Full Disk Access.
Add Android studio(or other whatever app having this problem) to the apps allowed full-disk access by using the add button.
Lock and try again.
I hope this will help.
Ref from apple support of other things, but I tried, it works!

Android Studio 3.4.2 is probably not optimized for macOS Catalina. Try downgrading to macOS Mojave. It's what I use and it's working fine.
Stay clear of beta versions - not everyone develops against beta versions.

Might be a late response. This answer is for having issues with 4.x not launching on macOS after upgrade or uninstall and reinstall.
rm -rf ~/Library/Application Support/Google/AndroidStudio{PREVIOUS_VERSION}
Example: rm -rf ~/Library/Application Support/Google/AndroidStudio4.1
https://developer.android.com/studio/known-issues#studio-config-directories

Related

android studio unable to connect to adb.Check the Event log for possible issues verify that your localhost entry is pointing to 127.0.0.1 [duplicate]

unable to connect to adb.check the event log for a possible issue, verify that localhost entry is pointing to 127.0.0.1 or:: 1 for ipv4 or ipv6
Tried adb kill-server, restart, invalidate restart nothing works.
Same issue reported over here https://issuetracker.google.com/issues/130791561
Note: I have not added any file or anything in studio, it's fresh installed Studio after format a full system still issue is there.
Replace your platform-tools with this one and delete the other one.
https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip
I was also facing this issue in android Studio 3.4 version, but now I have fixed it , if you are using windows then follow these steps:
Download Platform tools from here
https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip
Extract downloaded zip file
Go To location "C:\Users\your_computer_user_name\AppData\Local\Android\Sdk" and Delete "Platform tools" folder
Copy and Paste, downloaded platform tool folder to above location
Now Go to your android studio and Rebuild your project Then run.
For Mac Users, follow these simple steps :
Just simply Navigate to Tools > SDK Manager> Android SDK>, then click on the Tab of SDK Tools, then look for Android SDK Platform-tools and update it.
Then the last step, Invalidate cache and restart your IDE, after that, then finally you restart your Mac. (Sometimes it's this step is unnecessary)
It will work out successfully.
Solution for Linux Users.
System info: Linux Mint Cinnamon 19.1 , Android Studio 3.4.1
Issue description: Problem with platform tools.
Solution: Remove the folder manually and update SDK tools through Android Studio.
Step 1: Go to your Android SDK installation folder. By default under your home directory. Choose platform-tools and simply delete. (/home//Android/SDK)
Step 2: Open Android Studio and go to SDK Tools. (File -> Settings -> Appearance & Behaviour -> System Settings -> Android SDK -> SDK Tools) By the moment you should be able to see Android SDK Platform Tools line unchecked.
Step 3: Put a check to install Platform Tools and press OK. Notice it'll relocate the folder to the directory where deleted.
Now that you re-installed the platform tools, restart the Android Studio and your deployment targets should show up.
If you don't install the platform tool back and ever try to build or run a project you'll get this IDE error. Just FYI :)
So that's all. Enjoy.
Happy coding
If you use Windows, you might have a corruption in api-ms-win-crt-runtime-l1-1-0.dll.
Try to update it - you can get the update from Microsoft's website.
You should check it - path/to/sdk/platform-tools and try to run adb.exe
When you update Sdk platform tools(which contains adb.exe) to release 28.0.2 and if you are using windows 8.1 then it needs few updates from windows.
As per SDK Platform tools release notes(https://developer.android.com/studio/releases/platform-tools):
Updated Windows requirements : The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. If you see errors mentioning missing DLLs, you may need to manually fetch and install the runtime package."
Windows update url: https://support.microsoft.com/en-ca/help/2999226/update-for-universal-c-runtime-in-windows
Prerequisite for Windows update url: https://www.microsoft.com/en-us/download/details.aspx?id=42327
Faced the exact same issue but after updating with prerequisite url first then the other url provided now it is working perfectly fine for me.
It worked for me by selecting -> Use libusb backend
This worked for me on Windows:
Goto cmd write %temp% hit enter -> delete all data from there.
Restart your Computer.
Open Android Studio now, it will work.
Clear all cache memory (related to Android Studio)
Restart ADB manually from Android Studio (first option)
Open Command prompt and got android sdk>platform-tools> adb kill-server
press enter
and again adb start-server
press enter
Restart ADB manually form Android Stidio (second option)
go to your (SDK store path) sdk>platform-tools>adb
press enter
ex. D drive > sdk>platform-tools>adb
Restart your system
Delete the platform-tools folder from the sdk and replacing with the same from your another pc. I am also facing this problem after updating to 3.4. If you face same problem please update to Android Studio 3.5 Canary Channel.
The reason is for ADB server problem. Simply re-run your adb.
(Go to your SDK folder then inside platform-tools folder you can see adb.exe. copy the path location and paste it in your computers system Environment variable. Set a new path there and paste the adb.exe file location there. hope it will solve )
If you are using Genymotion, there is an update that fix the problem.
Genymotion 3.0.2 (April 18th, 2019)
Corrections
We have fixed an
incompatibility with the adb tool bundled in the platform-tools 28.0.2
package of the Android SDK, which caused failures to start virtual
devices.
This new version of adb changed the behavior of the “adb connect
:” command by making the “port” part mandatory. This
broke Genymotion Desktop in a few places where it did not pass the
port. We have adjusted the way we call “adb connect” and also updated
the version we ship with the product to match the one in
platform-tools 28.0.2.
If non of the above answers worked for you (as same happend to me), down grade to the old version of Android Studio by following these steps:
Uninstall current Android Studio
Go to Android Studio Archive and download any older version
After installation, Open the project. You might see an error like this
This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer.
Now, open project gradle and update classpath tools.build version. I.e. in my case Android studio version is 3.2 and classpath 3.2.1
Hope it might save someone time.
I faced this issue last night, and I tried these methods to fix:
download older platform-tools and place it in the android sdk folder.(not work for me)
adb kill-server, adb start-server.(not work for me, adb had no response with these cmd)
kill the process that occupies port 5037.(for me, there is no other .exe run at this port)
reinstall platform-tools in Android Studio.(not work)
download ADB Kits and replace them in platform-tools folder.(work!!!)
It seems that my adb file has been modified or replaced by some programs. You can try these methods, and I hope some of them can work for you.
I had this issue only after a Genymotion update, on Mac.
What worked for me: Open Genymotion preferences, Select ADB, choose "Use custom Android SDK tools" and points to your Android SDK folder.
Actually the problem is not with the android studio version 3.4
Problem is with the android platform tools version which is latest one 29.
So install the previous version of the android platform tools version it will solve your problem. as above #Ved mentioned.
Ved link:
https://dl.google.com/android/repository/platform-tools_r26.0.0-windows.zip
EndTask adb.exe from Background processes (TaskManager) and Run Application again.
It works for me

Error: Please provide a path to the Android SDK

After installing the Android studio and launching it I am getting this error.
I cannot specify the path to the SDK. I have tried giving the path as :C:\Development\Android\android-sdk-windows\platform-tools\" but the path is invalid
Try this:
close this box then
Tools -> Android -> SDK Manager
I encountered this problem when installing Android Studio 3.0.
There was in fact no folder named C:\Users\Your Name\AppData\Local\Android\Sdk after I installed Android Studio. I tried installing the Android command line tools at this location, but android studio did not accept this. (Turns out, the command line tools are not the SDK.)
Managed to fix it by doing a complete uninstall of Android Studio, deleting the C:\Users\Your Name\AppData\Local\Android folder, deleting any Android Studio settings folders (in my case C:\Users\Your Name\.AndroidStudio2.3 and C:\Users\Your Name\.AndroidStudio2.3). After reinstalling and opening Android Studio, it gave me a dialog to download the SDK.
I can think of 2 possible explanations why this worked for me:
Originally, Android Studio was opening a project straight away, which didn't trigger the "download your sdk" dialog. (This no longer occurred since I deleted my Android Studio settings.)
There was some kind of setting that made Android Studio think I already had the SDK downloaded.
Try this - C:\Users\Your Name\AppData\Local\Android\Sdk
Replace Your Name with the name of your PC.
This problem is usual after you update, or reinstall the Android Studio.. Follow these steps-
* Close all the opened project which is opened by default after you started the Android Studio.. and again open the Android Studio, it will direct you towards re-downloading of SDK components from the net (So be sure to have net connectivity at this point)..
* If above step doesn't work, then restart the PC and open Android Studio again..
Hope it will help..
C:\Program Files (x86)\Android\android-sdk
Hope this will work.
I was also stuck with this...i tried everything mentioned above, but could not get through.
Then I was about to uninstall and reinstall the IDE as mentioned above.
When I was about to uninstall, to my surprise, I found Android SDK Tools in control Panel -> Programs and Features, which was the thing I was looking for!
Android SDK Tools in Control Panel -> Programs and features
I didn't know how to find the path of that, because even after searching in my computer, I didn't get it. So, I went on further and clicked on uninstall.
There, I found the path of Android SDK Tools "C:\Program Files (x86)\Android\android-sdk\". I did not uninstall anything.
I linked this path in the dialogue box, the error was gone!
Whoever encounters the same error, should look for the "Android SDK Tools" in the programs and features in control panel, and then go for uninstalling the same.
There you will find the path of the tools folder.
Copy and paste that path, and you shall get through.
When installing Android Studio on my Mac I accidentally cancelled the dialog box that would normally have installed the SDK. To fix this I deleted Android Studio from /Applications, and deleted the following folders:
% cd $HOME
% rm -rf Preferences/AndroidStudio3.4
% rm -rf Logs/AndroidStudio3.4
% rm -rf Caches/AndroidStudio3.4
% rm -rf Application\ Support/AndroidStudio3.4
(Adjust the version number for your version.) I then reinstalled Android Studio and let it guide me through the SDK installation process.
In case anyone get to experience the same weird situation as me:
I had installed Android Studio, had projects saved, but for some reason I had to do reinstall Windows (and during that I deleted my "Android-folder" in ".../local". When you do that, you will encounter the exact same pop up.
No worries, close it and even though it says that it is needed, it's not. You just don't have access to the prior projects. When saving the new one, then everything will be OK.
The problem was solved by downloading the SDK again, in my case I had deleted the SDK folder that was in C:\Users\george\AppData\Local\Android\Sdk, because I deleted it then I had to download the SDK
I just reinstalled Android Studio (everything) C:/user/yourName/.androidStudio.4 and C:/user/yourName/.androidStudio.4.
You dont have to delete your projects folder!
In my case, going to the Settings menu in Android Studio, there I could download the SDK (none were installed) through the "edit" button
I got this error when moving a project from one computer to antother, even though it wasn't an Android project and didn't need an Android SDK.
The solution for me was to open the file local.properties and remove the line that says sdk.dir. Hope this can help someone.
All you need to do is close the project opened in android studio. This error occurs when you reinstall Android Studio. The previous project that you have been working on will be opened by default. Select that folder from file explorer and move into different location and then again launch Android Studio. The SDK installation will begin thereafter.
The Reason that why Android Studio can't install/find SDK automatically:
As I tried many times for reinstalling Android Studio, but each time I faced with this SDK popup. I figured out that after installing, Android Studio seeks for project folder automatically (usually located in C:\Users\Username\AppData\AndroidStudioProject) to syn previous settings, gradle, SDK path, Android Studio Settings etc. When I deleted this folder (if you need your previous projects copy it somewhere for latter replacement) the usual installation has been started after clicking on install.
I just encountered this issue when updating my Android Studio after a couple of years of not using it, and the solution ended up very easy:
I exited the window with the SDK prompt and closed the old project it was trying to open. Once the project was closed, the IDE was able to prompt me with the download window, and there SDK download worked!

Unable to upgrade Android studio in Ubuntu

I am currently using android studio 2.0 but wanted to update it to 2.1 as its been released on the stable channel. Now when I press on "Update & Restart" button ,it downloads the patch and then will exit but wont restart by its own.So I am starting it manually to check if update was successful but it still shows android studio 2.0 and same dialogue "Android studio is ready to update". I did it many times but no success. I am using Linux Ubuntu System 14.04 LTS.
Try the following:
After the patch was downloaded and Android Studio closed, open the terminal
Go to your android studio folder, e.g.
cd ~/android-studio
Go to bin subfolder:
cd bin
Make sure your studio.sh file has run permissions:
chmod +x studio.sh
Run Android Studio from here: ./studio.sh
After that Android Studio will find the patch and install it. Then you may close Android Studio and run it the regular way (whatever way you prefer, I run it from Launcher pad).
I solved this problem. i logged as root user then updated the android 2.0 to 2.1 it worked fine and got updated
I also faced this problem.
In 64 bit machine android studio installed in 2 different version 32bit and 64bit. At the time of update and restart 32bit android studio selected by default.
and when it load 64bit android studio.
To solve this problem please select 64 bit at the time of update and restart.
hope it will work.
As an alternate solution, you can download the Android Studio version that you want to upgrade to directly. For instance, 2.1 is located here:
2.1 # Android Tools
Make sure that you import your old settings. Also, pull your SDK out of the old install folder and point the new installation at it, if necessary. This will ensure consistency across installs.
What you have to do is simple:
Make sure you can run android studio from command line using studio.sh
If you have an open project in android studio go in "File > Close project" and close it
A small window opens up, wait for the notification for the update to appear and click on it
If 3 doesn't work, close android studio, repeat number 1 and 3
Let me know if it works
Start Android studio from /android-studio/bin/studio.sh, and then restart update process

From where do I import settings from previous version of Android Studio?

I was running Droidio (Android Studio) 0.6.1; from there I was not able to update to the newest version (a quantum leap to 0.8); I had to download it separately and install from Windows Explorer. But now the installation process is looking for old settings:
Where it seems to want to take me is here (to the Android folder, I reckon); this is what I see when I mash the "compressed ellipsis" (one dot) button:
...but I'm not sure that is really the right spot; Is it [not]? What is the precise name of the settings file I should be seeking?
UPDATE
I followed Gabriele's directive, and then I got this:
I chose "Use Android Studio's SDK"
And then I got this when trying to rebuild my project, "Error:Execution failed for task ':app:preBuild'. failed to find target android-19 : C:\Users\clay\AppData\Local\Android\android-studio1\sdk"
UPDATE 2
I then opened the SDK Manager and installed what was missing/out of date, and tried to build again.
I got the error, "Failed to refresh Gradle project 'Platypus' Error: Cause: failed to find target android-19: C:\users\clay\AppData\Local\Android\android-studio1\sdk Install missing platform and sync project
The "Install missing platform and sync project" part of the message is a link. I clicked it, accepted the License Agreement.
Once that finished, the build failed again with a similar message: "...failed to find Build Tools revision 19.1.0 Install Build Tools 19.1.0 and sync project"
Again, the "install..." jazz was a link; I clicked it, accepted, and installed...
The next problem child was, "Error:The project is using an unsupported version of the Android Gradle plug-in (0.11.2) Fix plug-in version and re-import project"
Acquiescing to the counsel of the wise old man in "Never Cry Wolf," I endeavored to persevere by clicking "Fix plug-in version and re-import project"
At which point I finally got a successful build.
UPDATE 3
I then ran the project, and it seemed to be running (it said so, and the red square was visible), but no emulator ever appeared.
I opened the AVD Manager, and the device had a warning icon (repairable). I clicked the "Repair" button; it seemed to work - the warning icon disappeared.
But then I got this:
It still won't display an emulator when I Run > Debug App...
It used to be (with Droidio 0.5* to 0.61) that the first time I ran, I would see this:
...and the Emulator would eventually come up; subsequent runs of the app, the Device would be listed at the top (under "Choose a Running Device") - no more, though - it is only at the bottom as shown in the scream shot above, even on subsequent runs of the app...
I reckon I should try "re-creating the AVD's weird, malformed config.ini" but don't savvy just what steps to take to accomplish that.
UPDATED 20/10/2022
If you are using Android Studio Dolphin | 2021.x.y you will find these folders:
in Windows should be in c:\user\yourname\AppData\Roaming\Google\AndroidStudioX.Y
in Linux should be in /home/yourname/.config/Google/AndroidStudioX.Y and /home/yourname/.local/share/Google/AndroidStudioX.Y
in Mac should be in ~/Library/Application Support/Google/AndroidStudio2021.X.Y
If you are using AndroidStudio Arctic Fox 2020.3 you will find these folders:
in Windows should be in c:\user\yourname\AppData\Roaming\Google\AndroidStudioX.Y
in Linux should be in /home/yourname/.config/Google/AndroidStudioX.Y and /home/yourname/.local/share/Google/AndroidStudioX.Y
in Mac should be in ~/Library/Application Support/Google/AndroidStudioX.Y
If you are using AndroidStudio 4.1/4.2 you will find these folders:
in Windows should be in c:\user\yourname\AppData\Roaming\Google\AndroidStudioX.Y
in Linux should be in /home/yourname/.config/Google/AndroidStudioX.Y and /home/yourname/.local/share/Google/AndroidStudioX.Y
in Mac should be in ~/Library/Application Support/Google/AndroidStudioX.Y
If you are using AndroidStudio 2.1-4.0 you will find these folders:
in Windows should be in c:\user\yourname\.AndroidStudioX.Y
in Linux should be in /home/yourname/.AndroidStudioX.Y
in Mac should be in ~/Library/Preferences/.AndroidStudioX.Y
If you are using AndroidStudio 2.0 you will find these folders:
in Windows should be in c:\user\yourname\.AndroidStudio2.0
in Linux should be in /home/yourname/.AndroidStudio2.0
in Mac should be in ~/Library/Preferences/.AndroidStudio2.0
If you are using AndroidStudio 1.5 you will find these folders:
in Windows should be in c:\user\yourname\.AndroidStudio1.5
in Linux should be in /home/yourname/.AndroidStudio1.5
in Mac should be in ~/Library/Preferences/.AndroidStudio1.5
If you are using .AndroidStudioPreview 1.4 you will find these folders:
in Windows should be in c:\user\yourname\.AndroidStudioPreview1.4
in Linux should be in /home/yourname/.AndroidStudioPreview1.4
in Mac should be in ~/Library/Preferences/.AndroidStudioPreview1.4
If you are using AndroidStudio 1.3 you will find these folders:
in Windows should be in c:\user\yourname\.AndroidStudio1.3
in Linux should be in /home/yourname/.AndroidStudio1.3
in Mac should be in ~/Library/Preferences/.AndroidStudio1.3
Your setting (with a Preview version):
in Windows should be in c:\user\yourname\.AndroidStudioPreview
in Linux should be in /home/yourname/.AndroidStudioPreview
in Mac should be in ~/Library/Preferences/AndroidStudioPreview
I used a method to trick the Android Studio to import settings from previous one without exporting the settings and it worked.
Just go to your previous .AndroidStudio\config folder, copy and paste them all to the new one (in my scenario I updated from 1.1 to 1.2 beta) .AndroidStudioPreview1.2
(For preventing any failure, please make a Rar file of your original config,
also, after it works, export it so you can import it if you need it)
Starting with Android Studio 0.8.0 (Beta) its now
/home/{username}/.AndroidStudioBeta
for a *nix environment
UPDATE:
Since Android Studio is now out of beta the settings can now be found in:
/home/{username}/.AndroidStudio
On mac Sierra, Android studio 2.3
/Users/[username]/Library/Preferences/AndroidStudio2.3/
On my Mac, using Android Studio 2.1, the directory is
~/Library/Preferences/AndroidStudio2.1/
that is, not a hidden dir.
For Linux and Android Studio 4.2+, the location is:
/home/[username]/.config/Google/AndroidStudio4.1
assuming you are upgrading from version 4.1.
Contrary to JetBrains' documentation, but according to Configure Android Studio, the configuration is currently under a "Google" folder:
Windows: %APPDATA%\Google\<product><version>
Mac: ~/Library/Application Support/Google/<product><version>
Linux: ~/.config/Google/<product><version>
That's where I found them (the Mac variant).
And in a *nix environment, this will probably be located at /home/[username]/.AndroidStudioPreview
for Android Studio 4.2, Google has moved it to %appdata%\Roaming\Google\AndroidStudioPreview4.2
There is a single point of reference for the location of the settings folder for all Jetbrains IDE's for all OS's:
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
2020.1 and above versions
2019.3.x and below versions
To migrate the settings look for the folder listed under Configuration directory

Android Studio Can't Create new Android Project

I'm using the most recent Android Studio and today my Mac crashed. After rebooting, I opened Android Studio and now all of my projects are erroring out with the Android URI not being found. They won't build, won't make, nothing. If I create a new Project, Android project is not one of my options, just all the rest of the options.
Is there anything I can do besides remove and reinstall?
I recommend you to Reset your Android Studio instead of fresh installation(At least give a try).
On Windows:
Go to your User Profile Folder - on Windows 7/8 this would be:
[SYSDRIVE]:\Users\[your username] (ex. C:\Users\pyus13)
Inside this there will be a folder named .AndroidStudioPreview (It can be hidden so please check ).
Delete this folder (Better to take a backup before deletion).
This will reset your AS to defaults.
Now Start your Android Studio you will see the start dialog with settings.
Do the following to set your Android sdk path :
Go into Configure → Project Defaults → Project Structure → Project
Add new SDK and referencing to the SDK Folder that you have and then click apply and ok.
Try to open any of your earlier project or create new one and check. try syncing with Gradle after opening project.
For Linux
Depending on your AndroidStudio version, the settings are stored in ~/.AndroidStudio, ~/.AndroidStudio1.1 or ~/.AndroidStudio1.2.
Open a terminal and run the following code:
ls -a | grep Android # See which of those three folders above you have. Then rename each of the settings folders you have with the appropriate mv command:
mv .AndroidStudio .AndroidStudio.bak
mv .AndroidStudio1.1 .AndroidStudio1.1.bak
mv .AndroidStudio1.2 .AndroidStudio1.2.bak
Go to preference > Plugins uncheck the plugins which appear in red colour and recheck it again.
Do apply
Now the issue will get resolved
Resetting Android Studio worked for me!
You can reset studio by deleting .AndroidStudio directory from Users directory.
C:\Users\Abc\\.AndroidStudio
Thanks.
I'd recommend you do a uninstall of Android Studio and then do a clean install. It might be that there are corrupted or locked system files that are causing the issue. Make sure you backup your Android projects onto a USB first - just in case.
I have solved this problem for my latest android studio
Method I ( Unhide the AppData ) :-
1) Show your hidden files from view -> hidden items(check it)
you will see hidden folders & files as light color.
2) Then go to C:\Users\john (instead of john, it should be your user name).
3) Right click on "AppData"
4) Just uncheck the Hidden box
5) Move "sdk" folder from C:\Users\john\AppData\Local\Android to C:\Users\varad\AppData
6) Open android studio, goto Configure-> Project defaults ->Project structure
7) update new path of SDK like C:\Users\john\AppData\sdk
Restart Android Studio.
Method II ( Move your SDK to another location) :-
1) Move "sdk" folder from C:\Users\john\AppData\Local\Android to any folder you want.
2) Then update the SDK path in Android Studio from goto Configure-> Project defaults ->Project structure
3)Restart Android Studio.
:-) Enjoy Android Development.
I go this path:
C:\Users\...YOUR-USER-NAME...\.AndroidStudio3.2\config\disabled_plugins.txt
remove this line:
org.jetbrains.android
then refresh SDK in settings. Works fine now :)
This morning I downloaded android studio 2.1, and tried to create new project unfortunately I can't create new project, and I found this post #pyus13 suggests that to reset android studio, but it can't solve this problem.
And I checked android sdk in \AppData\Local\Android\sdk, saw android-23 in platform folder, with my previous experience with eclipse it is ready for running. A couple of hour I found a way to solve this problem, I download android 6.0, api 23 (SDK platform) with android SDK Manager. Do again for creating new project, it is ok.
Thank
For MAC User
All plugins, SDK setting was correct still faced the problem.
Applied following solution - on MAC
Give read write permission to .android folder
sudo chmod -R 777 .android

Categories

Resources