本文介绍了如何将本地.jar文件依赖项添加到build.gradle.kt文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了有关build.gradle的类似问题,并且查看了 Gradle Kotlin Primer ,我看不到如何在build.gradle.kt文件中添加.jar文件.我试图避免使用mavenLocal()
I have gone through similar questions regarding build.gradle and I have looked through the Gradle Kotlin Primer and I don't see how to add a .jar file to a build.gradle.kt file. I am trying to avoid using mavenLocal()
推荐答案
如果您正在寻找与之等效的
If you are looking for the equivalent of
implementation fileTree(dir: 'libs', include: ['*.jar'])
那将是:
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
这篇关于如何将本地.jar文件依赖项添加到build.gradle.kt文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!