Class DexArchives

java.lang.Object
com.android.builder.dexing.DexArchives

public final class DexArchives extends Object
Helper methods for the DexArchive.
  • Method Details

    • fromInput

      @NonNull public static DexArchive fromInput(@NonNull Path path) throws IOException
      Creates a DexArchive from the specified path. It supports .jar files and directories as inputs.

      In case of a .jar file, note there are two mutually exclusive modes, write-only and read-only. In case of a write-only mode, only allowed operation is adding entries. If read-only mode is used, entires can only be read.

      Throws:
      IOException