1

I've installed IntelliJ Idea 2025.2.4 in order to create an app for smartphones, and since I'm only a bit familiar with activity views, I've selected the item "empty activity" from the menu where I could choose what kind of project to create.

The program went on to create a "Hello world" application, which (after deleting the icon references) I was able to run successfully.

Unfortunately, when I go into the file "activity_main.xml" and then switch to the design view (which to me is the most convenient way of editing the software) it shows nothing at all:

The design view showing the empty canvas

Online, I found various recommendations, none of which worked. I've tried the following:

  • Building, rebuilding and re-syncing the project with gradle
  • Installing a few JDKs
  • Playing around with parent styles in the "themes.xml"
  • Restarting after each step

If you've got any idea on how to fix this, I'd be very grateful. Strangely, when I created the project, it said that my JDK configuration was faulty, and in the gradle settings there is a "jbr-21" option in the "Gradle JVM" menu which is highlighted in red and would produce lots of error messages.

EDIT: I have now downloaded JDK 11, and it said that this was below the minimally required version. Version 17 did not work either, nor did it work to set the project JDK to 11, nor to start a project from a different template.

I figured that I might give the modern option (ie. empty activity instead of empty view activity) a chance, but now the screen remains stuck at "Initialising".

EDIT 2: After a restart, the graphical editor simply remains empty; it now doesn't even show the boundary of the screen.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.