gpt4 book ai didi

android - 在 CentOS 中使用 ADB 在模拟器中安装 APK

转载 作者:行者123 更新时间:2023-11-30 04:01:25 27 4
gpt4 key购买 nike

我是 CentOS 的新手,我想使用 ADB 在模拟器中安装一个 APK。使用终端,我使用了这个语法:

adb install <nameofapk>.apk

那个命令给了我这个错误:

Whoops: didn't find expected signature
read_central_directory_entry failed
file '<nameofapk.>.apk' is not a valid zip file
rm failed for /data/local/tmp/<nameofapk>.apk, No such file or directory

我需要做什么才能摆脱该错误消息并能够成功安装 APK?

最佳答案

可能您的 APK 文件无效或已损坏,这就是无法安装它的原因。尝试

unzip -t <nameofapk>.apk

查看您的文件是否有问题。

关于android - 在 CentOS 中使用 ADB 在模拟器中安装 APK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12456037/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com