Preview of Android Studio is not playing

Asked

Viewed 837 times

0

I’m having problems importing a project that was written in an older version of Android Studio. My preview doesn’t appear. I’m a beginner and would like a little help! Follow Gradle and xml. Activity is standard, only has onCreate, in the emulator the application runs normal.

inserir a descrição da imagem aqui

apply plugin: 'com.android.application'

android { compileSdkVersion 23 buildToolsVersion '27.0.3'

defaultConfig {
    applicationId "com.example.android.miwok"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:design:23.3.0'

}

  • Change Theme in "Select Theme"

1 answer

-1

Constraintlayout is a Viewgroup that allows you to flexibly position and scale widgets.

It is not in your xml code. It should be where you put the comment and the closure at the end of the code.

  • I’m not using Constraintlayout, don’t need it yet...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.