Awkward, as import network download demo does not open run

Source: Internet
Author: User

Study well, certainly to see the code of the great God, but so far, the computer from the Internet down from the demo very few run successfully, so very embarrassed, do not know that I will not open it, or is not open.

So to explore the record of this process, I hope that I opened the wrong way, and then in the process to understand the correct open posture ....


This article has no conclusion, no dry goods, no focus, please read carefully ...


First, a directory structure that can run the project in the resource Manager


Then the online compression package and unpacking, using a very early demo from the Great God of Hon Yang



Next open Android Studio, first of all tangled is not know whether to choose Import Project or Open ..., first choose Import Bar



Select Import after the directory will appear, select their own unpacked folder, the second tangled place is here, because this demo has several modules




So it's going to look like this after clicking Import.



Before the import, the project icon is the folder look, after the import will become the icon of as, and regardless of success, I chose a higher level, that is, CSDNDemo01, and then appear the following dialog box




Always ignore the click Next, until finish will appear open after the project



But the running key is gray, for this rookie, do not know what to do, and the bottom is blank, no display configuration Gradle what ...

So after a few detours, found in the choice of import after the first module of the project, that is, Csdndemo, will appear in another way, is the following dialog box





Click Next to open the project, there will be some things do not know what the thing



But don't panic, because at the bottom there is a progress bar, obviously as in what is busy, and the running button is green, hahaha ... All right, that's it.



There are a lot of red exclamation marks, and a bunch of not know the words, and then I ignored them, directly calm the click of Run, and then run successfully , is the text of the problem, that is, the red exclamation point of the problem ....


















But this is not the point, open can run on the line .... So compared to the table of contents, a normal is the first to give, the success of the operation is Jiangzi



And the first mistake was Jiangzi.



The modules inside it are jiangzi.



Forget it, one can not see a piece, together



By comparison, I find that they are really different (fart), and then what the divine conclusion is not come out, but a little more can be, is it




Senior (master?) This is not the point) Tell me this file is the focus, there is it is the Android project.

so I have a false model of the temporary to come to a conclusion, that is, import, to open the directory structure like Jiangzi, should be higher success rate, and then again in this area there is any significant discovery.

And then there's no ...

Awkward, as import network download demo does not open run

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.