Skip to main content
add how to ignore some library
Source Link
Hun
  • 3.8k
  • 41
  • 75

before(default)

implementation fileTree(include: ['*.jar'], dir: 'libs') 

just add '*.aar' in include array.

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 

it works well on Android Studio 3.x.

if you want ignore some library? do like this.

implementation fileTree(include: ['*.jar', '*.aar'], exclude: 'test_aar*', dir: 'libs') debugImplementation files('libs/test_aar-debug.aar') releaseImplementation files('libs/test_aar-release.aar') 

before(default)

implementation fileTree(include: ['*.jar'], dir: 'libs') 

just add '*.aar' in include array.

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 

it works well on Android Studio 3.x.

before(default)

implementation fileTree(include: ['*.jar'], dir: 'libs') 

just add '*.aar' in include array.

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 

it works well on Android Studio 3.x.

if you want ignore some library? do like this.

implementation fileTree(include: ['*.jar', '*.aar'], exclude: 'test_aar*', dir: 'libs') debugImplementation files('libs/test_aar-debug.aar') releaseImplementation files('libs/test_aar-release.aar') 
added 167 characters in body
Source Link
Hun
  • 3.8k
  • 41
  • 75

before(default)

implementation fileTree(include: ['*.jar'], dir: 'libs') 

just add '*.aar' in include array.

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 

it works well on Android Studio 3.x.

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 

before(default)

implementation fileTree(include: ['*.jar'], dir: 'libs') 

just add '*.aar' in include array.

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') 

it works well on Android Studio 3.x.

Source Link
Hun
  • 3.8k
  • 41
  • 75

implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')