NoClassDefFounderror on un-related classes when using depencies!

I am not sure if I am doing something wrong or got the wrong idea of gradle - I have been trying to use it with android studio. It works well, till I introduce a dependency and the it throws a “NoClassDefFoundError” on a totally different class that is not even related to the added dependency.

Here is an example - with JakeWharton/Android-ViewPagerIndicator

Download the project, imported the library into android studio. Builds well, compiles well - but crashes with an error when I try to deploy into onto a device. The error log is such…

01-12 14:06:26.173
21138-21138/com.mface.mcall E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.NoClassDefFoundError: com.mface.mcall.utils.Consts
            at com.mface.mcall.utils.ImageUtils.getImageLoaderConfiguration(
            at com.mface.mcall.App.initImageLoader(
            at com.mface.mcall.App.initApplication(
            at com.mface.mcall.App.onCreate(
            at Source)
            at android.os.Handler.dispatchMessage(
            at android.os.Looper.loop(
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(
            at dalvik.system.NativeStart.main(Native Method)

App’s build.grade is this…

repositories {
buildscript {
    repositories {
apply plugin: ''
repositories {
dependencies {
    compile fileTree(dir: "$buildDir/native-libs", include: 'native-libs.jar')
    compile fileTree(dir: 'libs', include: ['*.jar'])
    //compile ''
    compile project(':jkviewpagermaster')
    compile ''
    compile project(':Q-municate_core')
    compile "info.hoang8f:fbutton:${rootProject.FButtonVersion}"
    compile "${rootProject.googlePlayServicesVersion}"
    compile "${rootProject.cropperVersion}@aar"
    compile "com.nostra13.universalimageloader:universal-image-loader:${rootProject.universalImageLoaderVersion}"
      compile group: 'com.squareup.picasso', name: 'picasso', version: "${rootProject.picassoVersion}"
    compile "${rootProject.guavaVersion}"
    compile "com.makeramen:roundedimageview-apklib:${rootProject.roundedImageViewVersion}"
    compile "se.emilsjolander:stickylistheaders:${rootProject.stickyListHeadersVersion}"
    compile (''){
        exclude group: '', module: 'support-v4'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.easing:library:1.0.1@aar'
    compile 'com.daimajia.androidanimations:library:1.1.3@aar'
    compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
    compile 'me.drakeet.materialdialog:library:1.2.2'
    compile 'com.github.chrisbanes.actionbarpulltorefresh:library:+'
  compile (''){
      exclude group: '', module: 'support-v4'
  android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"
      defaultConfig {
        applicationId "com.mface.mcall"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), ''
            debuggable false
            signingConfig signingConfigs.debug
            zipAlignEnabled true
        // jumboMode = true
        preDexLibraries = false
        incremental true
        javaMaxHeapSize "4g"

The build and run works perfectly fine if i remove compile project(’:jkviewpagermaster’). The same problem with crashlytics.

There are no helpful errors messages to know what’s going wrong since it only crashes during a run.

Any support is highly apprecitated