How to avoid android studio to use absolute path?

I would like to force the gradle file gradle use the relative path when I add some .jar file as a library in android studio. I could not find a clear solution that would work for me.

When I add the .jar file as a library, I see something like the following in the gradle file:

 compile files('D:/Development/myApp/libs/my-jar-file.jar') 

and I would like to have the following:

 compile files('libs/my-jar-file.jar') 

thanks for the answers

+6
source share

All Articles