[INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
C:\...\myApp>mvn com.jayway.maven.plugins.android.generation2:maven-android-plugin:deploy
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building myApp
[INFO] task-segment: [com.jayway.maven.plugins.android.generation2:maven-android-plugin:deploy] (aggregator-style)
[INFO] ------------------------------------------------------------------------
...
[INFO] [android:deploy {execution: default-cli}]
[INFO] C:\Tools\Java\android-sdk-windows/tools/adb [install, -r, C:\...\target\myApp-0.0.1.apk]
pkg: /data/local/tmp/myApp-0.0.1.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying C:\...\target\myApp-0.0.1.apk to device. You might want to
add command line parameter -Dandroid.undeployBeforeDeploy=true or add plugin
configuration tag true
pkg: /data/local/tmp/myApp-0.0.1.apkFailure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Dec 29 14:51:21 CET 2009
[INFO] Final Memory: 35M/611M
[INFO] ------------------------------------------------------------------------Solution?
Uninstall the existing myApp application that was installed from another machine using a different certificate.
No comments yet.