From e340d3de1f84298e78d8f4b10a9a446f82e3ecc4 Mon Sep 17 00:00:00 2001 From: SmileSky Date: Wed, 9 Oct 2024 16:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=BA=9B=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=9B=20=E5=8F=91=E5=B8=830.3.5=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 2 +- README.md | 2 ++ aapt2/src/main.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d7851d..d8c5107 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ authors = ["mzdk100 "] description = "用于Rust的Android API的高级封装" keywords = ["android", "api", "sdk", "jni", "java"] license = "Apache-2.0" -version = "0.3.4" +version = "0.3.5" edition = "2021" readme = "README.md" repository = "https://gitcode.net/mzdk100/droid-wrap.git" diff --git a/README.md b/README.md index 78bd6d1..10e3a5c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ 1. 环境配置 在使用之前需要确保配置Android SDK和Java环境。 - ANDROID_HOME: 指向Android SDK的根目录路径。 + - ANDROID_BUILD_TOOLS_VERSION: 例如"35.0.0"。 + - ANDROID_API_LEVEL: 例如35。 - JAVA_HOME: 指向jre或者jdk的根目录路径。 注意:我们不使用javac来编译生成java字节码,所以无须使用完整的JDK环境,仅使用JRE(Java 运行时)即可。 2. 安装apk打包工具 diff --git a/aapt2/src/main.rs b/aapt2/src/main.rs index 8ed01c7..f191eeb 100644 --- a/aapt2/src/main.rs +++ b/aapt2/src/main.rs @@ -53,7 +53,7 @@ fn main() { let aapt2 = android_aapt2_path(None).unwrap(); exit( Command::new(&aapt2) - .args(args().skip(1)) + .args(args().skip(2)) .spawn() .unwrap() .wait()