【问题标题】:Android studio complie fileAndroid Studio 编译文件
【发布时间】:2015-06-17 21:38:32
【问题描述】:

我想在 Android Studio 中编译 jar 文件。但它出现错误说“在 org.gradle.api;interna 上找不到属性文件。

代码如下:

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.2.3'
    compile file 'libs/jtds-1.2.7.jar'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
    jcenter()
}
}

【问题讨论】:

    标签: android


    【解决方案1】:

    你不需要下载jar并添加到libs中,你可以使用jcenter repo添加依赖,将编译文件'libs/jtds-1.2.7.jar'替换为

    compile 'net.sourceforge.jtds:jtds:1.3.1'
    

    如果你想搜索其他依赖可以在这里搜索http://mvnrepository.com/artifact/net.sourceforge.jtds/jtds/1.3.1

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-11-22
    • 1970-01-01
    • 2022-06-18
    • 2022-10-11
    • 2018-04-05
    • 2014-05-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多