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