unity-模块卸载重新安装

unity-模块卸载重新安装

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

依据以下步骤试试:

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

unity-模块卸载重新安装_第1张图片

2.  找见编辑器模块json

unity-模块卸载重新安装_第2张图片

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

[
	{
		"id": "visualstudio",
		"name": "Microsoft Visual Studio Community 2019",
		"description": "Downloads and installs Microsoft Visual Studio Community 2019. By installing this you accept the license terms for Visual Studio.",
		"downloadUrl": "https://go.microsoft.com/fwlink/?linkid=2086755",
		"category": "Dev tools",
		"installedSize": 1331200000,
		"downloadSize": 1363148800,
		"visible": true,
		"selected": false,
		"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",
		"eulaUrl1": "https://go.microsoft.com/fwlink/?linkid=2092534",
		"eulaLabel1": "Visual Studio 2019 Community License Terms",
		"eulaMessage": "Please review and accept the license terms before downloading and installing Microsoft Visual Studio.",
		"preselected": true,
		"isInstalled": true,
		"newerModuleInstalled": true,
		"newerModuleName": "Microsoft Visual Studio Professional 2022"
	},
	{
		"id": "visualstudioprofessionalunityworkload",
		"name": "Unity Game Development for Microsoft Visual Studio Professional 2019",
		"description": "Unity Game Development for Microsoft Visual Studio Professional 2019. By installing this you accept the license terms for Visual Studio Tools for Unity.",
		"downloadUrl": "https://aka.ms/vs/16/release/vs_Professional.exe",
		"category": "Plugins",
		"installedSize": 327680000,
		"downloadSize": 1024000000,
		"visible": false,
		"selected": false,
		"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",
		"eulaUrl1": "https://go.microsoft.com/fwlink/?linkid=617019",
		"eulaLabel1": "Visual Studio Tools for Unity License Terms",
		"eulaMessage": "Please review and accept the license terms before downloading and installing Unity Game Development for Microsoft Visual Studio Professional 2019.",
		"preselected": false
	},
	{
		"id": "visualstudioenterpriseunityworkload",
		"name": "Unity Game Development for Microsoft Visual Studio Enterprise 2019",
		"description": "Unity Game Development for Microsoft Visual Studio Enterprise 2019. By installing this you accept the license terms for Visual Studio Tools for Unity.",
		"downloadUrl": "https://aka.ms/vs/16/release/vs_Enterprise.exe",
		"category": "Plugins",
		"installedSize": 327680000,
		"downloadSize": 1024000000,
		"visible": false,
		"selected": false,
		"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",
		"eulaUrl1": "https://go.microsoft.com/fwlink/?LinkId=617019",
		"eulaLabel1": "Visual Studio Tools for Unity License Terms",
		"eulaMessage": "Please review and accept the license terms before downloading and installing Unity Game Development for Microsoft Visual Studio Enterprise 2019.",
		"preselected": false
	},
	{
		"id": "android",
		"name": "Android Build Support",
		"description": "Android Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Android-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1997312000,
		"downloadSize": 386708480,
		"visible": true,
		"selected": true,
		"destination": "{UNITY_PATH}",
		"checksum": "8d662655f3e867c77262b6e94889e347",
		"preselected": false
	},
	{
		"id": "ios",
		"name": "iOS Build Support",
		"description": "iOS Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-iOS-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1947601920,
		"downloadSize": 424124416,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "3a6f462013c8857aea8468bde49e0ac1",
		"preselected": false
	},
	{
		"id": "appletv",
		"name": "tvOS Build Support",
		"description": "tvOS Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-AppleTV-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1926971392,
		"downloadSize": 420643840,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "84e4c922feaacd6ac0bdb71c3b6ce896",
		"preselected": false
	},
	{
		"id": "linux-il2cpp",
		"name": "Linux Build Support (IL2CPP)",
		"description": "Linux Playback Engine (IL2CPP Scripting Backend)",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Linux-IL2CPP-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 234514432,
		"downloadSize": 56669184,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "13dd287edeae6f6a099ca7cc68824844",
		"preselected": false
	},
	{
		"id": "linux-mono",
		"name": "Linux Build Support (Mono)",
		"description": "Linux Playback Engine (Mono Scripting Backend)",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Linux-Mono-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 233998336,
		"downloadSize": 56675328,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "2e416681eab89a5c9d124fc6daf636a3",
		"preselected": false
	},
	{
		"id": "linux-server",
		"name": "Linux Dedicated Server Build Support",
		"description": "Linux Server Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Linux-Server-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 437945344,
		"downloadSize": 108065792,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "452ea7319d7bc7b861f670fde35c092b",
		"preselected": false
	},
	{
		"id": "mac-mono",
		"name": "Mac Build Support (Mono)",
		"description": "Mac Playback Engine (Mono Scripting Backend)",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Mac-Mono-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1925363712,
		"downloadSize": 329503744,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "ff488a11166b55805234639599e271ae",
		"preselected": false
	},
	{
		"id": "mac-server",
		"name": "Mac Dedicated Server Build Support",
		"description": "Mac Server Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Mac-Server-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1907766272,
		"downloadSize": 327522304,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "063c6eac0d3d6cef955539d408dd539e",
		"preselected": false
	},
	{
		"id": "universal-windows-platform",
		"name": "Universal Windows Platform Build Support",
		"description": "UWP Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Universal-Windows-Platform-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 2122024960,
		"downloadSize": 295372800,
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}",
		"checksum": "fa6181778e008f97fbe7c062f1cc3f3f",
		"preselected": false
	},
	{
		"id": "webgl",
		"name": "WebGL Build Support",
		"description": "WebGL Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-WebGL-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1743069184,
		"downloadSize": 346706944,
		"visible": true,
		"selected": true,
		"destination": "{UNITY_PATH}",
		"checksum": "c0e04ddc5224b482acc5cf8b5d87c63c",
		"preselected": false
	},
	{
		"id": "windows-il2cpp",
		"name": "Windows Build Support (IL2CPP)",
		"description": "Windows Playback Engine (IL2CPP Scripting Backend)",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Windows-IL2CPP-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 1894120448,
		"downloadSize": 322795520,
		"visible": true,
		"selected": true,
		"destination": "{UNITY_PATH}",
		"checksum": "53195c2d75fcd71ee279a7de3980e5d6",
		"preselected": false
	},
	{
		"id": "windows-server",
		"name": "Windows Dedicated Server Build Support",
		"description": "Windows Server Playback Engine",
		"downloadUrl": "https://download.unitychina.cn/download_unity/0b77087ad835/TargetSupportInstaller/UnitySetup-Windows-Server-Support-for-Editor-2021.3.29f1c1.exe",
		"category": "Platforms",
		"installedSize": 3761495040,
		"downloadSize": 642302976,
		"visible": true,
		"selected": true,
		"destination": "{UNITY_PATH}",
		"checksum": "390b8eb20ca68e39257d85365cd066a2",
		"preselected": false
	},
	{
		"id": "documentation",
		"name": "Documentation",
		"description": "Offline Documentation",
		"downloadUrl": "https://cloudmedia-docs.unity3d.com/docscloudstorage/2021.3/UnityDocumentation.zip",
		"category": "Documentation",
		"visible": true,
		"selected": true,
		"destination": "{UNITY_PATH}/Editor/Data",
		"installedSize": 684312943,
		"downloadSize": 335447521,
		"preselected": true
	},
	{
		"id": "language-ja",
		"name": "日本語",
		"description": "日本語",
		"downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/ja",
		"category": "Language packs (Preview)",
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/Localization",
		"installedSize": 2366395,
		"downloadSize": 2366395,
		"preselected": false
	},
	{
		"id": "language-ko",
		"name": "한국어",
		"description": "한국어",
		"downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/ko",
		"category": "Language packs (Preview)",
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/Localization",
		"installedSize": 2239534,
		"downloadSize": 2239534,
		"preselected": false
	},
	{
		"id": "language-zh-hans",
		"name": "简体中文",
		"description": "简体中文",
		"downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/zh-hans",
		"category": "Language packs (Preview)",
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/Localization",
		"installedSize": 2067382,
		"downloadSize": 2067382,
		"preselected": false
	},
	{
		"id": "language-zh-hant",
		"name": "繁體中文",
		"description": "繁體中文",
		"downloadUrl": "https://new-translate.unity3d.jp/v1/live/54/2021.3/zh-hant",
		"category": "Language packs (Preview)",
		"visible": true,
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/Localization",
		"installedSize": 2065212,
		"downloadSize": 2065212,
		"preselected": false
	},
	{
		"id": "android-sdk-ndk-tools",
		"name": "Android SDK & NDK Tools",
		"description": "Android SDK & NDK Tools 26.1.1",
		"downloadUrl": "https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip",
		"category": "Platforms",
		"installedSize": 174000000,
		"downloadSize": 148000000,
		"visible": true,
		"sync": "Android Build Support",
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
		"parent": "android",
		"eulaUrl1": "https://dl.google.com/dl/android/repository/repository2-1.xml",
		"eulaLabel1": "Android SDK and NDK License Terms from Google",
		"eulaMessage": "Please review and accept the license terms before downloading and installing Android's SDK and NDK.",
		"preselected": false
	},
	{
		"id": "android-sdk-platform-tools",
		"name": "Android SDK Platform Tools",
		"description": "Android SDK Platform Tools 30.0.4",
		"downloadUrl": "https://dl.google.com/android/repository/platform-tools_r30.0.4-windows.zip",
		"category": "Platforms",
		"installedSize": 26900000,
		"downloadSize": 8400000,
		"visible": false,
		"sync": "android-sdk-ndk-tools",
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
		"preselected": false
	},
	{
		"id": "android-sdk-build-tools",
		"name": "Android SDK Build Tools",
		"description": "Android SDK Build Tools 30.0.2",
		"downloadUrl": "https://dl.google.com/android/repository/efbaa277338195608aa4e3dbd43927e97f60218c.build-tools_r30.0.2-windows.zip",
		"category": "Platforms",
		"installedSize": 130000000,
		"downloadSize": 51200000,
		"visible": false,
		"sync": "android-sdk-ndk-tools",
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
		"renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/build-tools/30.0.2",
		"renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/android-11",
		"preselected": false
	},
	{
		"id": "android-sdk-platforms-29",
		"name": "Android SDK Platforms 29",
		"description": "Android SDK Platforms 29 29",
		"downloadUrl": "https://dl.google.com/android/repository/platform-29_r05.zip",
		"category": "Platforms",
		"installedSize": 152500000,
		"downloadSize": 78300000,
		"visible": false,
		"sync": "android-sdk-ndk-tools",
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
		"renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platforms/android-29",
		"renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/android-10",
		"preselected": false
	},
	{
		"id": "android-sdk-platforms-30",
		"name": "Android SDK Platforms 30",
		"description": "Android SDK Platforms 30 30",
		"downloadUrl": "https://dl.google.com/android/repository/platform-30_r03.zip",
		"category": "Platforms",
		"installedSize": 116400000,
		"downloadSize": 52300000,
		"visible": false,
		"sync": "android-sdk-ndk-tools",
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK",
		"renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/platforms/android-30",
		"renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/SDK/android-11",
		"preselected": false
	},
	{
		"id": "android-ndk",
		"name": "Android NDK",
		"description": "Android NDK r21d",
		"downloadUrl": "https://dl.google.com/android/repository/android-ndk-r21d-windows-x86_64.zip",
		"category": "Platforms",
		"installedSize": 3911680000,
		"downloadSize": 1024000000,
		"visible": false,
		"sync": "android-sdk-ndk-tools",
		"selected": false,
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/NDK",
		"renameTo": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/NDK",
		"renameFrom": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/android-ndk-r21d",
		"preselected": false
	},
	{
		"id": "android-open-jdk",
		"name": "OpenJDK",
		"description": "Android Open JDK 8u172-b11",
		"downloadUrl": "http://download.unity3d.com/download_unity/open-jdk/open-jdk-win-x64/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip",
		"category": "Platforms",
		"installedSize": 153000000,
		"downloadSize": 70460000,
		"visible": true,
		"selected": false,
		"parent": "android",
		"sync": "Android Build Support",
		"destination": "{UNITY_PATH}/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK",
		"preselected": false
	}
]

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

你可能感兴趣的:(Unity,unity,游戏引擎)