Exception in thread "AWT-Windows" java.lang.InternalError: unsupported screen depth

I'm trying to run a clean build of an Android Studio gradle using containers for Agents. However, when running the build step it hangs with the error:

Exception in thread "AWT-Windows" java.lang.InternalError: unsupported screen depth
[14:52:27][Step 1/1] at sun.awt.windows.WToolkit.init(Native Method)
[14:52:27][Step 1/1] at sun.awt.windows.WToolkit.run(WToolkit.java:301)
[14:52:27][Step 1/1] at java.lang.Thread.run(Thread.java:748)
 
Please help!
1
1 comment

Hi Cameron,

 

I'm afraid I haven't seen this error before, so troubleshooting it will be somewhat difficult, but there are some hints on it. AWT is a UI library for Java, which seems to imply that this is trying to load graphic libraries in the build agent. If you have the build agent installed in windows as a service, services by default do not have access to UI functionalities and while I'm not aware that it should throw those kind of errors, that might be a possibility. The fact that the error mentions an unsupported screen depth would also seem to imply that it's a UI issue, but I'm not aware of what a gradle build of an Android app would require loading UI libraries.

 

If this is the root of the issue, the solution is explained here: https://www.jetbrains.com/help/teamcity/known-issues.html#KnownIssues-Windowsservicelimitations

0

Please sign in to leave a comment.