How can I import an external module (named ViewPagerIndicator) in Android Studio?
To use your Android library's code in another app module, proceed as follows: Navigate to File > Project Structure > Dependencies. In the Declared Dependencies tab, click and select Library Dependency in the dropdown. In the Add Library Dependency dialog, use the search box to find the library to add.
In Android Studio, Right-clicking on the folder to add as library. Editing the dependencies in the build. gradle file, adding: compile fileTree(dir: 'libs', include: '*. jar')}
Modules. A module is a collection of source files and build settings that allow you to divide your project into discrete units of functionality. Your project can have one or many modules, and one module may use another module as a dependency. You can independently build, test, and debug each module.
Steps to import Module in Android Studio 3.3 and lower.
build.gradle
file and check that the module is now listed under dependencies.implementation project(path: ':ViewPagerIndicator')
Steps to import Module in Android Studio 3.4 and higher (See attached image).
build.gradle
file and check that the module is now listed under dependencies.implementation project(path: ':ViewPagerIndicator')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With