How to get a newly created Xamarin.Forms.Android project running?

AndreSchulzAndreSchulz USMember ✭✭
edited May 10 in Xamarin.Android

Hello everyone.

I've created an empty Xamarin.Forms project, that I would like to deploy to my device, before starting to develop, to ensure that everthing is fine.

Sadly it is not fine, I get the following error. I've allready tried to clean/rebuild the project and to update everything in nuget. From Android Studio deploying apps to my device works fine - so at least the issue isn't that my android sdk is deadly broken.

Does anyone have an idea on how to fix a newly created xamarin.forms project?

Severity Code Description Project File Line Suppression State
Error Failed to create JavaTypeInfo for class: Android.Support.V4.View.Accessibility.AccessibilityManagerCompat/ITouchExplorationStateChangeListenerImplementor due to System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Git\ProjectName\ProjectName Forms\ProjectName Forms.Android\obj\Debug\81\android\src\mono\android\support\v4\view\accessibility\ AccessibilityManagerCompat_TouchExplorationStateChangeListenerImplementor.java.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at Xamarin.Android.Tools.Files.CopyIfStreamChanged(Stream stream, String destination)
at Xamarin.Android.Tasks.Generator.CreateJavaSources(TaskLoggingHelper log, IEnumerable`1 javaTypes, String outputPath, String applicationJavaClass, Boolean useSharedRuntime, Boolean generateOnCreateOverrides, Boolean hasExportReference) ProjectName Forms.Android

Sign In or Register to comment.