![](/img/trans.png)
[英]Creating and referencing a library for Android project (using command line and gradle)
[英]installing ffmpeg library using command line in android development
我試圖從應用程序運行命令以安裝ffmpeg庫。 這是我的代碼:
try {
Process process =Runtime.getRuntime().exec("/system/bin/pm install ffmpeg");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
} catch (IOException e) {
e.printStackTrace();
Toast.makeText(getApplicationContext(),"failed",Toast.LENGTH_SHORT).show();
}
問題:
它不起作用,並打印輸出“ failed ”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.