Reputation: 3831
I am getting Segmentation fault
when I try to run my app from Android Studio
. I have tried to restart the device, Android Studio and even my PC.
This is what I get! How can I solve this
Installing APK: F:\......\app\build\outputs\apk\app-debug.apk
Uploading file to: /data/local/tmp/com.astrolabe.mofa
Installing com.astrolabe.mofa
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.astrolabe.mofa"
Segmentation fault
Launching application: com.astrolabe.mofa/com.astrolabe.mofa.FullscreenActivity.
DEVICE SHELL COMMAND: am start -n "com.astrolabe.mofa/com.astrolabe.mofa.FullscreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Segmentation fault
EDIT
This Question is not Duplicate of the one pointed out as the solution to that problem will not fix my issue!
Upvotes: 2
Views: 3070
Reputation: 2993
Settings -> Developer options -> Verify apps over USB
disable it.
may be visible only when ADB debugging is enabled and phone is connected to computer.
Upvotes: 1
Reputation: 3831
I am not sure what exactly was causing the issue. I had enabled USB debugging
as well as install from Unknown Sources
as suggested, but that even couldn't solve the issue.
Doing a factory reset of the device did solve my problem. I am sure this is not the solution and there might be a better solution for this.
Upvotes: 0
Reputation: 16976
Check if this option is enabled or not(That should be enabled):
Security Settings -> Unknown Sources
.
Update:
Also make sure you've enabled Usb debugging on your phone.
Or, try to install that app with the following command via adb
and see if it is installing or not:
pm install <packageName>
Upvotes: 2