Long story short ...
I've been working on a Xamarin Forms app since December 2019, an i've been updating my Xamaring Forms so I can keep it up running with the latest features so far so good until Xamarin 5 came in. This version asks me to change my compileskdversion from 9 or lower to at least 10, so I did.
My app runs smoothly with android 9.0 (Pie) and Xamarin Forms 4.8.0.1821 (latest before 5.0.0.1874 official realese version) The moment I change my SDK and try to run it on my physical phone it throws me this 2 errors:
Gravedad Código Descripción Proyecto Archivo Línea Estado suprimido Error XARDF7023: System.IO.DirectoryNotFoundException: No se puede encontrar una parte de la ruta de acceso 'AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.class'. en System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) en System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) en Xamarin.Android.Tasks.RemoveDirFixed.RunTask()
Gravedad Código Descripción Proyecto Archivo Línea Estado suprimido Error XARDF7024: System.IO.IOException: El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos. en System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath) en System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data) en System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost) en Xamarin.Android.Tasks.RemoveDirFixed.RunTask()
(sorry if some parts of the error comes in spanish).
The thing here is only when I change mi SDK, I've tried to
- Clean and rebuilt
- Install some .NET Compilers in my Xamarin Android Project
- Install the Xamarin.AndroidX dependencies (That works fine with Android 9 (Pie))
- Use another machine to compile
- Change phone
- Remove old dependencies
Aditionally on my "AndroidManifest" I have a few things but it may help:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.app" android:installLocation="preferExternal" android:versionName="1.19.1" android:versionCode="19">
<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29" />
<uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES" />
<uses-permission android:name="android.permission.INSTALL_LOCATION_PROVIDER" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!--<uses-permission android:name="android.permission.READ_CONTACTS" />-->
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<application android:label="app name" android:icon="@drawable/icon" android:usesCleartextTraffic="true">
<provider android:name="android.support.v4.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"></meta-data>
</provider>
</application>
</manifest>
I've tried also to change the SDK To Android 11 (R) and still the same problem
.
I cannot debug the code because it's unable even to deploy it, it fails before it can be debugged
I've to say I don't even know where to look with this error.
Please if anyone can help me solve this.
Thank you very much everyone! :D