次の方法で共有


DexFile.LoadDex(String, String, Int32) Method

Definition

Open a DEX file, specifying the file in which the optimized DEX data should be written.

[Android.Runtime.Register("loadDex", "(Ljava/lang/String;Ljava/lang/String;I)Ldalvik/system/DexFile;", "")]
public static Dalvik.SystemInterop.DexFile? LoadDex (string? sourcePathName, string? outputPathName, int flags);
[<Android.Runtime.Register("loadDex", "(Ljava/lang/String;Ljava/lang/String;I)Ldalvik/system/DexFile;", "")>]
static member LoadDex : string * string * int -> Dalvik.SystemInterop.DexFile

Parameters

sourcePathName
String

Jar or APK file with "classes.dex". (May expand this to include "raw DEX" in the future.)

outputPathName
String

File that will hold the optimized form of the DEX data.

flags
Int32

Enable optional features. (Currently none defined.)

Returns

Attributes

Exceptions

If unable to open the source or output file.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to