Steps for Android Studio to use engineering as a third-party class library

Source: Internet
Author: User

I. Modify the project module name to the class library name that you want to add

1. Select the module folder right-click the rename key

2. Select the Rename module entry

3. Modify the name for yourself, such as Volleylibary

After the modification, select the folder where the project module is located volleylibray, and then copy to the desired project folder below, as copied to the Ch_pro project

Third, modify the Build.gradle file in the class library

1. Change the value after apply plugin to: Apply plugin: ' Com.android.library ', remove ApplicationID

Four, modify the Ch_pro inside the Setting.gradle, add the corresponding class library name

V. Add the Volleylibray class library to the project Ch_pro

1.File--->project Structure

2. Select the Module:app of the Ch_pro project, select Dependences on the right, and select "+" to open the "Module dependency

3. Click to open the corresponding module interface, select the next two times OK is done

Steps for Android Studio to use engineering as a third-party class library

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.