当前位置:网站首页>记一次Runtime.getRuntime().exce(“command“)报错
记一次Runtime.getRuntime().exce(“command“)报错
2022-07-28 18:46:00 【泥点子】
工具:idea, andriod stutdio
使用command:adb shell getprop rp.build.version.release
执行Runtime.getRuntime().exce(command) 时报错:
caused by:java.io:Cannot run program "adb": error =2,No such file or directory
......
caused by:java.io:: error =2,No such file or directory
解决方法:command 前面加上 adb 工具的绝对路径。
/Users/xxxxx/Library/Android/sdk/platform-tools
Runtime.getRuntime().exce("/Users/xxxxx/Library/Android/sdk/platform-tools"+command)
边栏推荐
猜你喜欢

Scheduled backup of MySQL database under Windows system
![Linxu [basic instructions]](/img/94/98d7b2cb4a72c6437a9f604ec5da9d.png)
Linxu [basic instructions]

GIS数据漫谈(六)— 投影坐标系统

Data mining (data preprocessing) -- Notes

Nocturnal simulator settings agent cannot be saved

全链路灰度在数据库上我们是怎么做的?
关于链接到其他页面的标题

LVS load balancing cluster

leetcode:2141. 同时运行 N 台电脑的最长时间【最值考虑二分】

Who cares about the safety of the battery when it ignites in a collision? SAIC GM has something to say
随机推荐
算法面试高频题解指南【一】
关于链接到其他页面的标题
Install keras, tensorflow, and add the virtual environment to the Jupiter notebook
Classes and objects (medium)
微信公众号授权登录后报redirect_uri参数错误的问题
Explain the life cycle function in unity in detail
卡通js射击小游戏源码
Beautiful blue background form input box style
Seventeen year operation and maintenance veterans, ten thousand words long, speak through the code of excellent maintenance and low cost~
漂亮的蓝色背景表单输入框样式
关于正则的两道笔试面试题
leetcode:2141. 同时运行 N 台电脑的最长时间【最值考虑二分】
根据openGauss/MogDB的lwtid查看线程堆栈。
EasyNLP中文文图生成模型带你秒变艺术家
[C语言刷题篇]链表运用讲解
Redis 3.0源码分析-数据结构与对象 SDS LIST DICT
[POC - proof of concept]
Redis入门二:redhat 6.5安装使用
Linxu [permission, sticky bit]
什么是数据中台?数据中台带来了哪些价值?_光点科技