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

前端 未结 17 2045
攒了一身酷
攒了一身酷 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:41

    Goto File -> Project Structure -> Modules -> app -> Dependencies Tab -> Click on +(button) -> Select File Dependency - > Select jar file in the lib folder

    This steps will automatically add your dependency to gralde

    Very Simple

提交回复
热议问题