Xamarin Forms (Android) - JNIEnv.cs not found

Séb Carré (Glanum) 21 Reputation points
2021-12-20T12:06:08.76+00:00

Hello ! I have updated Xamarin Forms and I have an issue right now. After build was done, at launch, VS says that JNIEnv.cs was not found. How I can fix this issue ? Thanks !

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Séb Carré (Glanum) 21 Reputation points
    2021-12-29T08:16:18.983+00:00

    Hello ! Sorry for not reponding earlier.

    Yes I have install VS 2022 For Mac (Preview 4). Just like you I had this problem with JNIEnv.cs.

    I've resolve this issue by just go back to the older VS for Mac i had on my machine and search for new updates.

    Xamarin.iOS and Xamarin.Android SDK were updated and I had no more issues with that.

    I can now run VS 2022 For Mac without this issue.

    Hope this is helping you !