Not able to use RealmAdapter - java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
<p>I am trying to use Realm Adapter in one of my projects. However I am not able to use it.</p>

<p>When ever I add <code>compile 'io.realm:android-adapters:1.0.1'</code> into gradle file. Project gets compiled successfully, but the app crashes on <code>tabLayout.setupWithViewPager(viewPager);</code> -- the line where I am adding viewpager to tabLayout.</p>

<p>App runs successfully when I comment <code>compile 'io.realm:android-adapters:1.0.1'</code> </p>

<p>I am attaching the screenshot of the activiy where its crashing. Its crashing on line 57. I have also pasted the stacktrace of the error</p>

<p><a href="https://i.stack.imgur.com/M8h8B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M8h8B.png" alt="enter image description here"></a></p>

<pre><code>05-09 22:11:48.074 16932-16932/com.app E/AndroidRuntime: FATAL EXCEPTION: main
                                                         Process: com.app, PID: 16932
                                                         java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/widget/TintManager;
                                                             at android.support.design.widget.TabLayout$TabView.&lt;init&gt;(TabLayout.java:1185)
                                                             at android.support.design.widget.TabLayout.createTabView(TabLayout.java:656)
                                                             at android.support.design.widget.TabLayout.addTabView(TabLayout.java:695)
                                                             at android.support.design.widget.TabLayout.addTab(TabLayout.java:386)
                                                             at android.support.design.widget.TabLayout.addTab(TabLayout.java:361)
                                                             at android.support.design.widget.TabLayout.setTabsFromPagerAdapter(TabLayout.java:645)
                                                             at android.support.design.widget.TabLayout.setupWithViewPager(TabLayout.java:616)
                                                             at com.app.MainActivity.onCreate(MainActivity.java:57)
                                                             at android.app.Activity.performCreate(Activity.java:6251)
                                                             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
                                                             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
                                                             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                                                             at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                             at android.os.Handler.dispatchMessage(Handler.java:102)
                                                             at android.os.Looper.loop(Looper.java:148)
                                                             at android.app.ActivityThread.main(ActivityThread.java:5422)
                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                          Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.widget.TintManager" on path: DexPathList[[zip file "/data/app/com.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.app-1/lib/arm64, /data/app/com.app-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
                                                             at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
                                                             at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
                                                             at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
                                                             at android.support.design.widget.TabLayout$TabView.&lt;init&gt;(TabLayout.java:1185) 
                                                             at android.support.design.widget.TabLayout.createTabView(TabLayout.java:656) 
                                                             at android.support.design.widget.TabLayout.addTabView(TabLayout.java:695) 
                                                             at android.support.design.widget.TabLayout.addTab(TabLayout.java:386) 
                                                             at android.support.design.widget.TabLayout.addTab(TabLayout.java:361) 
                                                             at android.support.design.widget.TabLayout.setTabsFromPagerAdapter(TabLayout.java:645) 
                                                             at android.support.design.widget.TabLayout.setupWithViewPager(TabLayout.java:616) 
                                                             at com.app.MainActivity.onCreate(MainActivity.java:57) 
                                                             at android.app.Activity.performCreate(Activity.java:6251) 
                                                             at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) 
                                                             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) 
                                                             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
                                                             at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
                                                             at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                             at android.os.Looper.loop(Looper.java:148) 
                                                             at android.app.ActivityThread.main(ActivityThread.java:5422) 
                                                             at java.lang.reflect.Method.invoke(Native Method) 
                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
                                                            Suppressed: java.lang.ClassNotFoundException: android.support.v7.widget.TintManager
                                                             at java.lang.Class.classForName(Native Method)
                                                             at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
                                                             at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
                                                             at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
                                                                    ... 21 more
                                                          Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
</code></pre>

<p>Here is the snippet of build.gradle file from the app - </p>

<pre><code>dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.1'
compile 'com.jakewharton:butterknife:7.0.1'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.github.paolorotolo:appintro:3.2.0'
compile 'io.realm:android-adapters:1.0.1'
</code></pre>

<p>}</p>