What do I do when Android Studio imports a project in suspended animation?

Source: Internet
Author: User

Although I am still a rookie, but should not be said to be a beginner, all the way over, all kinds of pit tread, rose a lot of posture.

here, I'm talking . Getting Started Android Studio When you encounter the most painful thing, should be able to arouse our Chinese Android Beginner's resonance, why special emphasis on " China "? You'll find out if you look down. OK, no more nonsense, ready to go no, I want to map.

Card half a day has wood there!! To hit the computer there are wood!! You asked me why? 666, I think our heavenly GFW is more able to explain this problem. Of course, this is only a spit, in the final analysis, because the Gradle version of the project and our local version does not match, that is, we do not have a corresponding version of the local cause, so that in the construction project,as required to Gradle download the corresponding version of the official website, then, in the celestial, the outcome is conceivable.

So what? Do you have to turn over the wall? This, of course, is a solution. Okay, let's summarize the solution.

1, did you say, turn over the wall?

2, for the local already have Gradle a version of the classmate, that is, you can open a certain project. OK, so we'll go into the folder for this project.


Did you see that gradle folder? Open it and then open the wrapper, and thenyou can see the guy called Gradle-wrapper.properties . Use the editor to open it, Macvim is used here .

< Span style= "FONT-FAMILY:CALIBRI;FONT-SIZE:16PX;" > > No, the open project uses the  gradle 2.1 version. At this time, you will be wise to understand the minute, since this version can open, then I do not want to import the project in the   gradle-wrapper.properties  gradle 2.1

3, some students may ask, although this as download the thief JB slow, but I want to know this download gradle save where. Well, yes, that's a good question. Whether it's OSX,Linux, or Windows, its storage path is in the. Gradle folder in the user directory . Let's take a look.

See, There are various versions in gradle/wrapper/dists/, and so on, what have you found!

Notice the time, this is not just the point we imported the project at that time, and this gradle version is indeed gradle-wrapper.properties in the corresponding Wow. What does that mean? People really are in the next thing did not do other bad AH ~ ~ , see here, wit you say, Sister's as under so slow, special I come, and then you went to the official website of Gradle,http:// Www.gradle.org, find the corresponding version, silently open the Thunderbolt, into the high-speed Channel ..... Of course, you can also find someone else on Baidu has been downloaded and uploaded to the domestic server, but this is afraid of poison, yes is really poisonous ... Finally, you copy the downloaded zip file (do not unzip) to a random name folder in the corresponding version directory (see figure).


Here, note that because the folder for this random name is  as  > So this breaks our own illusion of creating a new folder, so we can only import the project first, then let it entertain the card for a while, then the ruthless   Kill  Drop it, this time there will be a corresponding directory come out .... Yes, one more note, the name of the folder is gradle-2.1-all Gradle  all, bin  and several categories, all  bin  A little more manuals, Source files and the like, you can only next  , bin gradle-2.1-all.zip < Span style= "font-family: the song Body;" The   is copied to the corresponding directory, the ok  Well, can save dozens of   m  gradle-2.1-bin  Oh, you're so headstrong.

do you have any idea? Well, I was going to be able to finish my BB for so long ... After mastering, mother no longer have to worry about I can not steal other people's wisdom, let me a person smile a while first, ha haha haha.


Original from: Jane book /Come on.

What do I do when Android Studio imports a project in suspended animation?

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.