{"id":4742,"date":"2018-04-05T15:08:52","date_gmt":"2018-04-05T07:08:52","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4742"},"modified":"2018-04-11T11:33:59","modified_gmt":"2018-04-11T03:33:59","slug":"upgrading-old-5-5-project-to-2017-4-lts","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2018\/04\/05\/upgrading-old-5-5-project-to-2017-4-lts\/","title":{"rendered":"Upgrading old 5.5 project to 2017.4 LTS"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4745\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2018\/04\/05\/upgrading-old-5-5-project-to-2017-4-lts\/upgrade-unity-2017\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?fit=584%2C271&amp;ssl=1\" data-orig-size=\"584,271\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"upgrade-unity-2017\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?fit=300%2C139&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?fit=584%2C271&amp;ssl=1\" class=\"alignnone size-full wp-image-4745\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?resize=584%2C271&#038;ssl=1\" alt=\"\" width=\"584\" height=\"271\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?w=584&amp;ssl=1 584w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?resize=300%2C139&amp;ssl=1 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/p>\n<p>So had to upgrade one old Android+iOS cardboard app into newer unity version..<br \/>\n(Due to old unity doesn&#8217;t support latest apple os updates [<a href=\"https:\/\/forum.unity.com\/threads\/unity-and-macos-10-13-high-sierra.474527\/\" target=\"_blank\" rel=\"noopener\">link<\/a>], missing new app store image sizes [<a href=\"https:\/\/issuetracker.unity3d.com\/issues\/xcode-9-ios-warning-missing-marketing-icon-is-thrown-when-uploading-an-app-to-itunes-connect\" target=\"_blank\" rel=\"noopener\">link<\/a>], some plugins are getting fixes\/updates to newer versions, Android google play has new requirements coming up [<a href=\"https:\/\/blogs.unity3d.com\/2017\/12\/20\/meeting-google-play-requirements-in-the-future\/\" target=\"_blank\" rel=\"noopener\">link<\/a>],\u00a0 and would be nice to use new unity videoplayer etc..)<\/p>\n<p>&nbsp;<\/p>\n<p>Project has multiple external plugins from asset store (including EasyMovieTexture, YoutubePlayer\/API, MoonSharp, ToonShaders, UberLogger, LeanTween, Old GVR 0.7 ..), and many custom shaders.<\/p>\n<p>Surprisingly auto-upgrade went cleanly, and iOS build works fine.. <strong>BUT<\/strong>, android build crashes on start, with the error below:<\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist88814214\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-android-error-gvr-txt\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-text  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"android-error-gvr.txt content, created by unitycoder on 07:05AM on April 05, 2018.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"android-error-gvr.txt\">\n<tr>\n<td id=\"file-android-error-gvr-txt-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC1\" class=\"blob-code blob-code-inner js-file-line\">\/\/ caused by old GVR 0.7<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC2\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC3\" class=\"blob-code blob-code-inner js-file-line\">FATAL EXCEPTION: main<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC4\" class=\"blob-code blob-code-inner js-file-line\">java.lang.Error: FATAL EXCEPTION [main]<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC5\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC6\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): Caused by: java.lang.NoSuchMethodError: No direct method &lt;init&gt;(Landroid\/content\/ContextWrapper;)V in class Lcom\/unity3d\/player\/UnityPlayer; or its super classes (declaration of &#39;com.unity3d.player.UnityPlayer&#39; appears in \/data\/app\/com.xyz.asdas-2\/base.apk)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC7\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at com.google.unity.GoogleUnityActivity.onCreate(GoogleUnityActivity.java:114)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC8\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.Activity.performCreate(Activity.java:6289)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC9\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC10\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC11\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2767)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC12\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.ActivityThread.access$900(ActivityThread.java:177)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC13\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC14\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.os.Handler.dispatchMessage(Handler.java:102)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC15\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.os.Looper.loop(Looper.java:145)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC16\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at android.app.ActivityThread.main(ActivityThread.java:5951)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC17\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at java.lang.reflect.Method.invoke(Native Method)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC18\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at java.lang.reflect.Method.invoke(Method.java:372)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC19\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-android-error-gvr-txt-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n<td id=\"file-android-error-gvr-txt-LC20\" class=\"blob-code blob-code-inner js-file-line\">E\/AndroidRuntime(10577): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/16099ba4e1e1ca69122e28a0343833a2\/raw\/b9c7495aea86f154f69e90f9e396e8966fdc1cf7\/android-error-gvr.txt\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/16099ba4e1e1ca69122e28a0343833a2#file-android-error-gvr-txt\" class=\"Link--inTextBlock\"><br \/>\n          android-error-gvr.txt<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-deploy-error-txt\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-text  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"deploy-error.txt content, created by unitycoder on 07:05AM on April 05, 2018.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"deploy-error.txt\">\n<tr>\n<td id=\"file-deploy-error-txt-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-deploy-error-txt-LC1\" class=\"blob-code blob-code-inner js-file-line\">Error below, caused by either<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-deploy-error-txt-LC2\" class=\"blob-code blob-code-inner js-file-line\">&#8211; androidmanifest.xml, too small min\/target sdk, set both to 21 for 2017.4<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-deploy-error-txt-LC3\" class=\"blob-code blob-code-inner js-file-line\">&#8211; or phone had denied installing (you pressed deny, instead of allow), go to Settings\/DeveloperSettings\/Permissions\/Install via usb, should have blocked your app, disable and try again<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-deploy-error-txt-LC4\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-deploy-error-txt-LC5\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-deploy-error-txt-LC6\" class=\"blob-code blob-code-inner js-file-line\">\/\/ warning<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-deploy-error-txt-LC7\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-deploy-error-txt-LC8\" class=\"blob-code blob-code-inner js-file-line\">Plugins\/Android\/AndroidManifest.xml has android:targetSdkVersion set to 21 but &quot;Target API Level&quot; in Editor is set to 26! Setting android:targetSdkVersion to 26.<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-deploy-error-txt-LC9\" class=\"blob-code blob-code-inner js-file-line\">UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-deploy-error-txt-LC10\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-deploy-error-txt-LC11\" class=\"blob-code blob-code-inner js-file-line\">\/\/ error<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-deploy-error-txt-LC12\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n<td id=\"file-deploy-error-txt-LC13\" class=\"blob-code blob-code-inner js-file-line\">CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details. <\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n<td id=\"file-deploy-error-txt-LC14\" class=\"blob-code blob-code-inner js-file-line\">&#8230;\/android-sdk\\platform-tools\\adb.exe -s &quot;28a358290404&quot; install -r &quot;&#8230;\\asdf.apk&quot;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n<td id=\"file-deploy-error-txt-LC15\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n<td id=\"file-deploy-error-txt-LC16\" class=\"blob-code blob-code-inner js-file-line\">stderr[<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n<td id=\"file-deploy-error-txt-LC17\" class=\"blob-code blob-code-inner js-file-line\">Failed to install asdf.apk: Failure [INSTALL_CANCELED_BY_USER]<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n<td id=\"file-deploy-error-txt-LC18\" class=\"blob-code blob-code-inner js-file-line\">]<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n<td id=\"file-deploy-error-txt-LC19\" class=\"blob-code blob-code-inner js-file-line\">stdout[<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n<td id=\"file-deploy-error-txt-LC20\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n<td id=\"file-deploy-error-txt-LC21\" class=\"blob-code blob-code-inner js-file-line\">]<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n<td id=\"file-deploy-error-txt-LC22\" class=\"blob-code blob-code-inner js-file-line\">exit code: 1<\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n<td id=\"file-deploy-error-txt-LC23\" class=\"blob-code blob-code-inner js-file-line\">  at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in &lt;filename unknown&gt;:0 <\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n<td id=\"file-deploy-error-txt-LC24\" class=\"blob-code blob-code-inner js-file-line\">  at UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00000] in &lt;filename unknown&gt;:0 <\/td>\n<\/tr>\n<tr>\n<td id=\"file-deploy-error-txt-L25\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"25\"><\/td>\n<td id=\"file-deploy-error-txt-LC25\" class=\"blob-code blob-code-inner js-file-line\">  <\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/16099ba4e1e1ca69122e28a0343833a2\/raw\/b9c7495aea86f154f69e90f9e396e8966fdc1cf7\/deploy-error.txt\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/16099ba4e1e1ca69122e28a0343833a2#file-deploy-error-txt\" class=\"Link--inTextBlock\"><br \/>\n          deploy-error.txt<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>For the script updates, only manual work was to rename these couple changed method\/names:<\/p>\n<pre><span style=\"color: #003366;\"><span class=\"blob-code-inner\">Application.<span class=\"x x-first x-last\">bundleIdentifier<\/span><\/span> &gt; <span class=\"blob-code-inner\">Application.i<span class=\"x x-first x-last\">dentifier\r\n<\/span><\/span><span class=\"blob-code-inner\">Caching.<span class=\"x x-first x-last\">CleanCache()<\/span><\/span> &gt; <\/span><span class=\"blob-code-inner\"><span style=\"color: #003366;\">Caching.<span class=\"x x-first x-last\">ClearCache<\/span>()<\/span>\r\n<span class=\"x x-first x-last\"><span style=\"color: #003366;\">animator.Stop() &gt; animator.<span class=\"x x-first\">enabled = <\/span><span class=\"pl-c1 x x-last\">false<\/span>;<\/span>\r\n<\/span><\/span><\/pre>\n<p>&nbsp;<\/p>\n<p>These things updated automagically:<\/p>\n<pre><span style=\"color: #003366;\"><span class=\"blob-code-inner\"><span class=\"pl-c1 x x-first\">mul<\/span><span class=\"x x-last\">(UNITY_MATRIX_MVP, <\/span>pos)<\/span> &gt; <span class=\"blob-code-inner\"><span class=\"pl-c1 x x-first\">UnityObjectToClipPos<\/span><span class=\"x x-last\">(<\/span>pos)<\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\">packedNativeUnityEngineObject.<span class=\"x x-first x-last\">classId<\/span><\/span> &gt; <span class=\"blob-code-inner\">packedNativeUnityEngineObject.<span class=\"x x-first x-last\">nativeTypeArrayIndex<\/span><\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\">packedNativeType.<span class=\"x x-first x-last\">baseClassId<\/span><\/span> &gt; <span class=\"blob-code-inner\">packedNativeType.<span class=\"x x-first x-last\">nativeBaseTypeArrayIndex<\/span><\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\">EventType.<span class=\"x x-first x-last\">mouseDown<\/span><\/span> &gt; <span class=\"blob-code-inner\">EventType.<span class=\"x x-first x-last\">MouseDown<\/span><\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\">EventType.<span class=\"x x-first x-last\">mouseUp<\/span><\/span> &gt; <span class=\"blob-code-inner\">EventType.<span class=\"x x-first x-last\">MouseUp<\/span><\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\">EventType.<span class=\"x x-first x-last\">mouseDrag<\/span><\/span> &gt; <span class=\"blob-code-inner\">EventType.M<span class=\"x x-first x-last\">ouseDrag\r\nEventType.scrollWheel &gt; EventType.ScrollWheel\r\nwww.isError &gt; www.isNetworkError\r\nVRSettings.enabled &gt; UnityEngine.XR.XRSettings.enabled\r\nlineRenderer.numPositions &gt; lineRenderer.positionCount\r\n<\/span><\/span><span class=\"blob-code-inner\"><span class=\"x x-first x-last\">UnityWebRequest<\/span>.GetTexture<\/span> &gt; <span class=\"blob-code-inner\"><span class=\"x x-first x-last\">UnityWebRequestTexture<\/span>.GetTexture<\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\"><span class=\"pl-en x x-first x-last\">VRNode<\/span> <span class=\"pl-en\">m_VRNode<\/span> = <span class=\"x x-first x-last\">VRNode<\/span>.Head<\/span> &gt; <span class=\"blob-code-inner\"><span class=\"pl-en x x-first x-last\">UnityEngine.XR.XRNode<\/span> m_VRNode = <span class=\"x x-first x-last\">UnityEngine.XR.XRNode<\/span>.Head<\/span><\/span>\r\n<span style=\"color: #003366;\"><span class=\"blob-code-inner\">InputTracking.GetLocalRotation<\/span> &gt; <span class=\"blob-code-inner\"><span class=\"x x-first x-last\">UnityEngine.XR.<\/span>InputTracking.GetLocalRotation<\/span><\/span>\r\n\r\n<\/pre>\n<p>One thing i noticed, the old undocumented findChild() seems to be removed.. which might be slower now(?) if it searches whole scene then:<\/p>\n<pre><span style=\"color: #003366;\"><span class=\"blob-code-inner\">go.<span class=\"x x-first x-last\">FindChild<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>name<span class=\"pl-pds\">\"<\/span><\/span>)<\/span> &gt; <span class=\"blob-code-inner\">go.<span class=\"x x-first x-last\">Find<\/span>(<span class=\"pl-s\"><span class=\"pl-pds\">\"<\/span>name<span class=\"pl-pds\">\"<\/span><\/span>)<\/span><\/span><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Other notes:<\/strong><br \/>\n&#8211; Main app icon in Player Settings seems to be empty, had to assign that back<br \/>\n&#8211; Api compatibility setting had changed from 2.0, back into 2.0 subset, which caused build errors with one plugin, had to assign it back to full 2.0:<br \/>\n<span style=\"color: #003366;\">&#8220;ArgumentException: The Assembly System.Web is referenced by YoutubeUnity (&#8216;Assets\/Youtube\/YoutubePlayer\/Plugins\/YoutubeUnity.dll&#8217;). But the dll is not allowed to be included or could not be found.&#8221;<br \/>\n<span style=\"color: #000000;\">&#8211; APK Build size went up from 75mb &gt; 89mb<\/span><br \/>\n<span style=\"color: #000000;\">&#8211; iOS build works fine, Android build crashes on start (see error log above) *currently not yet solved, probably will try updating GVR later.. [<a style=\"color: #000000;\" href=\"https:\/\/forum.unity.com\/threads\/old-gvr-project-crashes-on-android-worked-in-5-5-crashes-on-2017-4-build.525127\/\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #00ccff;\">forum link<\/span><\/a>]<\/span><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>Final Results:<\/strong><\/span><\/p>\n<p>&#8211; Reverted back and updated to 5.6.5p3 instead.. old gvr still works with that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So had to upgrade one old Android+iOS cardboard app into newer unity version.. (Due to old unity doesn&#8217;t support latest apple os updates [link], missing new app store image sizes [link], some plugins are getting fixes\/updates to newer versions, Android google play has new requirements [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4745,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Upgrading old 5.5 project to 2017.4 LTS","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[797,3],"tags":[1043,1042,614,959,1041,1039,1040],"class_list":["post-4742","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips","category-unity3d","tag-1043","tag-1042","tag-app","tag-cardboard","tag-lts","tag-update","tag-upgrade"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/04\/upgrade-unity-2017.png?fit=584%2C271&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1eu","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4742"}],"version-history":[{"count":8,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4742\/revisions"}],"predecessor-version":[{"id":4755,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4742\/revisions\/4755"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4745"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}