大神如何轉java成smali 我下了一個工具java2smali轉了一只提示出錯,直接用cmd轉也不成功,我是個小白不知道怎么弄麻煩幫我轉一下吧,或者有時間可以詳細講解一下如何轉的為什么出錯,非常感謝!
public class FileCopy {
public static void main(String[] args) {
try {
copyDir("D:\\aa", "D:\\bb");
} catch (IOException e) {
e.printStackTrace();
}
}
public static void copyDir(String sourcePath, String newPath) throws IOException {
File file = new File(sourcePath);
String[] filePath = file.list();
if (!(new File(newPath)).exists()) {
(new File(newPath)).mkdir();
}
for (int i = 0; i < filePath.length; i++) {
if ((new File(sourcePath + file.separator + filePath[i])).isDirectory()) {
copyDir(sourcePath + file.separator + filePath[i], newPath + file.separator + filePath[i]);
}
if (new File(sourcePath + file.separator + filePath[i]).isFile()) {
copyFile(sourcePath + file.separator + filePath[i], newPath + file.separator + filePath[i]);
}
}
}
public static void copyFile(String oldPath, String newPath) throws IOException {
File oldFile = new File(oldPath);
File file = new File(newPath);
FileInputStream in = new FileInputStream(oldFile);
FileOutputStream out = new FileOutputStream(file);
byte[] buffer=new byte[2097152];
while((in.read(buffer)) != -1){
out.write(buffer);
}
out.close();
in.close();
}
}
uj5u.com熱心網友回復:
咋沒人幫忙哦uj5u.com熱心網友回復:
你好呢 請問能把這個代碼轉成smali嗎uj5u.com熱心網友回復:
有沒有人幫忙一下啊轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/53774.html
標籤:Java相關
