How does Android Studio Add a project as a library (for non-gradle) and androidgradle

Source: Internet
Author: User

How does Android Studio Add a project as a library (for non-gradle) and androidgradle

This article focuses on non-gradle build projects. There are some differences in gradle build. It is very easy to reference other projects as the library of this project in Eclipse, but it is a little complicated in Android Studio. So how to reference other projects as the library of this project? First, you need to import the project you want to reference as a module. How to Import module, read this article: How to import module in Android Studio (for non-gradle)

After the project is imported into a module, the specific operations are shown in the figure:

Similarly, open the Project structure, click the module you want to use as the library, then click android, and tick it in front of the Library module on the right border.


Select the module you want to reference, such as the button in the red box.


In the pop-up dialog box, select the Library module you want to reference. (several modules depend on the number of modules you set to Lirary module)

Click OK. You can see that the Library module you introduced is displayed in the Export box. Select the Library module, and then apply and OK.



The project created by android studio remains in building gradle project info.

There is no development tool worse than it. With eclipse, why should google develop such a bad tool? The development is fine. Why should it be released before it is complete, if it is not perfect, it will be released. Why is it so bad after such a long release ?! The first time a project is created, it cannot be opened when the layout file is loaded. After the sdk is set, it will die. After the upgrade, a new project will be created, and the interface will be stuck. It turns out that there are so many predecessors who have encountered the same problem, the ridiculous studio ......
 
When Android Studio starts creating a project, Failed to import Gradle project: cocould not fetch model of type'

To install Andriod Support Repository,

If you have already installed android studio or reported an error, it is because the ANDROID_HOME settings are incorrect. It should be android-studio/sdk instead of android-studio.

Gook luck!



Related Article

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.