Error: Failed to install apk to device


#1

I’m having this error “Error: Failed to install apk to device” when i run the command “ionic run android” (ios is working perfect!).

System information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.0.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.10.1
Xcode version: Xcode 8.3.2 Build version 8E2002


#2

Do you have an older version or a similar version or an app with the same package name installed?
Can you try ionic emulate android?


#3

No, it’s the first time that i installed it…

With “ionic emulate android” get this error:

pkg: /data/local/tmp/android-debug.apk
Failure [INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING]
rm failed for -f, Read-only file system