How can I add a JAR in my gradle project?

前端 未结 2 453
终归单人心
终归单人心 2020-12-09 19:57

I am using gradle in Android studio for an android project. I have a jar that I downloaded called TestFlightAppLib.jar. This jar isn\'t present in the maven rep

2条回答
  •  盖世英雄少女心
    2020-12-09 20:14

    just add

    compile fileTree(dir: 'libs', include: '*.jar')
    

    to your dependencies in the build.gradle then all the jars in the libs folder will be included.

提交回复
热议问题