[Android] 'Value cannot be null. Parameter name: path1' exception for new created android app
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release/GitHub (please choose appropriate option)
Official Release
Version: Version number and/or git branch
4.0.1.1420
Platform(s): Does the problem occur on Windows, Android...?
Android
Describe the bug
Getting 'Value cannot be null. Parameter name: path1' when starting a stride android app
To Reproduce
Steps to reproduce the behavior:
- Start new created Android app
Expected behavior
No Error launching the app
Screenshots

Log and callstacks
{System.ArgumentNullException: Value cannot be null.Parameter name: path1 at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/corlib/System.IO/Path.cs:102 at Stride.Core.PlatformFolders.FindCoreAssemblyDirectory (System.String entryDirectory) [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\PlatformFolders.cs:211 at Stride.Core.PlatformFolders.GetApplicationBinaryDirectory () [0x00000] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\PlatformFolders.cs:185 at Stride.Core.PlatformFolders..cctor () [0x0003c] in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core\PlatformFolders.cs:70 }
It works perfectly on UWP.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by starting a newly created Android app, then inspect Stride.Core\PlatformFolders.cs, especially FindCoreAssemblyDirectory and GetApplicationBinaryDirectory from the stack trace. Done means the app launches without the path1 ArgumentNullException, while the existing UWP behavior remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100