title: NoClassDefFoundError: com.opencsv.CSVWriter
body: <p>I am try to use opencsv libray to get encrypted format data. But while writing on CSV writer I am getting "NoClassDefFoundError". I have seen many post related with same error and tried also almost every thing, but still not able to rectify the problem. Below link with same error.</p>
  
  <p><a href="https://stackoverflow.com/questions/27770584/noclassdeffounderror-after-adding-opencsv-jar-to-project">csv description1</a></p>
  
  <p><a href="https://community.oracle.com/thread/1556014" rel="nofollow noreferrer">csv description2</a></p>
  
  <p><strong>CSVHelper code:</strong></p>
  
  <pre><code>public String stringify(List&lt;? extends SerializeableToCSV&gt; objects) 
          throws IllegalArgumentException {
  
      if (objects == null || objects.isEmpty()) 
          throw new IllegalArgumentException("List of objectes passed is either null or empty");
  
      List&lt;String[]&gt; strList = new ArrayList&lt;String[]&gt;();
  
      // add header record
      strList.add(objects.get(0).getColumnHeaders());
  
      Iterator&lt;? extends SerializeableToCSV&gt; it = objects.iterator();
      while (it.hasNext()) {
          SerializeableToCSV element = it.next();
          strList.add(element.getValueList());
      }
  
      StringWriter writer = new StringWriter();
      CSVWriter csvWriter = new CSVWriter(writer, CSVHelper.VALUE_SEPERATOR, CSVWriter.NO_QUOTE_CHARACTER);
      csvWriter.writeAll(strList);
  
      try {
          csvWriter.close();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  
      return writer.toString();
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/LzzNv.png" alt="enter image description here"></p>
  
  <p>All open csv library stuff in my libs folder.</p>
  
  <p><strong>Error LOG:</strong></p>
  
  <pre><code>04-14 16:03:09.260: E/AndroidRuntime(13047): java.lang.NoClassDefFoundError: com.opencsv.CSVWriter
  04-14 16:03:09.260: E/AndroidRuntime(13047):    at com.stellapps.encryption.CSVHelper.stringify(CSVHelper.java:62)
  04-14 16:03:09.260: E/AndroidRuntime(13047):    at com.stellapps.encryption.Csv.createCSVString(Csv.java:62)
  04-14 16:03:09.260: E/AndroidRuntime(13047):    at com.stellapps.encryption.Csv.generateCsvEncryptedFormat(Csv.java:111)
  </code></pre>
  
  <p>Please let me know if any other details required. Any help will be appreciated.</p>
  
  <p>One more thing I want to add is, below error before getting the above exception.</p>
  
  <p>Could not find class 'com.opencsv.bean.HeaderColumnNameTranslateMappingStrategy', referenced from method com.example.encryption.CSVHelper.parse</p>