0

I have already checked the link But my problem is in version 28.

Gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.pankaj.socketio"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.+'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}

I am getting an error in the layout. Is there anything missing?

Failed to load AppCompat ActionBar with unknown error.
Pankaj
  • 9,749
  • 32
  • 139
  • 283
  • Possible duplicate of [Failed to load AppCompat ActionBar with unknown error in android studio](https://stackoverflow.com/q/44449275/) and [Render error in Android Studio 3.0 Layout Editor](https://stackoverflow.com/q/44223687/) – Sardar Usama Jul 03 '18 at 17:04
  • @SardarUsama This is version 28 and your reference is not about 27 and I have already checked that. – Pankaj Jul 03 '18 at 17:05

0 Answers0