Android Studio New Project Creation Does Not Display Preview Screen

Asked 2 years ago, Updated 2 years ago, 56 views

Enter image description here

when creating a new project on Android Studio

A message like this appears in the lower center and the preview screen does not appear.Enter a description of the image here
How can I resolve this issue and bring up a preview screen?

android-studio

2022-09-30 11:12

1 Answers

I think it's because there's no AppCompat in it or it's not defined as a dependency.

https://developer.android.com/tools/support-library/setup.html

↑How about downloading the Android Support Library from SDK Manager and adding the following to build.gradle?

 dependencies {
    ...
    compile "com.android.support:appcompat-v7:18.0.+"
}


2022-09-30 11:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.