adb命令遇到:“java.lang.Exception: call exit callstack! code=-1”

在使用adb执行Monkey测试时遇到异常:'java.lang.Exception: call exit callstack! code=-1'。尽管环境配置包括JDK(15.0.1)、ADB和SDK均正常,且能连接雷电模拟器,但问题依然存在。尝试从模拟器内部运行monkey.jar或直接通过adb执行Monkey命令都未能解决问题。已经尝试更换JDK和SDK版本,但错误依旧,目前问题尚未解决。
摘要由CSDN通过智能技术生成

adb命令遇到:“java.lang.Exception: call exit callstack! code=-1”


记录adb shell monkey所遇到的问题 (红色框内)
在这里插入图片描述App项目测试接近尾声,想要做一个压力测试,却发现阻碍重重~

公司内部电脑 win7 JDK版本为15.0.1
JDK环境变量配置正常
在这里插入图片描述ADB配置正常
在这里插入图片描述

SDK环境变量配置正常
也可以连接雷电模拟器(端口号5555)
在这里插入图片描述

而且我也可以进入模拟器系统里面去
在这里插入图片描述至到去到system>framework中的monkey.jar并Enter也没有什么用还是会出现

[root@his ~]# kubeadm init --pod-network-cidr=192.168.0.0/16 --kubernetes-version=v1.25.0 --apiserver-advertise-address=192.168.8.109 [init] Using Kubernetes version: v1.25.0 [preflight] Running pre-flight checks [WARNING Hostname]: hostname "his" could not be reached [WARNING Hostname]: hostname "his": lookup his on 192.168.8.254:53: no such host error execution phase preflight: [preflight] Some fatal errors occurred: [ERROR CRI]: container runtime is not running: output: E0714 18:14:51.757340 11481 remote_runtime.go:616] "Status from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\"" time="2023-07-14T18:14:51+08:00" level=fatal msg="getting status of runtime: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\"" , error: exit status 1 [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1 [ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.27.3" Control plane version: "1.25.0" [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...` To see the stack trace of this error execute with --v=5 or higher
最新发布
07-15
根据您提供的命令输出,您在执行`kubeadm init`命令时遇到了一些错误。让我们逐个来解决这些问题: 1. [WARNING Hostname]: hostname "his" could not be reached [WARNING Hostname]: hostname "his": lookup his on 192.168.8.254:53: no such host 这个警告意味着您的主机名无法解析。您可以通过编辑`/etc/hosts`文件来解决此问题,并将`his`主机名映射到正确的IP地址。示例如下: ```shell sudo nano /etc/hosts ``` 在文件中添加以下行: ``` 192.168.8.109 his ``` 保存并关闭文件。 2. [ERROR CRI]: container runtime is not running: output: E0714 18:14:51.757340 11481 remote_runtime.go:616] "Status from runtime service failed" err="rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial unix /var/run/containerd/containerd.sock: connect: no such file or directory\"" 此错误指示容器运行时未运行。这可能是由于您的容器运行时(例如containerd)未正确安装或配置导致的。请确保您已按照正确的步骤安装和配置了容器运行时。您可以尝试重新安装或重新配置容器运行时来解决此问题。 3. [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1 这个错误表示`/proc/sys/net/bridge/bridge-nf-call-iptables`文件的内容不是1。您可以通过运行以下命令来解决此问题: ```shell echo 1 | sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables ``` 4. [ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.27.3" Control plane version: "1.25.0" 这个错误表示您的kubelet版本高于控制平面版本。这不是受支持的版本差异,并且可能导致集群功能异常。为了解决此问题,您需要确保kubelet和控制平面使用相同的Kubernetes版本。您可以尝试升级或降级kubelet版本,以与控制平面版本匹配。 请根据上述解决方案逐个解决问题,并尝试重新执行`kubeadm init`命令。如果问题仍然存在,请提供更多详细信息,以便我们能够更好地帮助您解决问题。
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值