Bug: Project Initialization Fails in Android Code Studio While the Same Project Builds Successfully in Other IDEs
Summary
I encountered a project initialization failure in Android Code Studio. The project never finishes initializing, even though it has no build errors.
I tested the exact same project in another Android IDE, and it built successfully without any issues. Because of that, I believe the problem is related to Android Code Studio's project initialization or Tooling API rather than the project itself.
Steps to Reproduce
- Open the project in Android Code Studio.
- Wait for the IDE to initialize the project.
- Initialization fails before the project can be loaded.
Expected Behavior
The project should initialize successfully and become ready for editing and building.
Actual Behavior
The IDE reports:
Failed to initialize project
An error occurred initializing the project with Tooling API
There are no Gradle build errors explaining why the initialization failed.
IDE Log
13-07 09:30:43.393 ERROR [pool-20-thread-1] ToolingApiServerImpl: Failed to initialize project
13-07 09:30:43.397 ERROR [ForkJoinPool.commonPool-worker-12] BaseEditorActivity: An error occurred initializing the project with Tooling API
(The complete IDE log is attached above.)
Additional Information
- The same project builds successfully in another Android IDE.
- The Gradle wrapper is detected correctly.
- The Tooling API starts successfully.
- Initialization fails before the project is fully loaded.
This makes me think the issue is in Android Code Studio's project initialization or Tooling API implementation.
Possible Room Database Compatibility Issue
I also noticed that Android Code Studio appears to have problems with projects that use the Android Room Database library.
Could you please test the IDE with a project that uses Room Database to see if the issue can be reproduced?
If Room support is incomplete, it would be great if it could be improved since many modern Android applications rely on Room.
Reference Project
If it helps, you may be able to compare or reference the implementation used in the original CodeAssist project:
https://github.com/tyron12233/CodeAssist
I'm not suggesting copying code directly, but its implementation may help identify differences or missing functionality while respecting its license.
Request
Please investigate why the Tooling API initialization fails even though the project itself is valid and builds successfully in other IDEs.
Thank you for your work on Android Code Studio. I appreciate all the effort that has gone into the project and hope this issue helps improve compatibility.
Bug: Project Initialization Fails in Android Code Studio While the Same Project Builds Successfully in Other IDEs
Summary
I encountered a project initialization failure in Android Code Studio. The project never finishes initializing, even though it has no build errors.
I tested the exact same project in another Android IDE, and it built successfully without any issues. Because of that, I believe the problem is related to Android Code Studio's project initialization or Tooling API rather than the project itself.
Steps to Reproduce
Expected Behavior
The project should initialize successfully and become ready for editing and building.
Actual Behavior
The IDE reports:
There are no Gradle build errors explaining why the initialization failed.
IDE Log
(The complete IDE log is attached above.)
Additional Information
This makes me think the issue is in Android Code Studio's project initialization or Tooling API implementation.
Possible Room Database Compatibility Issue
I also noticed that Android Code Studio appears to have problems with projects that use the Android Room Database library.
Could you please test the IDE with a project that uses Room Database to see if the issue can be reproduced?
If Room support is incomplete, it would be great if it could be improved since many modern Android applications rely on Room.
Reference Project
If it helps, you may be able to compare or reference the implementation used in the original CodeAssist project:
https://github.com/tyron12233/CodeAssist
I'm not suggesting copying code directly, but its implementation may help identify differences or missing functionality while respecting its license.
Request
Please investigate why the Tooling API initialization fails even though the project itself is valid and builds successfully in other IDEs.
Thank you for your work on Android Code Studio. I appreciate all the effort that has gone into the project and hope this issue helps improve compatibility.