{"id":1242,"date":"2017-03-25T16:43:00","date_gmt":"2017-03-25T07:43:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/?p=1242"},"modified":"2017-03-25T17:04:28","modified_gmt":"2017-03-25T08:04:28","slug":"android-studio-application-installation-failed","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/android-studio-application-installation-failed.html","title":{"rendered":"Android Studio \u3067 Installation Failed \u3068\u51fa\u308b\u554f\u984c\u306e\u89e3\u6c7a\u65b9\u6cd5"},"content":{"rendered":"<p>Android\u3000Studio\u304b\u3089Kotlin\u3067\u958b\u767a\u3057\u3066\u3044\u304f\u3046\u3061\u3001<br \/>\n\u30d3\u30eb\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u4f55\u5ea6\u3084\u3063\u3066\u3082\u300cApplication Installation Failed\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u554f\u984c\u306b\u884c\u304d\u5f53\u305f\u3063\u305f\u306e\u3067\u5bfe\u7b56\u306e\u30e1\u30e2\u3067\u3059\u3002<br \/>\nIntelli J IDEA\u3067\u3082\u906d\u9047\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>Android Studio \u3067Run\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u3001\u30d3\u30eb\u30c9\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u30fb\u7aef\u672b\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u59cb\u307e\u3063\u305f\u5f8c\u306b\u3001<\/p>\n<p><a href=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/U05cw.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/U05cw-300x85.png\" alt=\"Application Installation Failed in Android Studio\" width=\"300\" height=\"85\" class=\"alignnone size-medium wp-image-1243\" srcset=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/U05cw-300x85.png 300w, https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/U05cw.png 727w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u30a8\u30e9\u30fc\u306b\u884c\u304d\u5f53\u305f\u308a\u307e\u3057\u305f\u3002<br \/>\n<!--more--><\/p>\n<blockquote><p>\n  Application Installation Failed<br \/>\n  Installation failed with message Failed to establish session.<br \/>\n  It is possible that this issue is resolved by uninstalling an existing version of the apk if it is > present, and then re-installing.<\/p>\n<p>  WARNING: Uninstalling will remove the application data!<\/p>\n<p>  Do you want to uninstall the existing applliation?\n<\/p><\/blockquote>\n<p>\u65e5\u672c\u8a9e\u8a33\uff1a<br \/>\n\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u78ba\u7acb\u306b\u5931\u6557\u3057\u305f\u305f\u3081\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u3053\u306e\u554f\u984c\u306f\u65e2\u306bAPK\u304c\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u65e2\u5b58\u30d0\u30fc\u30b8\u30e7\u30f3\u306eAPK\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8b66\u544a\uff1a\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u306f\u6d88\u5931\u3057\u307e\u3059\u3002<\/p>\n<p>\u65e2\u5b58\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u3044\u3044\u3067\u3059\u304b\uff1f (OK\/\u30ad\u30e3\u30f3\u30bb\u30eb)\u300d<\/p>\n<p>\u3053\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u51fa\u3066\u3082\u3001\u66f8\u304b\u308c\u3066\u3044\u308b\u901a\u308a\u5927\u62b5\u306f\u300cOK\u300d\u3067\u30a2\u30d7\u30ea\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u554f\u984c\u89e3\u6d88\u3059\u308b\u306e\u3067\u3059\u304c\u3001<br \/>\n\u4eca\u56de\u306f\u4f55\u5ea6\u3084\u3063\u3066\u3082\u5931\u6557\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u3092\u8ffd\u3063\u305f\u308a\u3057\u3066\u3044\u304f\u3068\u3001<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nadb install-multiple -r\u3000&quot;\u7565\/slice_1.apk&quot; &quot;\u7565\/slice_2.apk&quot; &quot;\u7565\/slice_3.apk&quot; \u4ee5\u4e0b\u7565\n<\/pre>\n<p>\u3068\u3044\u3046\u8907\u6570 apk \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3001<\/p>\n<blockquote><p>\n  Invalid APK file: app\/build\/intermediates\/split-apk\/debug\/slices\/slice_8.apk\n<\/p><\/blockquote>\n<p>\u3068\u3001\u4e00\u90e8\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u304c\u539f\u56e0\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n\uff08\u3061\u306a\u307f\u306b\u3001Multidex\u306fOFF\u306b\u3057\u3066\u307e\u3059\uff09<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">adb install .\/app\/build\/outputs\/apk\/app-debug.apk<\/pre>\n<p>\u3068\u3057\u3066\u3001\u30c7\u30d0\u30c3\u30b0APK\u3092\u5358\u4f53\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u52d5\u4f5c\u3057\u3066\u3044\u308b\u306e\u3067\u3001Instant Run \u5bfe\u5fdc\u306e\u305f\u3081\u306b\u8907\u6570APK\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u539f\u56e0\u306e\u3088\u3046\u3002<\/p>\n<p>StackOverFlow\u306e<a href=\"https:\/\/stackoverflow.com\/questions\/42687607\/application-installation-failed-in-android-studio\" target=\"_blank\">\u8a18\u4e8b<\/a>\u306b\u3042\u3063\u305f\u3068\u304a\u308a\u3001Instant Run \u3092\u30aa\u30d5\u306b\u3057\u305f\u3068\u3053\u308d\u3001\u3061\u3083\u3093\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>InstantRun\u3092\u30aa\u30d5\u306b\u3059\u308b\u306b\u306f\u3001<br \/>\nAndroid Studio \u30e1\u30cb\u30e5\u30fc\u304b\u3089 Preferences \u3092\u958b\u304d\u3001<br \/>\nPreferences\u306e\u30b5\u30a4\u30c9\u30e1\u30cb\u30e5\u30fc\u304b\u3089 &#8220;Build, Execution, Deployment&#8221; \u306e\u4e0b\u306e\u3001&#8221;Instant Run&#8221;\u306e\u753b\u9762\u3067\u3001<br \/>\nEnable Instant Run to hot swap code\/resource changes on deploy(default enabled).<br \/>\n\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5916\u3057\u3066\u3001OK\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/20170325_android_studio-instant-run.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/20170325_android_studio-instant-run-300x196.png\" alt=\"\" width=\"300\" height=\"196\" class=\"alignnone size-medium wp-image-1244\" srcset=\"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/20170325_android_studio-instant-run-300x196.png 300w, https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/20170325_android_studio-instant-run-768x501.png 768w, https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/20170325_android_studio-instant-run-1024x668.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>InstantRun\u304c\u4f7f\u3048\u306a\u304f\u306a\u3063\u305f\u539f\u56e0\u306f\u4e0d\u660e(Kotlin\u3092\u4f7f\u3063\u3066\u308b\u305b\u3044\u304b\u3001\u4f55\u304b\u3057\u3089\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u60aa\u3055\u3057\u3066\u308b\u304b)\u3067\u3001<br \/>\n\u3061\u3087\u3063\u3068\u4e0d\u4fbf\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u3088\u3057\u3068\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android\u3000Studio\u304b\u3089Kotlin\u3067\u958b\u767a\u3057\u3066\u3044\u304f\u3046\u3061\u3001 \u30d3\u30eb\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u4f55\u5ea6\u3084\u3063\u3066\u3082\u300cApplication Installation Failed\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u554f\u984c\u306b\u884c\u304d\u5f53\u305f\u3063\u305f\u306e\u3067\u5bfe\u7b56 &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/android-studio-application-installation-failed.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Android Studio \u3067 Installation Failed \u3068\u51fa\u308b\u554f\u984c\u306e\u89e3\u6c7a\u65b9\u6cd5<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1245,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[65,149],"class_list":["post-1242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android-dev","tag-android","tag-kotlin"],"jetpack_featured_media_url":"https:\/\/www.ecoop.net\/memo\/wp-content\/uploads\/2017\/03\/U05cw-300x85-1.png","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=1242"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/1242\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media\/1245"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=1242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=1242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}