I am facing a critical build issue in the builder. The project builds successfully when no additional screens or layouts are added. However, as soon as I add a new screen or even a simple layout (e.g., Vertical Arrangement), the build fails during the “Compiling Libraries” stage with a D8 error.
Error Message:
“Build failed due to an error in the D8 stage, not because of an error in your program.”
Steps to Reproduce:
- Create or open an existing project
- Ensure the project builds successfully
- Add a new screen OR add a simple layout (like Vertical Arrangement)
- Try to build the project
Expected Result:
The project should build successfully even after adding new screens or layouts.
Actual Result:
The build fails during the “Compiling Libraries” phase with a D8 error.
Important Notes:
- The issue occurs even when extensions are working fine initially
- The same extensions do not cause any error until a new screen/layout is added
- This suggests a possible issue with how additional resources or libraries are being compiled
- The problem seems unrelated to blocks or logic
Request:
Please investigate this issue, as it prevents scaling the app (adding screens/layouts). A fix or workaround would be highly appreciated.