This is not a coding error. this is just about usage of Android studio. I tried to google and find proper solution, but I couldn't.
In an Android studio project there is XYZ.jar file in lib folder. I can use it for compiling as below in gradle.
compile fileTree(include: ['*.jar'], dir: 'libs')
Then I can add same file as dependency also.
File --> Project Structure
Select App from Module
Dependency -> + File dependency
Then Gradle change as below
compile files('libs/XYZ.jar')
What is the difference between these compile fileTree & compile files ?
If we add a jar as a dependency, will it go with generated APK ?