当前位置:网站首页>记一次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)
边栏推荐
- Yum package management
- Redis的三种删除策略以及逐出算法
- 关于正则的两道笔试面试题
- Unity typewriter teaches you three ways
- Mongoose condition queries part of the data of the specified attribute
- GIS数据漫谈(六)— 投影坐标系统
- 7/27 training log (bit operation + suffix array)
- Establishment of flask static file service
- Redis 3.0源码分析-数据结构与对象 SDS LIST DICT
- Install keras, tensorflow, and add the virtual environment to the Jupiter notebook
猜你喜欢

Learn about the native application management platform of rainbow cloud

如何平衡SQL中的安全与性能?

Speech controlled robot based on ROS (I): realization of basic functions

【服务器数据恢复】HP StorageWorks系列存储RAID5两块盘故障离线的数据恢复案例

Install keras, tensorflow, and add the virtual environment to the Jupiter notebook

Classes and objects (medium)

Network shell

Use of DDR3 (axi4) in Xilinx vivado (4) incentive design
![Teach you how to draw a map with ArcGIS [thermal map]](/img/16/993da4678667884a98e1d82db37d69.png)
Teach you how to draw a map with ArcGIS [thermal map]

Data mining (data preprocessing) -- Notes
随机推荐
Oracle library access is slow. Why?
[complete collection of common ADB commands and their usage (from a comprehensive summary of [wake up on Sunday)]
Mongoose condition queries the data of a certain time period
Voice controlled robot based on ROS (II): implementation of upper computer
瀚高数据库最佳实践配置工具HG_BP日志采集内容
JS drag and drop alert pop-up plug-in
[server data recovery] HP StorageWorks series storage RAID5 two disk failure offline data recovery case
Unity uses shader to quickly make a circular mask
LeetCode_ Bit operation_ Medium_ 260. Number III that appears only once
阿里云 MSE 支持 Go 语言流量防护
卡通js射击小游戏源码
太空射击第13课: 爆炸效果
Cartoon JS shooting game source code
Linxu [permission, sticky bit]
漂亮的蓝色背景表单输入框样式
How bad can a programmer be? Nima, they are all talents
Use of DDR3 (axi4) in Xilinx vivado (4) incentive design
Usage Summary of thymeleaf
[C语言刷题篇]链表运用讲解
研发效能的思考总结