How to disable the "Refreshing SDK" when I create a project onStudio? - android

In Android Studio, when I click the "Start a new Android Studio project" on the main window;
and then, a dialog pop up, this is the picture of the dialog:
https://i.stack.imgur.com/0oEjd.jpg
It take some time to download something, look like a part of SDK, but my SDK is downloaded already;
the "Support Repository" is already downloaded too;
https://i.stack.imgur.com/2Pklh.png
I hate this time to wait, and I want to disable this function or something, so I searching for the answer about this question, but nothing found;
I have some not too good ideas for this, one is disable the "Android Repository" on "SDK Update Sites" of "SDK Manager", if I do this, the Download Dialog shown still, but it can't download anything, so the wait time became shorter, but I can't stand too.
My version of Android Studio is 2.3.1;

you can simply disable your network when you want to open or start a project or you can give the android studio a fake proxy to disable its access to google repositories (i never test the second one but it may work ).
truly you can't get rid of these downloads in the android studio and it's a tab-suffering search.
another bothering issue which may also happen for you is that your android studio download or update gradle and it takes so much time.
for this issue, you can go to setting-> build, execution ... -> build tools -> gradle, then mark the offline work.this is a default setting for all projects.
if you already opened a project you can also select a local gradle folder for this project there.

Related

Android Studio does not install SDK

oh god i hate SO MUCH this sdk thing.
I just want to build a game made with Unity, i need androids sdk.
sdk manager alone is in console so not really for standard human. i tried but it didn't worked. the sdkmanager console open and close at speed of light.
I downloaded Android Studio to use the UI and the sdk manager embeded.
I deleted anything related to Android to make a clean install.
At startup, Android Studio ask for wish component i would like to download.
It show me all what i want but i CAN NOT CLICK on these damn things.
Then after installation it says there is no SDK (really?) and it show me what is missing but refuse to install it. still can't click.
I deleted all config files and reinstalled and retried 5 or 6 times.
just want to smash the screen. at least 5 hours lost and it goes on.
Everytime i do SDK it always goes wrong. its a nightmare.
If you want install it for Unity - you just need to install Android Studio. Then just go to Unity, click to "SDK: download" and it will automaticly download it.
So for me the answer was to delete and recreate Android/sdk folder. make sur it is empty.

Android studio first run stuck at "Downloading Components" window

I have downloaded the latest android studio bundle from android site. Installation was successful, but when I run it for the first time, it shows a window in the screenshot with message "Downloading Android SDK Tools, revision 24.1.2" and then it hangs on infinitely.
When I click on cancel and then show details, the message in attached screenshot appears. This dialog never disappears even on clicking the close button. I have to end it from process manager.
I was wondering if anyone has been able to make it work.
To 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.
To me it has worked perfectly. You have to download all data for the sdk and can be several GB and can take a long time depending on connection and repositories
If you got stuck earlier and left in middle of download, this may happen
Just go to
C:\Users\Username\AppData\Local\Android
and delete the SDK folder and now try again.
It's actually a bug with the Setup Wizard. See more here
You could try to download the previous stable release: 1.0.2 or 1.0.1.
EDIT
After further testing, apparently if you force close adb the wizard continues normally.
its not stuck. its actually downloading some tools.
if we download like this or through SDK manager.exe the speed is limited.
so it will take much time.
so i tried to open it without internet connection and it showed me some missing tools.
(andoid sdk tool 21.1.1 )
i had 21.1.2 installed but it still showed this. so i manually downloaded it from
internet ( here you will get your max download speed). and placed it with 21.1.2 installation file.
and now it all works.
ps:it was the only file i missed. it won't be the same with everyone
it is a reported bug and I am facing it too in version 1.2.0 see this
Components of the SDK are continuously released and Android Studio's updates aren't very frequent.
You can update the components manually with SDK Manager.
Go to C:\Users\Username\AppData\Local\Android\sdk
Open SDK Manager.exe
Update the packages.
Start Android Studio.

How to update Android Studio automatically?

I need to Update Android Studio, to the 0.9.9 version, but when I press "Download" (On the update info dialog box) it sends me here:
http://developer.android.com/sdk/index.html
Isn't there a way to make the update happen automatically, because I don't even know how to update it manually.
Also, in the dialog, there is this recommendation:
To configure automatic update settings, see the Updates dialog of your IDE Settings.
The word "Updates" is a link, but it doesn't work.
For this task, I recommend using Android Studio IDE and choose the automatic installation program, and not the compressed file.
On the top menu, select Help -> Check for Update...
Upon the updates dialog below, select Updates link to configure your IDE settings.
For checking updates, my suggestion is to select the Dev channel. I
don't recommend Beta or Canary
channel which is the unstable version and they are not automatic installation, instead a zip file is provided in that case.
When finished with the configuration, select Update and Restart for downloading the installation EXE.
Run the installation.
Warning: Among different version of Android Studio, the steps may be different. But hopefully you get the idea, as I try to be clear on my intentions.
Extra info: If you want, check for Android Studio updates # Android Tools Project Site - Recent Builds. This web page seems to be more accurate than other Android pages about tool updates.
The simplest way to update is as follows:
Go to the start screen for Android Studio. If it automatically opens a project when you open it, close that project (not exit).
At the bottom there will be a check for updates link which you can use to update to the latest version.
There's not always an updater between versions, depending on the version you're starting from and what you're updating to. If that happens, download the full installer and reinstall Android Studio.
Here's the easiest way, as in snapshot,
download the required file and install.
On the startup screen you can use the configure button to check for updates.
1) Choose configure > Check for Update
2) Download the latest updates
Through Android Studio:
Help
Check for latest update
Update
for windows users
go to HELP> CHECK FOR UPDATES>UPDATE(click the link updates)
If you go to help>>check for updates it will tell you if there's an update.
You don't have to change from the stable channel. If you aren't offered an update and restart button, kindly close the window and try again. After about 4 or 5 checks like this, it will eventually show you update and restart button.
Why? because google.
If you are already using Android Studio, you can update via the built in Update mechanism (Check For Updates); make sure you switch to the canary or beta channels if you're not being offered an update.
To configure automatic update settings, see the Updates dialog of your IDE Preferences or settings. You can then switch to either the canary or beta channels. (The default is "stable" but probably that one fails to automatically inform of updates).
Hope it helps. Thanks.
These steps are for the people who already have Android Studio installed on their Windows machine >>>
Steps to download the update:
Google for “Update android studio”
Choose the result from “tools.android.com”
Download the zip file (it’s around 500 MB).
Steps to install Android Studio from a .zip folder:
Open the .zip folder using Windows Explorer.
click on 'Extract all' (or 'Extract all files') option in the ribbon.
Go to the extract location. And then to android-studio\bin and run studio.exe ifyou’re on 32bit OS, or studio64.exe if you’re on 64bit OS.
By then, the Andriod Studio should open and configure your uppdates
I am having a similar problem while updating from 2.3.2 to 2.3.3.
Go to the bin folder of your Android Studio installation folder:
e.g.
cd opt/android-studio/bin
Provide run permission for studio.sh file: chmod +x studio.sh
Run Android Studio from here: ./studio.sh
and try "update and restart" from android studio.
as of AS 1.2+ there is an auto-check for updates which will let you choose between the stable, dev, canary, and beta channels. However it is just a check instead of a full update script. It does require that you click to install and restart your install ( A problem for a remote server situation)
Yes you are right. There is no built in mechanism for automatically updation of Android Studio. You have to manually download it and configure it.
MacOS users
//Manually
Android Studio -> Check for Updates...
//Check Automatically
Android Studio -> Preferences... -> Appearance & Behaviour > System Settings > Updates -> Automatically check updates for <channel>
//Check Now
I think in the new versions of android studio there is no update and restart when you press check for updates from the android studio, so you have to download the newer version from their official website and install it manually. First, you have to change the name of the previous setup version folder for Example Android Studio to Android Studio1, and you can now install the newer version and everything will be the same as before.

Cannot create a new android application on eclipse

I am a beginner to android development,I have downloaded adt-bundle-windows-x86_64 with android 4.2 and started the eclipse version(Android developer tools) provided with it.But when I click finish after filling all the details in new android application dialog box,the finish button doesn't seem to respond at all.At the first click on finish button an application is created but no java files in it and the dialog box stays still.At least the android 4.2 library is not in the application.src is also empty.
I'm working with Windows 7 64bit and JDK 1.6 64bit.
Any idea on solving this?
http://developer.android.com/training/basics/firstapp/creating-project.html
http://developer.android.com/tools/help/adt.html
http://www.chhitizbuchasia.com/articles/chhitiz/2011/02/Setup%20Android%20SDK%20With%20Eclipse.html
http://developer.android.com/sdk/installing/installing-adt.html
Cannot create a new Android Project using Eclipse
install android sdk manager
step1
step2
step3
install the following sdk to perform the application
Download ADT plugin
http://developer.android.com/sdk/installing/installing-adt.html#Download
BASIC STEPS
http://blog.teamtreehouse.com/the-one-stop-android-sdk-installer-you-always-wanted
Best Jvm setting
Eclipse is not that much robust IDE.If nothing can solve your issue.try to restart Eclipse and your Computer.
and yes,before restarting just update the packages.
Go to SDK Manager, and install available updates for following packages.
Android SDK Tools
Android SDK Platform-tools
After updating,it will be look like this,
I just got mine past this bug; hopefully yours will fix too?
On the screens with menus to select from, where one item is greyed (selected?) as default:
Deliberately click the item, to ACTUALLY select it (it turns dark blue or something).
Mine apparently got caught up on the "Make activity" (or whatever) page, and until I went back and assumed that the default had failed to select it, I was unable to choose finish (even though it clicked, looked as though it was going to do something, and then didn't go).

Eclipse cannot find Android Support Library

I am an experienced programmer but new to Android, hence using Eclipse for the first time.
Unfortunately I cannot get my first project off the ground. I get as far trying to create the project when the following sequence happens.
A screen arrives titled 'Install Dependencies' telling me that the required version is 8 and the installed version is 'Not installed'
I click on the Install/Upgrade button and something must happen because Android SDK Manager pops up and I get a whole series of 'Fetching:' messages.
The next screen asks me to Choose Package to Install and the only option is Android Support Library, revision 10. This doesn't bother me as I presume 10 is better than 8 so I hit the Install button.
This is where it all goes wrong as I get a red message saying:-
File not found:C:\Program Files (X86)\Android\android-sdk\temp\support_r10.zip (Acces is denied).
Sure enough, when I check this folder, it is empty.
Now, something must have happened as as SDK Manager did a whole lot of fetching and must have put these files somewhere.
I am quite happy to find them and put them in the correct folder but the question is
What is the name of the files that I am looking for?
Run SDK Manager as administrator and then install Android Support Library from Extras
Download the sdk manager seperately and install files from there. put it in a place which is accessible to you and then point your eclipse android directory to it. tools>options>android sdk
Run eclipse as Administrator. This is the solution.
Try running your application (Eclipse) in Admin Mode.
Right click on the Eclipse app, and choose "Run as Administrator"
This will fix your problem.
properties >java build path >click library tab > add jars > add jars from the support library.

Categories

Resources