Android的APK安装到设备给[分段错误] [英] Android installing apk to device gives [SEGMENTATION FAULT]

查看:237
本文介绍了Android的APK安装到设备给[分段错误]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题。当我尝试部署(调试或运行),我的应用程序与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:\Users\Abracadabra\Desktop\......\app\build\outputs\apk\app-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.

感谢您的帮助!

P.S。我还安装了CWM恢复工具,一个新的Andr​​oid和消灭所有的用户和缓存数据 - >没有帮助

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在/数据/本地/ 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:我也尝试过亚行安装,也给了我分段错误。

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安装到设备给[分段错误]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆