In my Android Xamarin project it presented that error, although in the references I do have the Mono.Android.ddl, I exported it again but it did not work.


In my Android Xamarin project it presented that error, although in the references I do have the Mono.Android.ddl, I exported it again but it did not work.


Hello,
Welcome to our Microsoft Q&A platform!
Shared project just shares code for each platform project that references the shared project. Assembly references should be added in each platform projects(android,ios etc), not the shared project. So please remove the Assemblies from the shared project and remove the Android.* namespace from the page class. If you want to use the Android library, please handle the work in the Android platform project and you could use DependencyService to call the method from the shared project.
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
9 people are following this question.