I was trying the basic Hello World program on Android Studio. The "Hello World" text from TextView does not show on the Preview. Even if I change the Hello World to something else, I do not get it on screen. What am I doing wrong?
Asked
Active
Viewed 2,506 times
1
-
What does the design editor show? – Mariksel Azemaj Jul 13 '18 at 21:08
2 Answers
0
The error can be fixed by the following steps:
Go to GradleScripts (Top Left Corner)-> build.gradle(Module:app) -> in dependencies change
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3' to
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
Then press Sync Now in Top Right Corner(Download Updates if necessary)
The Preview will start working.
You can watch this video as well to fix the issue
Video Link- https://www.youtube.com/watch?v=PBE6sBMYDH0
You must also use Theme of IntelliJ(White Theme) as Dark Theme is having rendering issues.
You can watch this video to see how to change Theme in Android Studio

Maruf Hassan
- 1,083
- 18
- 29