title: java.lang.NoClassDefFoundError: android.support.v4.app.NavUtilsJB error when adding new module in Android Studio
body: <p>I have a strange error adding new module (<a href="https://github.com/lomza/android-color-picker" rel="nofollow">https://github.com/lomza/android-color-picker</a>) to my project. Without this module project runs fine, but if add this project as module to my main project and compile it - everything looks good, but app starts and force closes instantly giving me this error:</p>
  
  <pre><code>FATAL EXCEPTION: main
      java.lang.NoClassDefFoundError: android.support.v4.app.NavUtilsJB
              at android.support.v4.app.NavUtils$NavUtilsImplJB.getParentActivityName(NavUtils.java:125)
              at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:302)
              at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:281)
              at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:142)
              at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:123)
              at app.user.views.ActivityWelcome.onCreate(ActivityWelcome.java:33)
              at android.app.Activity.performCreate(Activity.java:5133)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
              at android.app.ActivityThread.access$600(ActivityThread.java:141)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:5103)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:525)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p><code>ActivityWelcome.java</code> 33 line is <code>super.onCreate(savedInstanceState);</code></p>
  
  <p>If I remove this module from project - everything runs fine again. I have same problem adding any new module to my project. Where is the problem?</p>
  
  <p><strong>EDIT:</strong> I find out that project runs fine on API 21, but if I run it on API 18, I am getting error.</p>