stride3d / stride3d/stride

[Android] 'Value cannot be null. Parameter name: path1' exception for new created android app

Open
#1,143 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Build bug platform-Android
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:

  1. Start new created Android app

Expected behavior
No Error launching the app

Screenshots
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.