Where is the directory of Android Studio? - android

I decided to move all of my android project from the previous laptop to the new one. But when i copy the directory of Android Studio & run it, it still need to download the SDK first. But because of various internet speed's problem, it is troublesome to re-download the various SDKs.
Please tell me every directory that must i copy to make it run perfectly? (without download any plugins/sdk/whatever)

C:\Users\username\AppData\Local\Android\sdk\
on windows(username will be your customized username)
/Users/username/Library/Android/sdk.
on mac(users will be your customized username)
Then point android studio at that sdk location and it should work

Related

Stuck on setup wizard of Android Studio

I am stuck on this screen
Can't perform any further action. Since I already downloaded an SDK, I downloaded this version
Actually android studio try to download all the components of sdk, those which you don't have.
So, it can take a lot time, instead you can disable "Downloading Components" at startup:
Go to the installation directory of Android Studio.
There you will find a folder named "bin".
Inside this folder there is a file named "idea.properties".
Open this file and add the following line to the end of the file:
disable.android.first.run=true
What this will do is disable the check that Android Studio performs on first run and decides to download all that stuff.
If it asks to save the file at some different place instead of overwriting the original one, please check the access permissions to the file.
Hope this will help you.
Remove Android Studio settings dirs for re-run Setup Wizard.
I my case I removed both
C:\Users\bieli\.AndroidStudio4.0
and
C:\Users\bieli\.android
Have you specified custom path to SDK in previous step?? if you do not download the SDK you have to go through custom settings and then specify path to SDK. you are also needed to configure the path to SDK in your environment variables, if you are using window system.
What I found reason for this problem, my SDK was corrupted or damaged. My drive were crashed and I have recovered files by recovering tool, that's why files are get damaged and SDK was not working properly.
Then I redownloaded SDK and its running fine.

Android Studio moving project to other computer - SDK location differs

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.

Copying android studio setup from one system to another without downloading any files

Is it necessary to download android sdk for each and every system we install android studiod? Isnt there a way to copy the whole setup from one computer to another ?
Copying the whole Android Studio Folder (don't has to be installed on C) should work.
Not tested!
Android website have options to download only the sdks whichever you want.
And then when you install Android Studio afterwards, when it first opens it will ask you to point out the path for Android SDK either on the first windows that pops up or in the settings tab.
So just copy the SDKs into the system everytime you have to install Android Studio and just simply point it out from it.

Android SDK in Android Studio

I have downloaded the Android Studio but when I want to create a new project, an error pops up saying "Your Android SDK is out date or missing templates..
How do I fix this project, or how do I update the SDK in the Android Studio?
Click here and update your SDK ;)
You can update your sdk in many ways.
1. Download sdk from developer site.
SET:file->project Structure->in android SDK section set custom path of sdk
2.Tools->Android->SDK manager update sdk
This seems like permission problem. Someone who packed Android Studio, has the original files under non-root account. If you unpack it as root, the files and dirs has no permission for "other" (just for owner). The person who is packing Android Studio knows a lot about Android and Java, but not much about Unix permissions (uch!). There are two possible solutions:
a) unpack android-studio-bundle-...-linux.tgz as normal user, not as root (this has an advantage - you will be able to update Andriod Studio by clicking menu; but this is generally stupid because you are open to malware attack)
b) fix read permissions for files and dirs for whole android-studio directory with something like: chmod -R 755 /opt/android-studio (not ideal because all files has "x" then, but it works)
Had a similar issue in linux. I am new user to android without any projects, I followed the instructions in https://developer.android.com/sdk/installing/adding-packages.html , Once I got to "In Eclipse or Android Studio, click SDK Manager in the toolbar", I noticed that from the welcome screen configure> Sdk Manager was greyed out. To solve,closed the program and relaunched as a sudo/superuser. Then go to Project Defaults> Project Structure. In the Android SDK location field go to "directory-where-you-installed-android-studio/android-studio/sdk'. Once done, click ok. Then close and relaunch the program once more. The SDK manger should be active now

Cannot create new Android Projects in Eclipse

Using 3.6.2. When I choose to create a new Android Project, I enter a name, 'FirstProject' but the Finish button remains hollow and I cannot get past creating the project.
I did a little Google research and found a common cause of this is that the support folder that exists in the SDK's extras folder needs to be duplicated and the duplicate named to compatibility. I've done this now, and restarted Eclipse, but this still hasn't fixed the issue.
I also read that Juno causes this problem, but I'm not using Juno.
Has anyone experienced this problem before? Very eager to start an Android App!!
EDIT: A screen of the error:
You need to choose a Build SDK. If there is nothing in that drop-down, please visit the SDK Manager (Window > Android SDK Manager) and download one or more SDK platforms and associated emulators.
Make sure you add the SDK in Eclipse otherwise you will download them all and scratch your head on why they are not working.If you launch SDK manager form SDK folder and not from Eclipse it does not seem to register in Eclipse that you have downloaded these files. Took me several hours for something that should have taken only one or so.

Categories

Resources