How to include JAR dependency into an AAR library
You can add this task:
task copyLibs(type: Copy) {
from configurations.compile
into 'libs'
}
Dependencies will be downloaded from your Nexus, but when you need package the library, execute this task first and jar
files will be copied and included inside final aar
.
How to include dependencies into .aar library?
Use
compile fileTree(dir: 'libs', include: ['*.jar'])
instead of
provided fileTree(dir: 'libs', include: ['*.jar'])
Related Topics
How to Create Android Virtual Device
Android Audio Fft to Retrieve Specific Frequency Magnitude Using Audiorecord
Passing a JavaScript Object Using Addjavascriptinterface() on Android
Android: How to Disable List Items on List Creation
Intellij Idea with Junit 4.7 "!!! Junit Version 3.8 or Later Expected:"
Can't Get Download Url from Firebase Storge in Android
Why Is Accessing Textview of a Fragment Inside Activity Throwing an Error
Android Recyclerview Scrolling Performance
Android Layout with Listview and Buttons
Android How to Listen for Volume Button Events
Android: Switch Camera When Button Clicked
How to Change a Bitmap's Opacity
How to Specify the Jdk Version in Android Studio
Failed to Import New Gradle Project: Failed to Find Build Tools Revision *.0.0
How to Read Jpeg Image Using Imageio.Read(File File)
Java Gotoxy(X,Y) for Console Applications