title: Android studio failed to instantiate one or more classes after update to SDK 26
body: <p>After downloading SDK 26 and updated my project I had some library conflicts which I successfully fixed. But I have this persistent issue that it is tackled nowhere in the forums or SO.</p>
  
  <p>My XML preview is broken. I can build and run the program but I can't see anything because of that: </p>
  
  <p><a href="https://i.stack.imgur.com/7lFtl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7lFtl.png" alt="enter image description here"></a></p>
  
  <p><strong>I tried:</strong></p>
  
  <ol>
  <li>Changing the theme from <code>Theme.AppCompat.Light.DarkActionBar</code> to<br>
  <code>Base.Theme.AppCompat.Light.DarkActionBar</code></li>
  <li><a href="https://stackoverflow.com/a/43979180/6792992">Updating my gradle in a similar way</a></li>
  <li>Invalidate Cache / Restart</li>
  <li>Checked and updated all my libraries and removed all errors regarding gradle</li>
  <li>Changed the api on the preview</li>
  <li>All SDKs are updated. </li>
  </ol>
  
  <p>Everything was fine right before I update to SDK 26. All the solutions available do nothing. Help would be very much appreciated </p>
  
  <p><strong>EDIT</strong></p>
  
  <p>my gradle.build</p>
  
  <pre><code>buildscript {
      repositories {
          maven { url 'https://maven.fabric.io/public' }
      }
  
      dependencies {
          classpath 'io.fabric.tools:gradle:1.+'
      }
  }
  apply plugin: 'com.android.application'
  apply plugin: 'io.fabric'
  
  repositories {
      maven { url 'https://maven.fabric.io/public' }
  }
  
  
  android {
      compileSdkVersion 26
      buildToolsVersion "26.0.0"
      defaultConfig {
          applicationId "gr.softweb.sakouli"
          minSdkVersion 19
          targetSdkVersion 26
          versionCode 1
          versionName "1.0"
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
          multiDexEnabled true
      }
  
      buildTypes {
          release {
              minifyEnabled true
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
      packagingOptions {
          exclude 'META-INF/DEPENDENCIES.txt'
          exclude 'META-INF/LICENSE.txt'
          exclude 'META-INF/NOTICE.txt'
          exclude 'META-INF/NOTICE'
          exclude 'META-INF/LICENSE'
          exclude 'META-INF/DEPENDENCIES'
          exclude 'META-INF/notice.txt'
          exclude 'META-INF/license.txt'
          exclude 'META-INF/dependencies.txt'
          exclude 'META-INF/LGPL2.1'
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile project(path: ':linkedin-sdk')
      compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
          transitive = true;
      }
      //    configurations.all {
      //        resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
      //            def requested = details.requested
      //            if (requested.group == 'com.android.support') {
      //                if (!requested.name.startsWith("multidex")) {
      //                    details.useVersion '26.0.1'
      //                }
      //            }
      //        }
      //    }
      compile 'com.facebook.android:facebook-android-sdk:4.26.0'
      compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
      compile 'com.android.support:design:26.0.0-alpha1'
      compile 'com.android.support:customtabs:26.0.0'
      compile 'com.koushikdutta.ion:ion:2.2.1'
      compile 'com.google.code.gson:gson:2.8.1'
      compile 'com.squareup.picasso:picasso:2.5.2'
      compile 'de.hdodenhof:circleimageview:2.1.0'
      compile 'com.roughike:bottom-bar:2.3.1'
      compile 'com.ncapdevi:frag-nav:2.0.1'
      compile 'com.google.android.gms:play-services-maps:11.0.4'
      compile 'co.lujun:androidtagview:1.1.4'
      compile 'com.google.android.gms:play-services-gcm:11.0.4'
      compile 'com.braintreepayments.api:drop-in:3.1.0'
      testCompile 'junit:junit:4.12'
      apply plugin: 'com.google.gms.google-services'
  }
  </code></pre>