Android Studio 3.1.3 having issues with Constraint layout

android constraint layout responsive design
constraint layout in android tutorials point
how to change constraintlayout to relativelayout in android studio
constraint layout guideline
constraint layout overlapping
when to use constraint layout
android auto layout
chain constraint layout

I'm trying to start a new project here but this problem is appearing. I can run the project and deploy it in an emulator but this Render problem and Using private resources is ticking me off. I've already tried all the possible solutions found in the internet but it just can't solve the problem

<?xml version="1.0" encoding="utf


    android:text="Hello World!" />




<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>


<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />


apply plugin: ''

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.acer.myapplication3"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation ''
    implementation ''
    testImplementation 'junit:junit:4.12'
    androidTestImplementation ''
    androidTestImplementation ' core:3.0.2'

Had the same issue - went to SDK manager and installed additional SDK platforms; Oreo 8.1. It seems the issue was that the 'new' API 28 still has issues. It says partially installed, but I basically just checked the boxes for lower API's and it downloaded/installed:

Additionally, I changed my build.gradle file's SDK version, buildTools, appcompat, and design versions as below. It works now and I will move back to API 28 at a later stage when these issues have been resolved.

apply plugin: ''

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
    minSdkVersion 15
    targetSdkVersion 27

dependencies {
implementation ''
implementation ''
implementation ''

Android Studio 3.1.3 having issues with Constraint layout, Error , Have the same problem. I think it's from Android SDK Platform 28 so I uninstall it, and use Android SDK Platform 27 and it work for me. steps to recreate is to clean installation of android studio 3.1.3 and create a new project. i tried to create multiple projects but same issue. i tried all the options available on Android Studio 3.1.3 having issues with Constraint layout link but all are failing.

You just need to change the following codes from the dependencies section of your build.gradle file:


implementation ''
implementation ''


implementation ''
implementation ''

And then sync your project.

Android Studio 3.1.3 Errors : androiddev, The official error is "Failed to find style 'coordinatorLayoutStyle' in current theme /android-studio-3-1-3-having-issues-with-constraint-layout-error-failed-to-find/​  The Developer Preview for Android 11 is now available; test it out and share your feedback . A subclass of ConstraintLayout for building animations. A ConstraintLayout is a android.view.ViewGroup which allows you to position and size widgets in a flexible way. Note: ConstraintLayout is available as a support library that you can use on

I had the same issues. For me, the reason is my project "Automatically convert third-party libraries to use AndroidXhas". Check if your problem same as mine? please simply follow the two steps described here.

to make it easy:

1st step: Please check your, if you see the following lines, you might have the exact same issues as mine. You can firstly delete them.


2nd step: in main activity, I changed

import androidx.core.content.ContextCompat;



Everything works all of sudden!

Android Studio 3.1.3 issue : AndroidStudio, Im getting render problem after updating the latest android studio version I was having issues saying package wasn't installed, and the graphical editor wasn't implementation '' Constraint Layout Tutorial With Example In Android Studio [Step by Step] Constraint Layout is a ViewGroup (i.e. a view that holds other views) which allows you to create large and complex layouts with a flat view hierarchy, and also allows you to position and size widgets in a very flexible way.

Try to use this:

dependencies {
    implementation ''
    implementation ''

Instead of constraint-layout:1.1.2.

This solved my issue.

Android Studio release notes, We'd also like to thank all of our community contributors who have helped with this release. To help solve this problem, Android Studio lets you generate a memory usage report by clicking Help > Analyze When working with ConstraintLayout , a new Constraints section in the Attributes panel lists the 3.1​.3 (June 2018). To convert an existing layout to a constraint layout: Open your existing layout in Android Studio and select the Design tab at the bottom of the editor window. In the Component Tree window, right-click the layout and click Convert <layout> to ConstraintLayout. Figure 2. The menu to convert a layout to ConstraintLayout. Add Constraints with the Layout Editor

Add 'Base.' before 'Theme.AppCompat.Light.DarkActionBar' in styles.xml . Worked for me.

Relative Layout, Note: For better performance and tooling support, you should instead build your layout with ConstraintLayout. A RelativeLayout is a very 

Constraintlayout, See the Issue Tracker documentation for more information. Version 2.0.0. ConstraintLayout 2.0 adds new features for layouts (virtual layouts, etc.) and a new class 

Solved: Android Studio 3.1.0 - Configuration 'compile' is , implementation '' } apply plugin: I'm having the same problem, I think it's a library I'm using. 0 Kudos.

How to Install Android IDE and SDK and Get Started with Android , Before installing Android SDK, you need to install Java Development Kit (JDK) In "Select a Project Template" ⇒ select "Phone and Tablet" tab ⇒ "Empty Activity" ⇒ Next If you have problem running on the emulator, I suggest you try to run on an actual Android Phone, if you have one <androidx.constraintlayout.widget.

  • send your xml file source code here
  • @LearningAlways added it in the description
  • your issue is not rendering constraint layout right? Then give your build.gradle.
  • @ShwetaChauhan Yes. I've been receiving Render problem and Using private resources messages every time I create new project. Added it in the description.
  • I think it seems that the release also have problem. I managed to start a problem without a hitch using the latest canary build. Anyway, I'll update you guys with what really is the problem, I created an Issue with Google and brought up the error to them. I got no time to reply to them right now or do the fix they are suggesting because of a hectic schedule. Anyway thanks for the suggestion, I'll try it this coming weekend and update you with the result.
  • This should be accepted answer! I have changed my gradle build version 8 to 7. and it worked! Happy coding!
  • Please do not post code as an image. You should cut and paste the code directly into your answer.
  • First, If you have implemented androidX and then removed, You must have to follow this two steps. Thanks buddy.