Android studio sdk settings

Configuration

In this document

See also

During installation, Android Studio provides wizards and templates that verify your system requirements, such as the Java Development Kit (JDK) and available RAM, and configure default settings, such as an optimized default Android Virtual Device (AVD) emulation and updated system images. This document describes additional configuration settings you may want to use to customize your use of Android Studio.

For specific documentation about emulator and device setup and use, see Managing Virtual Devices, Using Hardware Devices, and OEM USB Drivers.

Update channels

Android Studio provides four update channels to keep Android Studio up-to-date based on your code-level preference:

  • Canary channel: Canary builds provide bleeding edge releases, updated about weekly. While these builds do get tested, they are still subject to bugs, as we want people to see what’s new as soon as possible. This is not recommended for production.
  • Dev channel: Dev builds are hand-picked older canary builds that survived the test of time. They are updated roughly bi-weekly or monthly.
  • Beta channel: Beta builds are used for beta-quality releases before a production release.
  • Stable channel: Used for stable, production-ready versions.

By default, Android Studio uses the Stable channel. Use File > Settings > Appearance & Behavior System Settings > Updates to change your channel setting.

Proxy Settings

Proxies serve as intermediary connection points between HTTP clients and web servers that add security and privacy to internet connections.

To support running Android Studio behind a firewall, set the proxy settings for the Android Studio IDE and the SDK Manager. Use the Android Studio IDE HTTP Proxy settings page to set the HTTP proxy settings for Android Studio. The SDK Manager has a separate HTTP Proxy settings page.

When running the Android Plugin for Gradle from the command line or on machines where Android Studio is not installed, such as continuous integration servers, set the proxy settings in the Gradle build file.

Note: After the initial installation of the Android Studio bundle, Android Studio can run with internet access or off-line. However, Android Studio requires an internet connection for Setup Wizard synchronization, 3rd-party library access, access to remote repositories, Gradle initialization and synchronization, and Android Studio version updates.

Setting up the Android Studio Proxy

Android Studio supports HTTP proxy settings so you can run Android Studio behind a firewall or secure network. To set the HTTP proxy settings in Android Studio:

  1. From the main menu choose File > Settings > Appearance & Behavior — System Settings — HTTP Proxy.
  2. In Android Studio, open the IDE Settings dialog.
    • On Windows and Linux, choose File > Settings > IDE Setting — HTTP Proxy.
    • On Mac, choose Android Studio > Preferences > IDE Setting — HTTP Proxy.

    The HTTP Proxy page appears.

  3. Select auto-detection to use an auto-configuration URL to configure the proxy settings or manual to enter each of the settings. For a detailed explanation of these settings, see HTTP Proxy.
  4. Click Apply to enable the proxy settings.

Android Plugin for Gradle HTTP proxy settings

For application-specific HTTP proxy settings, set the proxy settings in the build.gradle file as required for each application module.

For project-wide HTTP proxy settings, set the proxy settings in the gradle/gradle.properties file.

For information about using Gradle properties for proxy settings, see the Gradle User Guide.

Note: When using Android Studio, the settings in the Android Studio IDE HTTP proxy settings page override the HTTP proxy settings in the gradle.properties file.

SDK Manager HTTP Proxy Settings

SDK Manager proxy settings enable proxy internet access for Android package and library updates from SDK Manager packages.

To set the SDK Manager settings for proxy internet access, start the SDK Manager and open the SDK Manager page.

  • On Windows, select Tools > Options from the menu bar.
  • On Mac and Linux, choose Tools > Options from the system menu bar.

The Android SDK Manager page appears. Enter the settings and click Apply.

Источник

Урок 2. Установка и настройка Android Studio. Установка JDK. Настройка Android SDK

Как создают приложения для android? Какие инструменты нужны для разработки андроид-приложений? В этом уроке вы узнаете, как установить среду разработки мобильных приложений Android Studio и как настроить все необходимые для андроид-разработчика инструменты, такие как JDK (Java Development Kit) и Android SDK tools.

Скачать JDK (Java Development Kit) можно здесь

Скачать Android Studio и SDK tools можно здесь

#android #AndroidStudio #startandroid

Нкдавно начало выдавать в логах вот это: Gradle sync failed: C:\Users\admin\.gradle\caches\3.3\scripts-remapped\ijinit_6k62mi942oki7vsduv5w047ih\4ut6sil9ssn94pl2jxyri0vh2\init0a81367d9b026a15ebd85a3a1f50120f\cache.properties (Не удается найти указанный файл).

Подскажите, как решить проблему? Переустановка AS и JDK не помогает.

Привет, обращаюсь уже ни в первый раз, не получается скачать Android Studio, в чем может быть причина? Все оплачено, ни один из вариантов загрузки не грузит!

День добрый, не могу скачать Андроид Студио, не подскажете в чем может быть причина? Win 7/32 bit? не один из вариантов на сайте не качает, качаю по сылке https://developer.android.com/intl/ru/sdk/index.html#Other

При первом запуске андроид студии
Error launching Android Studio
The environment variable JAVA_HOME (with the value of C:\ProgramFiles\Java\jdk1.8.0_77) does not point to valid JVM installation.

Подскажите, что делать если при запуске эмулятора выскакивает это сообщение:
Cannot launch AVD in emulator.
Output:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
Компьютер 32 ядерный, Java установила x86. Что еще не так??
Пожалуйста помогите, третий день мучаюсь.

Здравствуйте.
помогите при создании нового проекта в Android studio выдает ошибку
Error:C:\Users\Чеслав\.gradle\caches\2.8\scripts\asLocalRepo6_6sv5w2d3lgnmhlg42gale6i9k\init\cache.properties (Не удается найти указанный файл)

при этом по указанному адресу такой файл существует с расширением lock . пробовал переустановить Android studio и jdk не помогает. Что не так?

У вас кириллица в пути — это источник проблемы

Здравствуйте!
В Android studio при попытке создания нового проекта открывается пустое окно. Что можно сделать?

Cannot launch AVD in emulator.
Output:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!

Источник

Installing the Android SDK

Android Studio provides everything you need to start developing apps for Android, including the Android Studio IDE and the Android SDK tools.

If you didn’t download Android Studio, go download Android Studio now, or switch to the stand-alone SDK Tools install instructions.

Before you set up Android Studio, be sure you have installed JDK 6 or higher (the JRE alone is not sufficient)—JDK 7 is required when developing for Android 5.0 and higher. To check if you have JDK installed (and which version), open a terminal and type javac -version . If the JDK is not available or the version is lower than 6, go download JDK.

To set up Android Studio on Windows:

  1. Launch the .exe file you just downloaded.
  2. Follow the setup wizard to install Android Studio and any necessary SDK tools.

On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.

Select Start menu > Computer > System Properties > Advanced System Properties. Then open Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, for example C:\Program Files\Java\jdk1.7.0_21 .

The individual tools and other SDK packages are saved outside the Android Studio application directory. If you need to access the tools directly, use a terminal to navigate to the location where they are installed. For example:

To set up Android Studio on Mac OSX:

  1. Unzip the downloaded zip file, android-studio-ide- -mac.zip .
  2. Drag and drop Android Studio into the Applications folder.
  3. Open Android Studio and follow the setup wizard to install any necessary SDK tools.

Depending on your security settings, when you attempt to open Android Studio, you might see a warning that says the package is damaged and should be moved to the trash. If this happens, go to System Preferences > Security & Privacy and under Allow applications downloaded from, select Anywhere. Then open Android Studio again.

  • Follow the links to install the SDK outside of the Android Studio directories.
  • The individual tools and other SDK packages are saved outside the Android Studio application directory. If you need access the tools directly, use a terminal to navigate into the location where they are installed. For example:

    To set up Android Studio on Linux:

    1. Unpack the downloaded Tar file, android-studio-ide- -linux.zip , into an appropriate location for your applications.
    2. To launch Android Studio, navigate to the android-studio/bin/ directory in a terminal and execute studio.sh .

    You may want to add android-studio/bin/ to your PATH environmental variable so that you can start Android Studio from any directory.

    If the SDK is not already installed, follow the setup wizard to install the SDK and any necessary SDK tools.

    Note: You may also need to install the ia32-libs, lib32ncurses5-dev, and lib32stdc++6 packages. These packages are required to support 32-bit apps on a 64-bit machine.

    Android Studio is now ready and loaded with the Android developer tools, but there are still a couple packages you should add to make your Android SDK complete.

    The stand-alone SDK Tools package does not include a complete Android development environment. It includes only the core SDK tools, which you can access from a command line or with a plugin for your favorite IDE (if available).

    If you didn’t download the SDK tools, go download the SDK now, or switch to the Android Studio install instructions.

    To get started on Windows:

    Your download package is an executable file that starts an installer. The installer checks your machine for required tools, such as the proper Java SE Development Kit (JDK) and installs it if necessary. The installer then saves the Android SDK Tools to a specified the location outside of the Android Studio directories.

    1. Double-click the executable ( .exe file) to start the install.
    2. Make a note of the name and location where you save the SDK on your system—you will need to refer to the SDK directory later when using the SDK tools from the command line.
    3. Once the installation completes, the installer starts the Android SDK Manager.

    To get started on Mac OSX:

    Unpack the ZIP file you’ve downloaded. By default, it’s unpacked into a directory named android-sdk-mac_x86 . Move it to an appropriate location on your machine, such as a «Development» directory in your home directory.

    Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later when using the SDK tools from the command line.

    To get started on Linux:

    Unpack the .zip file you’ve downloaded. The SDK files are download separately to a user-specified directory.

    Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later when using the SDK tools from the command line.

    Troubleshooting Ubuntu
    • If you need help installing and configuring Java on your development machine, you might find these resources helpful:
      • https://help.ubuntu.com/community/Java
      • https://help.ubuntu.com/community/JavaInstallation
    • Here are the steps to install Java:
      1. If you are running a 64-bit distribution on your development machine, you need to install additional packages first. For Ubuntu 13.10 (Saucy Salamander) and above, install the libncurses5:i386 , libstdc++6:i386 , and zlib1g:i386 packages using apt-get :

        For earlier versions of Ubuntu, install the ia32-libs package using apt-get :

        The Android SDK tools are now ready to begin developing apps, but there are still a couple packages you should add to make your Android SDK complete.

        Then, select which SDK bundle you want to install:

        Источник

        Установка Android Studio, настройка SDK

        Для того чтобы писать приложения для OS Android вам понадобится установить среду разработки Android Studio(далее в тексте AS ). Вы спросите, почему именно AS а не Eclipse? Среда разработки Eclipse работает намного быстрее, и весит меньше, чем Android Studio,

        но Google «рекомендует» использовать AS, так как в будущем он перестанет(вернее уже) перестал ее поддерживать. За Android Studio будущее, так сказать. У вас должен быть достаточно мощный компьютер, желательно x64 разрядный, так как AS использует около 3 ГБ оперативной памяти, добавьте сюда еще 3 ГБ на эмулятор андроид устройства. На моем ПК установлена win 8.1 pro x64, двуядерный процессор Intel 3.3 ГГц, с 8 ГБ оперативной памяти, и я чувствую себя вполне свободно.

        Установка Android Studio, настройка SDK

        Заходим на официальный сайт по ссылке https://developer.android.com/studio, качаем последнюю версию необходимой разрядности. На сегодня актуальная версия android-studio-2-1-2,

        весить она будет примерно 1,2 Гб. Так что запаситесь терпением, если у вас медленный интернет.

        После загрузки запустим программу установки android-studio-2-1-2.exe,

        мастер установки пошагово предложит определить состав установки,

        выбрать место установки,

        жмем далее, пока на кнопке не появится надпись Install.

        Снова ждем окончания установки.

        После этого запустим Android Studio с рабочего стола, или из меню,

        и нажмем кнопку Configure для настройки SDK. Вы увидите список установленных версий android,

        под которые можете создавать приложения, желательно чтоб они были все. Если какие то версии не установлены, то жмем на ссылку Launch Standalone SDK Manager для установки и обновления пакетов.

        Откроется менеджер SDK,

        поставьте галочки на те пункты, которые необходимо, как узнать на какие именно? Менеджер SDK вам в этом поможет, отметив необходимые пакеты версий. Затем нажмите на кнопку в правом нижнем углу с надписью Instal 1 (1..100) package..

        В вашем случае количество пакетов будет другое. Если вы лично, или то место где вы проживаете, находится под «западными санкциями», то для обновления пакетов, зайдите в меню Tools->Options.

        где можно указать адрес и порт прокси сервера,

        для обхода всяких ограничений ;-).

        После обновлений можно закрыть менеджер SDK, и приступить к созданию приложения для Android.

        В этом видео подробно показано как установить Android Studio и настройка SDK:

        Рекомендуем смотреть видео в полноэкранном режиме, в настойках качества выбирайте 1080 HD, не забывайте подписываться на канал в YouTube, там Вы найдете много интересного видео, которое выходит достаточно часто. Приятного просмотра!

        Источник

        Читайте также:  Android google play referrer
    Оцените статью