Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve this error? - 'Resource.Layout' does not contain a definition for axml file

Am new to Xamarin and is currently building a very simple app using the tutorial from Youtube. Am just in a middle of the video when I got this error even tho I carefully followed all instructions. And even the instructor in the video was able to run his app successfully

CLICK THIS FOR IMAGE REFERENCE

Here's the code where I'm getting the error:

var view = inflater.Inflate(Resource.Layout.SignUp, container, false);
like image 768
Aurous Avatar asked Sep 11 '17 05:09

Aurous


2 Answers

For me it is caused by namespace changes. After I corrected the namespace in project properties, then I can build again

like image 79
ang Avatar answered Mar 18 '23 03:03

ang


I just deleted my newly created axml file, rebuild, add it again, and this time, clean and rebuild.

Everytime I added a new axml file, I clean and rebuild. That's all, thank you :).

like image 35
Aurous Avatar answered Mar 18 '23 02:03

Aurous