Java 我知道有不同的版本。它也可能与所包含的jar有关,比如缺少一些我不知道的东西。现在有一个方法抛出了一个异常,到目前为止还不需要捕获它。另一个方法抱怨签名错误——一个输入参数首先是字符串,现在是某个类。这些差异在工作源代码中有很多。 root/libs/Sm
Java 我知道有不同的版本。它也可能与所包含的jar有关,比如缺少一些我不知道的东西。现在有一个方法抛出了一个异常,到目前为止还不需要捕获它。另一个方法抱怨签名错误——一个输入参数首先是字符串,现在是某个类。这些差异在工作源代码中有很多。 root/libs/Sm,java,android,android-studio,gradle,android-gradle-plugin,Java,Android,Android Studio,Gradle,Android Gradle Plugin,我知道有不同的版本。它也可能与所包含的jar有关,比如缺少一些我不知道的东西。现在有一个方法抛出了一个异常,到目前为止还不需要捕获它。另一个方法抱怨签名错误——一个输入参数首先是字符串,现在是某个类。这些差异在工作源代码中有很多。 root/libs/Smack/ include ':app' include ':libs:Smack' compile project(':libs:Smack') /path-to-root/libs/Smack/build.gradle Error:(4
我知道有不同的版本。它也可能与所包含的jar有关,比如缺少一些我不知道的东西。现在有一个方法抛出了一个异常,到目前为止还不需要捕获它。另一个方法抱怨签名错误——一个输入参数首先是字符串,现在是某个类。这些差异在工作源代码中有很多。
root/libs/Smack/
include ':app'
include ':libs:Smack'
compile project(':libs:Smack')
/path-to-root/libs/Smack/build.gradle
Error:(42, 0) Project with path ':smack-integration-test' could not be found in project ':libs:Smack'.
Error:(386, 0) Could not get unknown property 'clirr' for project ':smack-integration-test' of type org.gradle.api.Project.
repositories {
...
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.igniterealtime:Smack:-SNAPSHOT'
}
compile fileTree(dir: '../smack/project-1/build/lib', include: '*.jar')
compile fileTree(dir: '../smack/project-2/build/lib', include: '*.jar')
// etc
compile fileTree(dir: 'libs', include: ['*.jar']) // for all of the jars in the libs folder
compile files('libs/xyz.jar') // for a specific file
gradle assemble