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

Vs 2022 1 basic code changes needed #191

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Apr 6, 2022

  1. Configuration menu
    Copy the full SHA
    cd96d7e View commit details
    Browse the repository at this point in the history
  2. Fix for DirectoryNotFoundException

    I tried to compile the 1_basic and ran into below two problems first
    
    XARDF7023: System.IO.DirectoryNotFoundException: Could not find a part of the path 'AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.class'.
       at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
       at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
       at Xamarin.Android.Tasks.RemoveDirFixed.RunTask()
    XARDF7024: System.IO.IOException: The filename, directory name, or volume label syntax is incorrect.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
       at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
       at Xamarin.Android.Tasks.RemoveDirFixed.RunTask()
    
    For that I have added the below code and also added support for long path in windows system using power shell commands(check in internet)
    1. <application android:label="UserDetailsClient.Droid" xmlns="urn:schemas-microsoft-com:asm.v3">
    		<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
    			<ws2:longPathAware>true</ws2:longPathAware>
    		</windowsSettings>
    venkatsunilminchala committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    e31ae3d View commit details
    Browse the repository at this point in the history
  3. In progress to resolve error MSB6006: "java.exe" exited with code 1.

    2>(_ManifestMerger target) -> 
    2>  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1481,3): error MSB6006: "java.exe" exited with code 1.
    venkatsunilminchala committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    7151979 View commit details
    Browse the repository at this point in the history
  4. 1. Target framework to V12

    2. Portable as the warning suggested
    3. target sdk version to 31
    venkatsunilminchala committed Apr 6, 2022
    Configuration menu
    Copy the full SHA
    686096e View commit details
    Browse the repository at this point in the history