title: How to add zxing in android studio?
body: <p>When I add</p>
  
  <pre><code>dependencies {
     compile 'com.google.zxing:core:3.0.0'
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>dependencies {
    compile files('./libs/zxing/core.jar')
  } 
  </code></pre>
  
  <p>in build.gradle in both cases it shows error in manifest file </p>
  
  <pre><code>Cannot resolve symbol 'CaptureActivity'
  </code></pre>
  
  <p>Manifest File is as </p>
  
  <pre><code>&lt;activity
          android:name="com.google.zxing.client.android.CaptureActivity"
          android:configChanges="orientation|keyboardHidden"
          android:screenOrientation="landscape"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
          android:windowSoftInputMode="stateAlwaysHidden" &gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.zxing.client.android.SCAN" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>When i add </p>
  
  <pre><code>com.google.zxing.client.android.captureactivity.jar
  </code></pre>
  
  <p>in libs folder then Manifest error is solved but it gives </p>
  
  <pre><code>Multiple dex files define Lcom/google/zxing/BarcodeFormat;
  </code></pre>
  
  <p>Is it necessary to add captureactivity.jar in libs, if not then how to solve manifest error.</p>