title: NoClassDefFoundError in pdfbox android studio
body: <p><strong>I want to use pdfbox in my android application.but I faced this error:</strong></p>
  
  <blockquote>
    <p>FATAL EXCEPTION: main
                                                                               Process: com.android.app.spritzing, PID: 12534
                                                                               java.lang.NoClassDefFoundError: Failed resolution of:
    Ljava/awt/color/ColorSpace;*</p>
  </blockquote>
  
  <p><strong>my gradle.build file is like this:</strong></p>
  
  <pre><code>&gt; apply plugin: 'com.android.application'  android {
  &gt; 
  &gt;     compileSdkVersion 24
  &gt;     buildToolsVersion "24.0.0"
  &gt;     defaultConfig {
  &gt;         applicationId "com.android.app.spritzing"
  &gt;         minSdkVersion 15
  &gt;         targetSdkVersion 24
  &gt;         versionCode 1
  &gt;         versionName "1.0"
  &gt;     }
  &gt;     buildTypes {
  &gt;         release {
  &gt;             minifyEnabled false
  &gt;             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  &gt;         }
  &gt;     }
  &gt;     packagingOptions {
  &gt;         exclude 'META-INF/DEPENDENCIES'
  &gt;         exclude 'META-INF/NOTICE'
  &gt;         exclude 'META-INF/LICENSE'
  &gt;         exclude 'META-INF/LICENSE.txt'
  &gt;         exclude 'META-INF/NOTICE.txt'
  &gt;         exclude 'META-INF/maven/edu.ucar/udunits/pom.xml'
  &gt;         exclude 'META-INF/maven/edu.ucar/udunits/pom.properties'
  &gt;         exclude 'META-INF/maven/edu.ucar/netcdf4/pom.xml'
  &gt;         exclude 'META-INF/maven/edu.ucar/netcdf4/pom.properties'
  &gt;         exclude 'META-INF/maven/edu.ucar/cdm/pom.xml'
  &gt;         exclude 'META-INF/maven/edu.ucar/cdm/pom.properties'
  &gt;         exclude 'META-INF/maven/edu.ucar/grib/pom.xml'
  &gt;         exclude 'META-INF/maven/edu.ucar/grib/pom.properties'
  &gt;         exclude 'META-INF/maven/org.apache.xmlbeans/xmlbeans/pom.xml'
  &gt;         exclude 'META-INF/maven/org.apache.xmlbeans/xmlbeans/pom.properties'
  &gt;         exclude 'META-INF/maven/edu.ucar/httpservices/pom.xml'
  &gt;         exclude 'META-INF/maven/edu.ucar/httpservices/pom.properties'
  &gt;     }  } 
  &gt; 
  &gt; dependencies {
  &gt;     compile fileTree(dir: 'libs', include: ['*.jar'])
  &gt;     testCompile 'junit:junit:4.12'
  &gt;     compile 'com.android.support:appcompat-v7:24.2.1'
  &gt;     compile 'org.apache.pdfbox:pdfbox:2.0.4'  }
  </code></pre>