mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(lsp/java): android.jar file could not be found in tests
This commit is contained in:
+6
-2
@@ -31,11 +31,15 @@ class AndroidJarModelingRule : TestRule {
|
||||
|
||||
private val androidJar: File by lazy {
|
||||
FileProvider.projectRoot()
|
||||
.resolve("subprojects")
|
||||
.resolve("utilities")
|
||||
.resolve("framework-stubs")
|
||||
.resolve("libs")
|
||||
.resolve("android.jar")
|
||||
.toFile()
|
||||
.toFile().also {
|
||||
check(it.exists()) {
|
||||
"android.jar file could not be found"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private val androidJarIndexer: JavaJarModelBuilder by lazy {
|
||||
|
||||
Reference in New Issue
Block a user