• unity-模块卸载重新安装


    unity-模块卸载重新安装

    发现模块错误?发现不可以卸载重装?...

    依据以下步骤试试:

    1. 删除模块文件夹(以安卓模块为例)

    2.  找见编辑器模块json

    3.  找见所有安卓相关模块修改selected为false:"selected": false。

    1. [
    2. {
    3. "id": "visualstudio",
    4. "name": "Microsoft Visual Studio Community 2019",
    5. "description": "Downloads and installs Microsoft Visual Studio Community 2019. By installing this you accept the license terms for Visual Studio.",
    6. "downloadUrl": "https://go.microsoft.com/fwlink/?linkid=2086755",
    7. "category": "Dev tools",
    8. "installedSize": 1331200000,
    9. "downloadSize": 1363148800,
    10. "visible": true,
    11. "selected": false,
    12. "cmd": "--productId \"Microsoft.VisualStudio.Product.Community\" --add \"Microsoft.VisualStudio.Workload.ManagedGame\" --add \"Microsoft.VisualStudio.Workload.NativeDesktop\" --add \"Microsoft.VisualStudio.Component.VC.Tools.x86.x64\" --add \"Microsoft.VisualStudio.Component.Windows10SDK.16299\" --campaign \"Unity3d_Unity\" --passive --norestart --wait",
    13. "eulaUrl1": "https://go.microsoft.com/fwlink/?linkid=2092534",
    14. "eulaLabel1": "Visual Studio 2019 Community License Terms",
    15. "eulaMessage": "Please review and accept the license terms before downloading and installing Microsoft Visual Studio.",
    16. "preselected": true,
    17. "isInstalled": true,
    18. "newerModuleInstalled": true,
    19. "newerModuleName": "Microsoft Visual Studio Professional 2022"
    20. },
    21. {
    22. "id": "visualstudioprofessionalunityworkload",
    23. "name": "Unity Game Development for Microsoft Visual Studio Professional 2019",
    24. "description": "Unity Game Development for Microsoft Visual Studio Professional 2019. By installing this you accept the license terms for Visual Studio Tools for Unity.",
    25. "downloadUrl": "https://aka.ms/vs/16/release/vs_Professional.exe",
    26. "category": "Plugins",
    27. "installedSize": 327680000,
    28. "downloadSize": 1024000000,
    29. "visible": false,
    30. "selected": false,
    31. "cmd": "--add \"Microsoft.VisualStudio.Workload.ManagedGame\" --add \"Microsoft.VisualStudio.Workload.NativeDesktop\" --add \"Microsoft.VisualStudio.Component.VC.Tools.x86.x64\" --add \"Microsoft.VisualStudio.Component.Windows10SDK.16299\" --passive --norestart --wait",
    32. "eulaUrl1": "https://go.microsoft.com/fwlink/?linkid=617019",
    33. "eulaLabel1": "Visual Studio Tools for Unity License Terms",
    34. "eulaMessage": "Please review and accept the license terms before downloading and installing Unity Game Development for Microsoft Visual Studio Professional 2019.",
    35. "preselected": false
    36. },
    37. {
    38. "id": "visualstudioenterpriseunityworkload",
    39. "name": "Unity Game Development for Microsoft Visual Studio Enterprise 2019",
    40. "description": "Unity Game Development for Microsoft Visual Studio Enterprise 2019. By installing this you accept the license terms for Visual Studio Tools for Unity.",
    41. "downloadUrl": "https://aka.ms/vs/16/release/vs_Enterprise.exe",
    42. "category": "Plugins",
    43. "installedSize": 327680000,
    44. "downloadSize": 1024000000,
    45. "visible": false,
    46. "selected": false,
    47. "cmd": "--add \"Microsoft.VisualStudio.Workload.ManagedGame\" --add \"Microsoft.VisualStudio.Workload.NativeDesktop\" --add \"Microsoft.VisualStudio.Component.VC.Tools.x86.x64\" --add \"Microsoft.VisualStudio.Component.Windows10SDK.16299\" --passive --norestart --wait",
    48. "eulaUrl1": "https://go.microsoft.com/fwlink/?LinkId=617019",
    49. "eulaLabel1": "Visual Studio Tools for Unity License Terms",
    50. "eulaMessage": "Please review and accept the license terms before downloading and installing Unity Game Development for Microsoft Visual Studio Enterprise 2019.",
    51. "preselected": false
    52. },
    53. {
    54. "id": "android",
    55. "name": "Android Build Support",
    56. "description": "Android Playback Engine",
    57. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Android-Support-for-Editor-2021.3.29f1c1.exe",
    58. "category": "Platforms",
    59. "installedSize": 1997312000,
    60. "downloadSize": 386708480,
    61. "visible": true,
    62. "selected": true,
    63. "destination": "{UNITY_PATH}",
    64. "checksum": "8d662655f3e867c77262b6e94889e347",
    65. "preselected": false
    66. },
    67. {
    68. "id": "ios",
    69. "name": "iOS Build Support",
    70. "description": "iOS Playback Engine",
    71. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-iOS-Support-for-Editor-2021.3.29f1c1.exe",
    72. "category": "Platforms",
    73. "installedSize": 1947601920,
    74. "downloadSize": 424124416,
    75. "visible": true,
    76. "selected": false,
    77. "destination": "{UNITY_PATH}",
    78. "checksum": "3a6f462013c8857aea8468bde49e0ac1",
    79. "preselected": false
    80. },
    81. {
    82. "id": "appletv",
    83. "name": "tvOS Build Support",
    84. "description": "tvOS Playback Engine",
    85. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-AppleTV-Support-for-Editor-2021.3.29f1c1.exe",
    86. "category": "Platforms",
    87. "installedSize": 1926971392,
    88. "downloadSize": 420643840,
    89. "visible": true,
    90. "selected": false,
    91. "destination": "{UNITY_PATH}",
    92. "checksum": "84e4c922feaacd6ac0bdb71c3b6ce896",
    93. "preselected": false
    94. },
    95. {
    96. "id": "linux-il2cpp",
    97. "name": "Linux Build Support (IL2CPP)",
    98. "description": "Linux Playback Engine (IL2CPP Scripting Backend)",
    99. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Linux-IL2CPP-Support-for-Editor-2021.3.29f1c1.exe",
    100. "category": "Platforms",
    101. "installedSize": 234514432,
    102. "downloadSize": 56669184,
    103. "visible": true,
    104. "selected": false,
    105. "destination": "{UNITY_PATH}",
    106. "checksum": "13dd287edeae6f6a099ca7cc68824844",
    107. "preselected": false
    108. },
    109. {
    110. "id": "linux-mono",
    111. "name": "Linux Build Support (Mono)",
    112. "description": "Linux Playback Engine (Mono Scripting Backend)",
    113. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Linux-Mono-Support-for-Editor-2021.3.29f1c1.exe",
    114. "category": "Platforms",
    115. "installedSize": 233998336,
    116. "downloadSize": 56675328,
    117. "visible": true,
    118. "selected": false,
    119. "destination": "{UNITY_PATH}",
    120. "checksum": "2e416681eab89a5c9d124fc6daf636a3",
    121. "preselected": false
    122. },
    123. {
    124. "id": "linux-server",
    125. "name": "Linux Dedicated Server Build Support",
    126. "description": "Linux Server Playback Engine",
    127. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Linux-Server-Support-for-Editor-2021.3.29f1c1.exe",
    128. "category": "Platforms",
    129. "installedSize": 437945344,
    130. "downloadSize": 108065792,
    131. "visible": true,
    132. "selected": false,
    133. "destination": "{UNITY_PATH}",
    134. "checksum": "452ea7319d7bc7b861f670fde35c092b",
    135. "preselected": false
    136. },
    137. {
    138. "id": "mac-mono",
    139. "name": "Mac Build Support (Mono)",
    140. "description": "Mac Playback Engine (Mono Scripting Backend)",
    141. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Mac-Mono-Support-for-Editor-2021.3.29f1c1.exe",
    142. "category": "Platforms",
    143. "installedSize": 1925363712,
    144. "downloadSize": 329503744,
    145. "visible": true,
    146. "selected": false,
    147. "destination": "{UNITY_PATH}",
    148. "checksum": "ff488a11166b55805234639599e271ae",
    149. "preselected": false
    150. },
    151. {
    152. "id": "mac-server",
    153. "name": "Mac Dedicated Server Build Support",
    154. "description": "Mac Server Playback Engine",
    155. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Mac-Server-Support-for-Editor-2021.3.29f1c1.exe",
    156. "category": "Platforms",
    157. "installedSize": 1907766272,
    158. "downloadSize": 327522304,
    159. "visible": true,
    160. "selected": false,
    161. "destination": "{UNITY_PATH}",
    162. "checksum": "063c6eac0d3d6cef955539d408dd539e",
    163. "preselected": false
    164. },
    165. {
    166. "id": "universal-windows-platform",
    167. "name": "Universal Windows Platform Build Support",
    168. "description": "UWP Playback Engine",
    169. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Universal-Windows-Platform-Support-for-Editor-2021.3.29f1c1.exe",
    170. "category": "Platforms",
    171. "installedSize": 2122024960,
    172. "downloadSize": 295372800,
    173. "visible": true,
    174. "selected": false,
    175. "destination": "{UNITY_PATH}",
    176. "checksum": "fa6181778e008f97fbe7c062f1cc3f3f",
    177. "preselected": false
    178. },
    179. {
    180. "id": "webgl",
    181. "name": "WebGL Build Support",
    182. "description": "WebGL Playback Engine",
    183. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-WebGL-Support-for-Editor-2021.3.29f1c1.exe",
    184. "category": "Platforms",
    185. "installedSize": 1743069184,
    186. "downloadSize": 346706944,
    187. "visible": true,
    188. "selected": true,
    189. "destination": "{UNITY_PATH}",
    190. "checksum": "c0e04ddc5224b482acc5cf8b5d87c63c",
    191. "preselected": false
    192. },
    193. {
    194. "id": "windows-il2cpp",
    195. "name": "Windows Build Support (IL2CPP)",
    196. "description": "Windows Playback Engine (IL2CPP Scripting Backend)",
    197. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Windows-IL2CPP-Support-for-Editor-2021.3.29f1c1.exe",
    198. "category": "Platforms",
    199. "installedSize": 1894120448,
    200. "downloadSize": 322795520,
    201. "visible": true,
    202. "selected": true,
    203. "destination": "{UNITY_PATH}",
    204. "checksum": "53195c2d75fcd71ee279a7de3980e5d6",
    205. "preselected": false
    206. },
    207. {
    208. "id": "windows-server",
    209. "name": "Windows Dedicated Server Build Support",
    210. "description": "Windows Server Playback Engine",
    211. "downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Windows-Server-Support-for-Editor-2021.3.29f1c1.exe",
    212. "category": "Platforms",
    213. "installedSize": 3761495040,
    214. "downloadSize": 642302976,
    215. "visible": true,
    216. "selected": true,
    217. "destination": "{UNITY_PATH}",
    218. "checksum": "390b8eb20ca68e39257d85365cd066a2",
    219. "preselected": false
    220. },
    221. {
    222. "id": "documentation",
    223. "name": "Documentation",
    224. "description": "Offline Documentation",
    225. "downloadUrl": "https://cloudmedia-docs.unity3d.com/docscloudstorage/2021.3/UnityDocumentation.zip",
    226. "category": "Documentation",
    227. "visible": true,
    228. "selected": true,
    229. "destination": "{UNITY_PATH}/Editor/Data",
    230. "installedSize": 684312943,
    231. "downloadSize": 335447521,
    232. "preselected": true
    233. },
    234. {
    235. "id": "language-ja",
    236. "name": "日本語",
    237. "description": "日本語",
    238. "downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/ja",
    239. "category": "Language packs (Preview)",
    240. "visible": true,
    241. "selected": false,
    242. "destination": "{UNITY_PATH}/Editor/Data/Localization",
    243. "installedSize": 2366395,
    244. "downloadSize": 2366395,
    245. "preselected": false
    246. },
    247. {
    248. "id": "language-ko",
    249. "name": "한국어",
    250. "description": "한국어",
    251. "downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/ko",
    252. "category": "Language packs (Preview)",
    253. "visible": true,
    254. "selected": false,
    255. "destination": "{UNITY_PATH}/Editor/Data/Localization",
    256. "installedSize": 2239534,
    257. "downloadSize": 2239534,
    258. "preselected": false
    259. },
    260. {
    261. "id": "language-zh-hans",
    262. "name": "简体中文",
    263. "description": "简体中文",
    264. "downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/zh-hans",
    265. "category": "Language packs (Preview)",
    266. "visible": true,
    267. "selected": false,
    268. "destination": "{UNITY_PATH}/Editor/Data/Localization",
    269. "installedSize": 2067382,
    270. "downloadSize": 2067382,
    271. "preselected": false
    272. },
    273. {
    274. "id": "language-zh-hant",
    275. "name": "繁體中文",
    276. "description": "繁體中文",
    277. "downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/zh-hant",
    278. "category": "Language packs (Preview)",
    279. "visible": true,
    280. "selected": false,
    281. "destination": "{UNITY_PATH}/Editor/Data/Localization",
    282. "installedSize": 2065212,
    283. "downloadSize": 2065212,
    284. "preselected": false
    285. },
    286. {
    287. "id": "android-sdk-ndk-tools",
    288. "name": "Android SDK & NDK Tools",
    289. "description": "Android SDK & NDK Tools 26.1.1",
    290. "downloadUrl": "https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip",
    291. "category": "Platforms",
    292. "installedSize": 174000000,
    293. "downloadSize": 148000000,
    294. "visible": true,
    295. "sync": "Android Build Support",
    296. "selected": false,
    297. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
    298. "parent": "android",
    299. "eulaUrl1": "https://dl.google.com/dl/android/repository/repository2-1.xml",
    300. "eulaLabel1": "Android SDK and NDK License Terms from Google",
    301. "eulaMessage": "Please review and accept the license terms before downloading and installing Android's SDK and NDK.",
    302. "preselected": false
    303. },
    304. {
    305. "id": "android-sdk-platform-tools",
    306. "name": "Android SDK Platform Tools",
    307. "description": "Android SDK Platform Tools 30.0.4",
    308. "downloadUrl": "https://dl.google.com/android/repository/platform-tools_r30.0.4-windows.zip",
    309. "category": "Platforms",
    310. "installedSize": 26900000,
    311. "downloadSize": 8400000,
    312. "visible": false,
    313. "sync": "android-sdk-ndk-tools",
    314. "selected": false,
    315. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
    316. "preselected": false
    317. },
    318. {
    319. "id": "android-sdk-build-tools",
    320. "name": "Android SDK Build Tools",
    321. "description": "Android SDK Build Tools 30.0.2",
    322. "downloadUrl": "https://dl.google.com/android/repository/efbaa277338195608aa4e3dbd43927e97f60218c.build-tools_r30.0.2-windows.zip",
    323. "category": "Platforms",
    324. "installedSize": 130000000,
    325. "downloadSize": 51200000,
    326. "visible": false,
    327. "sync": "android-sdk-ndk-tools",
    328. "selected": false,
    329. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
    330. "renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/build-tools/30.0.2",
    331. "renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/android-11",
    332. "preselected": false
    333. },
    334. {
    335. "id": "android-sdk-platforms-29",
    336. "name": "Android SDK Platforms 29",
    337. "description": "Android SDK Platforms 29 29",
    338. "downloadUrl": "https://dl.google.com/android/repository/platform-29_r05.zip",
    339. "category": "Platforms",
    340. "installedSize": 152500000,
    341. "downloadSize": 78300000,
    342. "visible": false,
    343. "sync": "android-sdk-ndk-tools",
    344. "selected": false,
    345. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
    346. "renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platforms/android-29",
    347. "renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/android-10",
    348. "preselected": false
    349. },
    350. {
    351. "id": "android-sdk-platforms-30",
    352. "name": "Android SDK Platforms 30",
    353. "description": "Android SDK Platforms 30 30",
    354. "downloadUrl": "https://dl.google.com/android/repository/platform-30_r03.zip",
    355. "category": "Platforms",
    356. "installedSize": 116400000,
    357. "downloadSize": 52300000,
    358. "visible": false,
    359. "sync": "android-sdk-ndk-tools",
    360. "selected": false,
    361. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
    362. "renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platforms/android-30",
    363. "renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/android-11",
    364. "preselected": false
    365. },
    366. {
    367. "id": "android-ndk",
    368. "name": "Android NDK",
    369. "description": "Android NDK r21d",
    370. "downloadUrl": "https://dl.google.com/android/repository/android-ndk-r21d-windows-x86_64.zip",
    371. "category": "Platforms",
    372. "installedSize": 3911680000,
    373. "downloadSize": 1024000000,
    374. "visible": false,
    375. "sync": "android-sdk-ndk-tools",
    376. "selected": false,
    377. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/NDK",
    378. "renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/NDK",
    379. "renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r21d",
    380. "preselected": false
    381. },
    382. {
    383. "id": "android-open-jdk",
    384. "name": "OpenJDK",
    385. "description": "Android Open JDK 8u172-b11",
    386. "downloadUrl": "http://download.unity3d.com/download_unity/open-jdk/open-jdk-win-x64/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip",
    387. "category": "Platforms",
    388. "installedSize": 153000000,
    389. "downloadSize": 70460000,
    390. "visible": true,
    391. "selected": false,
    392. "parent": "android",
    393. "sync": "Android Build Support",
    394. "destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK",
    395. "preselected": false
    396. }
    397. ]

    4. 重启bug,添加模块。 

     

    注意:务必先安装!Android Build Supporticon-default.png?t=N7T8https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Android-Support-for-Editor-2021.3.29f1c1.exe

  • 相关阅读:
    生成可执行jar
    运筹模型的变量的对称性案例及分析
    Selenium-元素操作、浏览器操作方法
    客户档案管理,批发零售进销存收银财务一体管理软件
    身份实名认证-身份证实名认证-身份证实名-实名认证-身份证二要素-身份证实名认证-身份实名认证-身份证号码实名认证核验校验接口API
    Redis面试题(2022)
    Kubernetes v1.25 搭建单节点集群用于Debug K8S源码
    Docker SpringBoot项目连接本地数据库
    Coredump-n: 内存占用太多导致应用程序起不来的一例
    Sonarqube与Gitlab集成
  • 原文地址:https://blog.csdn.net/weixin_45728126/article/details/134505298