I'm trying to add a jar file to my existing app. When I tried to the following absolute path to my build.gradle, it works fine.
compile files('C:/Users/julia/AndroidStudioProjects/TestProject/libs/MyPo.jar')
However, when I tried to change it to relative path, it doesn't work.
compile files('libs/MyPo.jar'), I also tried
compile project('libs:MyPo.jar')
compile project(':libs:MyPo.jar')
What's the proper way to add this jar file to my app using relative path? Thanks.