I wanted to use custom android.bluetooth instead of which presend in android.jar which comes with android SDK. I compiled android.bluetooth into seperate jar file and import
The bootclasspath
parameter must be an absolute path. So, you should modify build.gradle like this:
def androidJar = file('android.jar') // obtain you jar file
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs.add("-Xbootclasspath/p:$androidJar") // file.toString() is absolute path.
}
}
}