Android 将 apk 安装到设备会出现 [SEGMENTATION FAULT]

Android installing apk to device gives [SEGMENTATION FAULT](Android 将 apk 安装到设备会出现 [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]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)