-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# android-dx | ||
Android build-tools中dx.jar的源码,版本v1.16。已修改,可以直接引入Adnroid Studio Project用来在Android上面编译dex文件。 | ||
|
||
## 安装 | ||
```java | ||
|
||
``` | ||
|
||
## 示例 | ||
```java | ||
// class文件夹,或者单个class文件,或者jar | ||
String classFolder = "/storage/emulated/0/Android/data/com.xiaoyv.myapplication/files/build/"; | ||
|
||
// 转换命令 | ||
String[] dexCmd = new String[]{ | ||
"--dex", | ||
"--verbose", | ||
"--no-strict", | ||
"--no-files", | ||
"--min-sdk-version=26", | ||
"--output=/storage/emulated/0/Android/data/com.xiaoyv.myapplication/files/dex/", | ||
classFolder | ||
}; | ||
|
||
// 开始转换dex | ||
try { | ||
com.xiaoyv.dx.command.Main.main(dexCmd); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
``` | ||
|
||
## 反馈 | ||
> QQEmail:1223414335@qq.com |