This problem is reported mainly in my Module project. It is normal for the main project to use ConstraintLayout. I don't know what bugs. Just follow the prompts to modify
Rendering sandbox error
Property access not allowed during rendering
at java.lang.System.getProperties(System.java:718)
at com.intellij.idea.IdeaLogger.logErrorHeader ... (IdeaLogger.java:110)
Find the studio and press the idea.properties
file under the directory /bin
, and add the following content:
android.render.sandbox=false
Then restart AndroidStudio to render the layout file normally for preview