Xamarin C# Resource.id does not contain a definition for 'Toolbar'










0















CS0117 Resource.id does not contain a definition for 'Toolbar'



 Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
SetSupportActionBar(toolbar);


I honestly Don't understand how to fix this I'm relatively new to C# and especially Xamarin










share|improve this question
























  • Toolbox or toolbar? I am confused ;)

    – nilsK
    Nov 13 '18 at 16:38











  • sorry mistyped that I'm still tired

    – Eli Manke
    Nov 13 '18 at 16:39











  • Me too, no worries :D

    – nilsK
    Nov 13 '18 at 16:41











  • @ topic: I do not know Xamarin, i just googled 'something'. Is this helping?. If you dont trust links, please search for 'xamarin Resource.Id.toolbar'. Good luck!

    – nilsK
    Nov 13 '18 at 16:45











  • protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("205d4461-a6fc-4dd2-aa56-c41d59448548", typeof(Analytics), typeof(Crashes)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar);

    – Eli Manke
    Nov 13 '18 at 16:51
















0















CS0117 Resource.id does not contain a definition for 'Toolbar'



 Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
SetSupportActionBar(toolbar);


I honestly Don't understand how to fix this I'm relatively new to C# and especially Xamarin










share|improve this question
























  • Toolbox or toolbar? I am confused ;)

    – nilsK
    Nov 13 '18 at 16:38











  • sorry mistyped that I'm still tired

    – Eli Manke
    Nov 13 '18 at 16:39











  • Me too, no worries :D

    – nilsK
    Nov 13 '18 at 16:41











  • @ topic: I do not know Xamarin, i just googled 'something'. Is this helping?. If you dont trust links, please search for 'xamarin Resource.Id.toolbar'. Good luck!

    – nilsK
    Nov 13 '18 at 16:45











  • protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("205d4461-a6fc-4dd2-aa56-c41d59448548", typeof(Analytics), typeof(Crashes)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar);

    – Eli Manke
    Nov 13 '18 at 16:51














0












0








0








CS0117 Resource.id does not contain a definition for 'Toolbar'



 Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
SetSupportActionBar(toolbar);


I honestly Don't understand how to fix this I'm relatively new to C# and especially Xamarin










share|improve this question
















CS0117 Resource.id does not contain a definition for 'Toolbar'



 Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
SetSupportActionBar(toolbar);


I honestly Don't understand how to fix this I'm relatively new to C# and especially Xamarin







c# xamarin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 1:15









jgoldberger - MSFT

3,7731831




3,7731831










asked Nov 13 '18 at 16:36









Eli MankeEli Manke

11




11












  • Toolbox or toolbar? I am confused ;)

    – nilsK
    Nov 13 '18 at 16:38











  • sorry mistyped that I'm still tired

    – Eli Manke
    Nov 13 '18 at 16:39











  • Me too, no worries :D

    – nilsK
    Nov 13 '18 at 16:41











  • @ topic: I do not know Xamarin, i just googled 'something'. Is this helping?. If you dont trust links, please search for 'xamarin Resource.Id.toolbar'. Good luck!

    – nilsK
    Nov 13 '18 at 16:45











  • protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("205d4461-a6fc-4dd2-aa56-c41d59448548", typeof(Analytics), typeof(Crashes)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar);

    – Eli Manke
    Nov 13 '18 at 16:51


















  • Toolbox or toolbar? I am confused ;)

    – nilsK
    Nov 13 '18 at 16:38











  • sorry mistyped that I'm still tired

    – Eli Manke
    Nov 13 '18 at 16:39











  • Me too, no worries :D

    – nilsK
    Nov 13 '18 at 16:41











  • @ topic: I do not know Xamarin, i just googled 'something'. Is this helping?. If you dont trust links, please search for 'xamarin Resource.Id.toolbar'. Good luck!

    – nilsK
    Nov 13 '18 at 16:45











  • protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("205d4461-a6fc-4dd2-aa56-c41d59448548", typeof(Analytics), typeof(Crashes)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar);

    – Eli Manke
    Nov 13 '18 at 16:51

















Toolbox or toolbar? I am confused ;)

– nilsK
Nov 13 '18 at 16:38





Toolbox or toolbar? I am confused ;)

– nilsK
Nov 13 '18 at 16:38













sorry mistyped that I'm still tired

– Eli Manke
Nov 13 '18 at 16:39





sorry mistyped that I'm still tired

– Eli Manke
Nov 13 '18 at 16:39













Me too, no worries :D

– nilsK
Nov 13 '18 at 16:41





Me too, no worries :D

– nilsK
Nov 13 '18 at 16:41













@ topic: I do not know Xamarin, i just googled 'something'. Is this helping?. If you dont trust links, please search for 'xamarin Resource.Id.toolbar'. Good luck!

– nilsK
Nov 13 '18 at 16:45





@ topic: I do not know Xamarin, i just googled 'something'. Is this helping?. If you dont trust links, please search for 'xamarin Resource.Id.toolbar'. Good luck!

– nilsK
Nov 13 '18 at 16:45













protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("205d4461-a6fc-4dd2-aa56-c41d59448548", typeof(Analytics), typeof(Crashes)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar);

– Eli Manke
Nov 13 '18 at 16:51






protected override void OnCreate(Bundle savedInstanceState) { AppCenter.Start("205d4461-a6fc-4dd2-aa56-c41d59448548", typeof(Analytics), typeof(Crashes)); base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_main); Android.Support.V7.Widget.Toolbar toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar);

– Eli Manke
Nov 13 '18 at 16:51













1 Answer
1






active

oldest

votes


















-1














Not really answer, but can be something easy like clean/rebuild solution (not generated id in resource file). Or id not looks like "@+id/textView2". maybe just save file.






share|improve this answer

























  • If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

    – jgoldberger - MSFT
    Nov 14 '18 at 1:24












  • @jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

    – AndrewF
    Nov 14 '18 at 8:35











  • @AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

    – nilsK
    Nov 14 '18 at 9:00










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53285594%2fxamarin-c-sharp-resource-id-does-not-contain-a-definition-for-toolbar%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









-1














Not really answer, but can be something easy like clean/rebuild solution (not generated id in resource file). Or id not looks like "@+id/textView2". maybe just save file.






share|improve this answer

























  • If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

    – jgoldberger - MSFT
    Nov 14 '18 at 1:24












  • @jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

    – AndrewF
    Nov 14 '18 at 8:35











  • @AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

    – nilsK
    Nov 14 '18 at 9:00















-1














Not really answer, but can be something easy like clean/rebuild solution (not generated id in resource file). Or id not looks like "@+id/textView2". maybe just save file.






share|improve this answer

























  • If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

    – jgoldberger - MSFT
    Nov 14 '18 at 1:24












  • @jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

    – AndrewF
    Nov 14 '18 at 8:35











  • @AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

    – nilsK
    Nov 14 '18 at 9:00













-1












-1








-1







Not really answer, but can be something easy like clean/rebuild solution (not generated id in resource file). Or id not looks like "@+id/textView2". maybe just save file.






share|improve this answer















Not really answer, but can be something easy like clean/rebuild solution (not generated id in resource file). Or id not looks like "@+id/textView2". maybe just save file.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 14 '18 at 8:55

























answered Nov 13 '18 at 18:07









AndrewFAndrewF

333




333












  • If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

    – jgoldberger - MSFT
    Nov 14 '18 at 1:24












  • @jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

    – AndrewF
    Nov 14 '18 at 8:35











  • @AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

    – nilsK
    Nov 14 '18 at 9:00

















  • If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

    – jgoldberger - MSFT
    Nov 14 '18 at 1:24












  • @jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

    – AndrewF
    Nov 14 '18 at 8:35











  • @AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

    – nilsK
    Nov 14 '18 at 9:00
















If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

– jgoldberger - MSFT
Nov 14 '18 at 1:24






If you feel what you provided is "not really an answer" then please post it as a comment rather than an answer. However a clean and rebuild is something worthwhile to try when resources are showing as undefined when you know they are defined.

– jgoldberger - MSFT
Nov 14 '18 at 1:24














@jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

– AndrewF
Nov 14 '18 at 8:35





@jgoldberger I know, but cannot add comment and looking at question and "relatively new to C# and especially Xamarin" info could be useful right now. looks like rules here more important then information/help

– AndrewF
Nov 14 '18 at 8:35













@AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

– nilsK
Nov 14 '18 at 9:00





@AndrewF Yes, it can be a little problematic to get the first x points here. The good thing about this is, that spamming this site is hard too. Which is even more important, so the board stays clean.

– nilsK
Nov 14 '18 at 9:00



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53285594%2fxamarin-c-sharp-resource-id-does-not-contain-a-definition-for-toolbar%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo