title: java android error with design excel file
body: <p>Write a program on Android. In my program, I create an excel file. I have a problem with a design excel file.</p>
  
  <p>error:</p>
  
  <pre><code>Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Color;
  </code></pre>
  
  <p>code:</p>
  
  <pre><code> Workbook workbook = new HSSFWorkbook();
   Sheet sheet = workbook.createSheet("Tets");
   Font headerFont;
   headerFont = workbook.createFont();
   headerFont.setBold(true);
   headerFont.setFontHeightInPoints((short) 17);
   headerFont.setColor(IndexedColors.RED.getIndex());
   CellStyle headerCellStyle = workbook.createCellStyle();
  </code></pre>
  
  <p>error on line:</p>
  
  <pre><code>CellStyle headerCellStyle = workbook.createCellStyle();
  </code></pre>
  
  <p>libraries:</p>
  
  <pre><code> implementation files('libs/poi-3.17.jar')
   implementation files('libs/poi-ooxml-3.17.jar')
   implementation files('libs/poi-ooxml-schemas-3.17.jar')
  </code></pre>
  
  <p>Thanks for any help. Have a nice day!</p>