Layout Preview is Blank, App Runs Fine

前端 未结 1 1258
北荒
北荒 2021-01-29 12:52

Layout Preview is Blank, App Runs Fine.

I see my buttons when I run my app on a device, but the preview layout in Android Studio is blank.

I tried: -changing the A

相关标签:
1条回答
  • 2021-01-29 13:14

    Chenge build.gradle dependencies from

    implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
    

    into

    implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'

    replace all the dependencies contains 28.0.0-alpha3 into 28.0.0-alpha1. And then do a gradle sync. The latest support dependency is not view friendly yet!

    0 讨论(0)
提交回复
热议问题