官术网_书友最值得收藏!

Invalid command Android error

Some Android users have reported an error relating to the Android SDK Tools location. The problem has been confirmed in many installations prior to Unity 2017.1. If this problem occurs, the best solution is to downgrade to a previous version of the SDK Tools. This can be done by following the steps outlined here:

  1. Locate and delete the Android SDK Tools folder [Your Android SDK Root]/tools. This location will depend on where the Android SDK package was installed. For example, on my computer the Android SDK Tools folder is found at C:\Users\cpalmer\AppData\Local\Android\sdk.
  2. Download SDK Tools from http://dl-ssl.google.com/Android/repository/tools_r25.2.5-windows.zip.
  3. Extract the archive to the SDK root directory.
  4. Re-attempt the Build project process.

If this is the first time you are creating an Android application, you might get an error indicating that Unity cannot locate your Android SDK root directory. If this is the case, follow these steps:

  1. Cancel the build process and close the Build Settings... window.
  2. Choose Edit | Preferences... from the main menu.
  3. Choose External Tools and scroll down to Android.
  4. Enter the location of your Android SDK root folder. If you have not installed the SDK, click the download button and follow the installation process.

Install the app onto your phone and load the phone into your Cardboard device:

Figure 2.11: Stereoscopic view on an Android device
主站蜘蛛池模板: 龙南县| 天柱县| 开原市| 平湖市| 万荣县| 凤冈县| 濮阳市| 曲沃县| 四川省| 徐汇区| 金阳县| 松原市| 祁连县| 靖安县| 青铜峡市| 东丰县| 湘阴县| 黔南| 永嘉县| 夏邑县| 卫辉市| 新乐市| 通江县| 东至县| 冕宁县| 康平县| 鄯善县| 清流县| 清流县| 天台县| 辽阳市| 乌兰县| 平乐县| 许昌市| 嫩江县| 榕江县| 安阳市| 潮安县| 泾源县| 泸水县| 潼关县|