Android installing apk to device gives [SEGMENTATION FAULT](Android 将 apk 安装到设备会出现 [SEGMENTATION FAULT])
问题描述
我有问题.当我尝试使用 AndroidStudio 部署(调试或运行)我的应用程序时,我在 RunLog 中收到以下错误
i have a problem. When i am trying to deploy (Debug or Run) my App with the AndroidStudio, i get the following error in the RunLog
Waiting for device.
Target device: samsung-galaxy_nexus-WOVCBUF6BAGENRTO
Uploading file
local path: C:UsersAbracadabraDesktop......appuildoutputsapkapp-debug.apk
remote path: /data/local/tmp/xxx.xxx.app
Installing xxx.xxx.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/xxx.xxx.app"
Segmentation fault
当我尝试将它部署到 genymotion VM 时,它工作正常.它只是在我的真实设备上不起作用.它以前确实有效,但我已经用 rootExplorer 清理了那里的一些文件夹,例如我删除了一个名为.Idea"的文件夹.也许这是一个很大的错误?这就是它不再起作用的原因吗?
It works fine when i try to deploy it to the genymotion VM. It just does not work on my real device. It did work before, but i have cleaned up some folders there with the rootExplorer, for example i deleted a folder called ".Idea". Maybe this was a big mistake? Is this the reason why it does not work anymore?
顺便说一句,logcat 对手机的其余部分工作正常.
By the way, logcat is working fine for the rest of the phone.
感谢您的帮助!
附:我还使用 CWM 恢复工具安装了一个新的 android,并擦除了所有用户和缓存数据 -> 没有帮助.
P.S. I also installed a fresh android with the CWM recovery tool and wiped all user and cache data -> did not help.
P.P.S 我发现,apk 在手机上的/data/local/tmp 中.我可以使用 rootExplorer 手动安装它.但也无法调试:/
P.P.S I found out, that the apk is in /data/local/tmp on the phone. I can install it manually with the rootExplorer. but debugging is also not possible :/
P.P.P.S:我也试过adb install",也给了我分段错误.
P.P.P.S: I also have tried "adb install", also gives me segmentation fault.
似乎可以复制,但不能安装.
It seems that copy is possible, but installation not.
推荐答案
找出原因.(一个相当愚蠢的)
Found out the reason. (a quite stupid one)
我忘记启用安全设置 -> 未知来源"
I forgot to enable "Security Settings -> Unknown Sources"
这篇关于Android 将 apk 安装到设备会出现 [SEGMENTATION FAULT]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android 将 apk 安装到设备会出现 [SEGMENTATION FAULT]


- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01