Can't Repro
Status Update
Comments
vi...@google.com <vi...@google.com> #2
We could add an API to make the weighted distance customizable, aosp/3271691 has more info.
an...@google.com <an...@google.com> #3
Our team had requested additional information for this issue which was not provided within 30 days. Unfortunately there is not enough information for us to proceed and this issue is now closed.
In the future, if you encounter this or any other issue, please readhttps://developer.android.com/studio/report-bugs.html and file a new bug report with all the required information. This will help ensure the team can correctly triage, reproduce, and resolve your issue.
Thank you!
In the future, if you encounter this or any other issue, please read
Thank you!
Description
This error seems to be caused by the Android Gradle plugin 3.1.1 and not Gradle 4.4 as if I use Gradle 4.4 and Android Gradle plugin 3.0.0 it returns to a successful build.
Studio Build:
Version of Gradle Plugin: 3.1.1
Version of Gradle: 4.4
Version of Java: 1.8.0_151-b12
OS: Mac OS X 10.13.3
Steps to Reproduce:
1. Create a Android app with one library module
2. Add a java class in the tests java directory to the library module
3. Include the library's java class into the app module via sourceSets
sourceSets {
test {
java.srcDirs += RELATIVE_PATH_TO_LIBRARY_MODULE_JAVA_FILE
}
}
4. Build and a build error:
Lint infrastructure error Caused by: java.lang.reflect.InvocationTargetException
Caused by:
Caused by: java.lang.IllegalArgumentException: trying to add non-existing file to classpath: ....java
Link to stackoverflow question:
Link to Gradle scan from test project described above: