Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyvyv authored May 13, 2020
1 parent 1be7143 commit 5ef57f4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
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

0 comments on commit 5ef57f4

Please sign in to comment.