1

My issue is similar to this but Android Studio doesn't tell me anything about a rendering issue or compiler/build errors(I was able to build fine).

Here is what I am seeing(this is a new project) enter image description here

And the contents of content_main.xml enter image description here

After reading on different rendering issue threads, I I've tried rebuilding, cleaning, invalidate caches/restart and even starting a new project to see if the layout preview was working(Still empty)

I also played around with different sdk versions(20,19) to see if the layout preview was working but all I got was this quirky issue that I don't think would cause the layout preview to not work.

Does anyone know what my problem is here? I didn't mess around with my initial Gradle files and remove any support library dependencies. Another solution I had in mind was reinstalling Android Studio but that's last resort.

Community
  • 1
  • 1
committedandroider
  • 8,711
  • 14
  • 71
  • 126

2 Answers2

4

Just check your sdk valid version like example.enter image description here

enter image description here

Mohammad nabil
  • 1,010
  • 2
  • 12
  • 23
0

Try putting your TextView element into an empty FrameLayout:

<FrameLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/my_groups" />

</FrameLayout>

This code above should be put inside your RelativeLayout. Hope it helps.

Dainius Šaltenis
  • 1,644
  • 16
  • 29
  • Sorry then. I had a similar problem, when elements of UI were not shown, and this helped me to solve, so I thought it could be the same. – Dainius Šaltenis Jan 10 '16 at 13:11