Android Studio Preview is not showing

0

I'm having trouble importing a project that was written in an older version of Android Studio. My preview does not appear. I am a beginner and would like a little help! Follow the gradle and xml. The activity is default, only onCreate, in the emulator the application runs normal.

applyplugin:'com.android.application'

android{    compileSdkVersion23    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'

}

    
asked by anonymous 29.03.2018 / 04:53

1 answer

-1

ConstraintLayout is a ViewGroup that allows you to position and scale widgets in a flexible way.

Not in your xml Code. It should be where you put the comment and the closing at the end of the code.

    
29.03.2018 / 05:02