Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Platforms were skipped due to invalid SDK setup: Android. #3

Open
olayasturias opened this issue Mar 2, 2023 · 8 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@olayasturias
Copy link
Collaborator

When following these instructions:
cd ~/UNav-Sim/Unreal/Environments/Blocks
right-click on Blocks.uproject, select Unreal Engine Generate Project Files

I get the following error:

Discovering modules, targets and source code for project...
Unhandled exception: System.UnauthorizedAccessException: Access to the path '/home/freyja/Underwater_Simulator/UNav-Sim/Unreal/Environments/Blocks/Plugins/UNav-Sim/Content/VehicleAdv/SUV/AutomotiveMaterials/Textures' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
   at System.IO.FileStatus.ThrowOnCacheInitializationError(ReadOnlySpan`1 path)

It seems like it needs sudo permissions for accessing that folder

@olayasturias
Copy link
Collaborator Author

A workaround is to modify the permissions of that folder using Nautilus > right click on folder > Properties > Permissions tab.
Now I get the following error:

Writing project files... 99%
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at UnrealBuildTool.VSCodeProjectFileGenerator.WriteConfiguration(String Name, String ProjectName, IEnumerable`1 SourceFiles, CppStandardVersion CppStandard, FileReference CompilerPath, DirectoryReference SysRootPath, Dictionary`2 ModuleCommandLines, JsonFile OutFile, DirectoryReference OutputDirectory) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 670
   at UnrealBuildTool.VSCodeProjectFileGenerator.WriteCppPropertiesFile(DirectoryReference OutputDirectory, ProjectData Projects) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 656
   at UnrealBuildTool.VSCodeProjectFileGenerator.WritePrimaryProjectFile(ProjectFile UBTProject, PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 281
   at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 2821
   at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1176
   at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 233
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 648


@saraaldhaheri
Copy link

Experienced the same error - I reinstalled UE5 (ue5-main branch) and no longer get this error when generating project files. However, I'm still unable to open simulation due missing modules (Blocks and AirSim).

@abdelhakim96
Copy link
Collaborator

abdelhakim96 commented Apr 27, 2024

@saraaldhaheri can you provide more information about the OS that you are using?

@ziyanghong
Copy link

Experienced the same error - I reinstalled UE5 (ue5-main branch) and no longer get this error when generating project files. However, I'm still unable to open simulation due missing modules (Blocks and AirSim).

I am having the same issue and I am on Ubuntu 20.04.

@T0T4R4
Copy link

T0T4R4 commented Oct 20, 2024

Same thing here with Manjaro (I updated the setup.sh accordingly to my OS)

@hengshanshawn
Copy link

遇到相同的错误 - 我重新安装了 UE5(ue5-main 分支),并且在生成项目文件时不再收到此错误。但是,由于缺少模块(Blocks 和 AirSim),我仍然无法打开模拟。
I have the same issue, and my ue is 5.4 and my ubuntu is 20.04

@taeseongkr
Copy link

I used UE 5.1 on windows, wsl ubuntu 20.04 and I have the problem when I build the Block.sln in Visual Studio. It also caused the same problem that the project is missing Block and AirSim

@sonya1376
Copy link

I solved this problem in the following way for your reference.
Firstly, UNav-Sim/Unreal/Environments/Blocks/Source/Blocks.Target.cs add DefaultBuildSettings=BuildSettingsVersion.V2
Then,open Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp,replace Arguments+=”-Progress-NoEngineChanges-NoHotReloadFromIDE with Arguments += " -Progress";
Lastly,recompile unreal engine and UNav-Sim from ./setup.sh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants