Update encodeChecksums to not use java 1.9 CRC32.update(byte[])

Change-Id: If6240f775b7f878b5b2123727da6d668881639d3
diff --git a/src/main/java/com/android/tools/r8/dex/ApplicationWriter.java b/src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
index b626e56..d7f3861 100644
--- a/src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
+++ b/src/main/java/com/android/tools/r8/dex/ApplicationWriter.java
@@ -234,7 +234,8 @@
         buffer.putLong(inputChecksums.get(from.getType().descriptor.toASCIIString()));
       }
       CRC32 crc = new CRC32();
-      crc.update(buffer.array());
+      byte[] array = buffer.array();
+      crc.update(array, 0, array.length);
       synthesizedChecksums.put(clazz.getType().descriptor.toASCIIString(), crc.getValue());
     }