This repository was archived by the owner on Oct 18, 2024. It is now read-only.
Commit 1730d0a
committed
fix(tooling-api): project initialization failure when the project contains a Java library module
This happens due to the use of relocated packages in AndroidIDE's Java Compiler API. The 'JavaModuleCompilerSettings' class references the 'javax.lang.model.SourceVersion.RELEASE_11' enum.
However, in AndroidIDE, the SourceVersion class has the package name 'jdkx.lang.model'.
The project compiles successfully as the ':subprojects:tooling-api-model' module is a Java library due to which, 'javax.lang.model.SourceVersion' can be referenced without any errors.
However at runtime, there is no such class and hence the 'NoClassDefFoundError' is thrown. This exception is silently logged to the error stream by the JSONRpc protocol and hence it
cannot be seen in the IDE logs.
This closes #875.1 parent e56229c commit 1730d0a
File tree
2 files changed
+7
-3
lines changed- app/src/main/assets/data/common
- subprojects/tooling-api-model/src/main/java/com/itsaky/androidide/tooling/api/model
2 files changed
+7
-3
lines changedBinary file not shown.
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
0 commit comments