I have added a library by going to File-> New ->Import Module
, the library added successfully, there are around 8 jar
files added in this imported module, but in my app module i am unable to access these files.
Although i can easily access files that are available in library src
folder.
These lines are added in library gradle file.
compile fileTree(dir: 'libs', include: '*.jar')
compile fileTree(dir: "$buildDir/native", include: 'native.jar')
build.gradle(app)
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':myLibrary')
settings.gradle
include ':myLibrary'
If i perform these steps in a new project, i can access classes inside jar files from my app module
, but in my current project they are not accessible.
I also tried deleting android studio preference
, invalidate cache and restart
, but nothing sees to be working here.