Android Studio 1.01 + BlueStacks Development Commissioning Environment Build tour

Source: Internet
Author: User

First let me slow tone, too tired, get the most of the day, a bunch of problems ah, but mainly Android studio itself, with Bluestacks debugging is very simple.


1. Download Android Studio installation, open Android Studio, create a new project and encounter the first trouble:

Android Studio has been in the building "Project XXX" Gradle Project info interface, waiting more than 10 minutes to remain unresponsive.

Problem reason: Thanks to the great 000,android studio can't download Gradle-2.2.1-all.zip, but Android studio unwilling to fail, refused to give up, has been repeatedly retry ...

Solution: Use the Great 0 thunder or other high-tech download tool to enter the following path

Https://services.gradle.org/distributions/gradle-2.2.1-all.zip

Download, place the downloaded files in

C:\Documents and settings\[your computer user name]\.gradle\wrapper\dists\[android Studio download Gradle when a random string name created by a temporary folder]\, without decompression, Open Android Studio again and everything is OK.


2. Create a new project, write a sentence hello Android, then to debug it, Android Studio display

Gradle-error: (1, 0)Plugin with ID‘com.android.Application‘Not found

Problem reason: I don't know what the hell

Solution: Open the project folder]\app\build.gradle file

Add at the end of the file

Buildscript {

repositories {

Mavencentral ()

}

dependencies {

Classpath ' com.android.tools.build:gradle:1.0.0 '

}

}

And then you don't get that wrong.

Question: If you change another project, you have to repeat the Build.gradle again? It's not tested.


3, start debugging, Android Studio will detect the Bluestacks emulator is running, select the simulator (if not detected, you need to restart Android studio, or restart ADB)

Happy Click to Debug button, happy to see Android studio display

Local path doesn '. T exist

Problem reason: hehe, I ask who go?

Solution: Online said-to change Build.gradle, gradle-wrapper.properties, are-no, at least I changed or happy local path doesn '. T exist for a long time, Finally found a non-conformity solution:

Download: Http://dl-ssl.google.com/android/repository/tools_r23.0.5-windows.zip

Unzip, replace the original Tools folder in the Android SDK directory


Restart Android Studio, debug, select the Bluestacks Simulator, OK, finally.




Android Studio 1.01 + BlueStacks Development Commissioning Environment Build tour

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.