这是我的问题:我正在开发一个反编译APK文件的程序。它工作正常。在上一次Java更新之后,我的应用程序给了我一个例外。
请帮我。
更新:
try {
Process p = Runtime.getRuntime().exec("\"" + apktoolBat
.getAbsolutePath() + "\" d -s " + fn);
BufferedReader br = new BufferedReader(
new InputStreamReader(p.getInputStream()));
String line = null;
while ((line = br.readLine()) != null) {
System.out.println("Apktool: " + line);
}
} catch (IOException e) {
System.err.println("ERROR: Could not use APKTOOL!");
e.printStackTrace();
return;
}
提前致谢!
新功能已在新版本中更改。有关详细信息,请参阅oracles documentation of the feature change。