Android studio installation and issues

1. Installation of Android studio

[Tips] A. The following Android studio 2.2.2 version. (also new version)

              B. The following is the sdk that comes with Android studio

①Double-click the installation file to install

 

②If there is no SDK, check the Android SDK. (If there is, you can choose not to check)

 

③Set the installation path of Android studio and the location where the Android SDK is stored

 

④Start Android studio

【Personal settings】

 

【Size of SDK after installation】

 

2. Problems encountered in installation

①Unable to access Android SDK add-on list

【reason】

  A. After installing AS for the first time and starting it, it is detected that the computer has no SDK. This can happen even if the Android SDK is ticked.

  B. You can install the sdk later, or set the AS to be opened for the first time without downloading the sdk.

【Solution】

      Select the path where Cancel will download and configure the SDK later. If it has been checked, after entering Android studio, you can search for sdk through file--->setting--->

[Configuration of SDK path]

 

3. Create the first project for testing and the first simulator

①Create the first project

 

 

②Create the first simulator

[Tip] It is recommended to create a smaller size if the computer configuration is low.

 

 

4. Problems in operation

①Error:Connection timed out:connect.If you are hahind an Http proxy.Please configure the proxy settings ether in IDE or Gradle.

【reason】

 Because the project configuration (gradle, build) is different from the local one, it must be updated. But at the same time, we can't access Google's related websites, so we can't make updates.

【Solution】

  A. Modify gradle to the locally downloaded gradle, and set it to your installed version such as 2.2.2. (build.gradle2gradle->wrapper->gradle-wrapper.properties)

  B. Modify the classpath in build.gradle to specify the gradle version to support the gradle version number specified by gradle in the above example: gradle-2.2.2 

       C. Synchronize after modification

            
            (The new version may be on the left)
 

②Error running app: Instant Run requires 'Tools | Android |Enale ADB integration’ to be enabled. 

   [Prompt] The solution has been prompted, see the solution for the specific operation
 

【reason】

  When DDMS is turned on, the program cannot be installed. Or in other cases, this may also happen. Let's look at the solution.

[Solution] Set Tools---->Android--->Enable ADB Integration.

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324608839&siteId=291194637