Freigeben über


DexFile.IsDexOptNeeded(String) Method

Definition

Returns true if the VM believes that the apk/jar file is out of date and should be passed through "dexopt" again.

[Android.Runtime.Register("isDexOptNeeded", "(Ljava/lang/String;)Z", "")]
public static bool IsDexOptNeeded (string? fileName);
[<Android.Runtime.Register("isDexOptNeeded", "(Ljava/lang/String;)Z", "")>]
static member IsDexOptNeeded : string -> bool

Parameters

fileName
String

the absolute path to the apk/jar file to examine.

Returns

Attributes

Exceptions

if fileName is not readable, not a file, or not present.

if fileName is not a valid apk/jar file or if problems occur while parsing it.

if fileName is null.

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