Summary of Import internal dependency module in Androidstudio

Source: Internet
Author: User

Today just found a good project from GitHub, want to import it into their own projects, the process also encountered some small problems, summed up, in order to review review!!!!

1. First unzip the compressed package downloaded from GitHub, locate the project file, and paste it directly into the folder of the project you want to import!!! Then Build>rebuild project and rebuild the projects.

2. File build Error, Error type:

Error:execution failed for task ': App:processdebugmanifest '.
> Manifest merger failed:attribute [email protected] value= (@mipmap/ic_launcher) from androidmanifest.xml:7:9-43
is also present at [com.github.frank-zhu:pullzoomview:1.0.0] androidmanifest.xml:13:9-45 value= (@drawable/ic_ Launcher).
Suggestion:add ' tools:replace= "Android:icon" to <application> element at androidmanifest.xml:5:5-18:19 to Override.

3. Workaround: Add tools:replace= "Android:icon" to the application in the Manifest.xml file, (theme also conflict with this: Tools:replace= "Android:icon, Android:theme ") Remember to add xmlns:tools=" http://schemas.android.com/tools in manifest with the label.

4. A project can include a number of module, which can be completely independent of each other, or can be relied upon. If you want a module to be dependent on one or more other modules, then you need to declare the current module as the library in the module's Build.gradle file.

That cannot be used: Apply plugin: ' Com.android.application '

To use: Appli plugin: ' Com.android.library '

Then to include the module name in the Settings.gradle file in the top-level project directory

Include ': App ', ' Moudle-name '

This is the most accomplished!!!

Summary of Import internal dependency module in Androidstudio

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.