How to add local .jar file dependency to build.gradle file?

前端 未结 17 2261
攒了一身酷
攒了一身酷 2020-11-21 23:23

So I have tried to add my local .jar file dependency to my build.gradle file:

apply plugin: \'java\'

sourceSets {
    main {
        java {
            srcD         


        
17条回答
  •  渐次进展
    2020-11-21 23:51

    The best way to do it is to add this in your build.gradle file and hit the sync option

    dependency{
        compile files('path.jar')
    }
    

提交回复
热议问题