pub enum AndroidError {
Show 22 variants
Assets(AssetError),
AssetPipeline(AssetPipelineError),
InvalidRequest(String),
InvalidExternalToolPath {
reason: &'static str,
},
InvalidConfig(String),
ToolMissing {
tool: String,
searched: Vec<Utf8PathBuf>,
fix: String,
},
PlatformMissing {
requested: String,
installed: Vec<u32>,
fix: String,
},
BuildToolsMissing {
searched: Vec<Utf8PathBuf>,
fix: String,
},
NdkLinkerMissing {
target: String,
searched: Vec<Utf8PathBuf>,
fix: String,
},
NativeLibraryMissing {
target: String,
searched: Vec<Utf8PathBuf>,
},
MissingDex {
searched: Vec<Utf8PathBuf>,
},
MissingDexClass {
class_name: String,
searched: Vec<Utf8PathBuf>,
},
CargoOutput(String),
CommandSpawn {
stage: String,
program: Utf8PathBuf,
source: Error,
},
CommandTimedOut {
stage: String,
program: Utf8PathBuf,
log: Option<Utf8PathBuf>,
},
ProcessOutputTooLarge {
stage: String,
program: Utf8PathBuf,
stream: String,
limit_bytes: usize,
log: Option<Utf8PathBuf>,
},
CommandInterrupted {
stage: String,
program: Utf8PathBuf,
},
CommandFailed {
stage: String,
program: Utf8PathBuf,
status: String,
summary: Box<String>,
log: Option<Utf8PathBuf>,
},
Io {
operation: &'static str,
path: Utf8PathBuf,
source: Error,
},
Zip {
path: Utf8PathBuf,
message: String,
},
InvalidArtifact {
path: Utf8PathBuf,
reason: String,
},
NonUtf8Path(PathBuf),
}Expand description
Failure while discovering, building, signing, or validating an Android artifact.
Variants§
Assets(AssetError)
Project icon or splash asset validation failed.
AssetPipeline(AssetPipelineError)
Deterministic platform asset generation or cache validation failed.
InvalidRequest(String)
A request value cannot safely be used by the build pipeline.
InvalidExternalToolPath
A filesystem path cannot safely cross an external tool process boundary.
InvalidConfig(String)
ferry.toml failed semantic validation.
ToolMissing
A required tool or SDK component was not found.
Fields
searched: Vec<Utf8PathBuf>Paths inspected during discovery.
PlatformMissing
No suitable Android platform is installed.
Fields
BuildToolsMissing
No complete Android SDK Build Tools installation is available.
Fields
searched: Vec<Utf8PathBuf>Build Tools directories inspected.
NdkLinkerMissing
The selected NDK has no linker for an ABI.
Fields
searched: Vec<Utf8PathBuf>Candidate linker paths.
NativeLibraryMissing
Cargo completed without reporting a matching native library.
Fields
searched: Vec<Utf8PathBuf>Artifact paths reported by Cargo.
MissingDex
A build requires JVM bytecode but no dependency or bridge DEX was emitted.
Fields
searched: Vec<Utf8PathBuf>Build-script output directories searched recursively.
MissingDexClass
A manifest component has no matching class in the merged DEX.
Fields
searched: Vec<Utf8PathBuf>Merged DEX files inspected.
CargoOutput(String)
Cargo emitted malformed or unusable JSON output.
CommandSpawn
An external command could not be started.
Fields
program: Utf8PathBufExecutable path.
CommandTimedOut
An external command exceeded its deadline.
Fields
program: Utf8PathBufExecutable path.
log: Option<Utf8PathBuf>Diagnostic log, when requested.
ProcessOutputTooLarge
An external command exceeded the per-stream output memory limit.
Fields
program: Utf8PathBufExecutable path.
log: Option<Utf8PathBuf>Diagnostic log containing only the retained prefixes.
CommandInterrupted
Ctrl+C interrupted an external build tool.
CommandFailed
An external tool returned a non-zero status.
Fields
program: Utf8PathBufExecutable path.
log: Option<Utf8PathBuf>Diagnostic log, when requested.
Io
A filesystem operation failed.
Fields
path: Utf8PathBufAffected path.
Zip
ZIP parsing or writing failed.
Fields
path: Utf8PathBufAPK path.
InvalidArtifact
Independent artifact validation rejected the APK.
NonUtf8Path(PathBuf)
A platform path could not be represented by the UTF-8 API.
Trait Implementations§
Source§impl Debug for AndroidError
impl Debug for AndroidError
Source§impl Display for AndroidError
impl Display for AndroidError
Source§impl Error for AndroidError
impl Error for AndroidError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()