Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Error CS0234 The type or namespace name 'Content' does not exist in the namespace #683

Closed
VarakornK opened this issue Feb 17, 2020 · 7 comments

Comments

@VarakornK
Copy link

I buy Grial UI version Pro.

I've downloaded full package of Grail Solution and I've got a problem while compiling on Visual Studio for MAC OS, it said "Error CS0234: The type or namespace name 'Content' does not exist in the namespace 'VLPos.Android' (are you missing an assembly reference?) (CS0234) (VLPos.Android)". I've attached a screenhot to you.

Screen Shot 2563-02-17 at 10 25 22

Please help!

@jpbrocca
Copy link
Contributor

Hi @VarakornK,
Some questions here to try to find the cause of your issue:

  • Are you using Visual Studio 2017 or 2019? Which version?
  • which android sdk version do you have?

Regards
JP

@VarakornK
Copy link
Author

VarakornK commented Feb 17, 2020

  • Are you using Visual Studio 2017 or 2019? Which version?

Visual Studio 2019

  • which android sdk version do you have?

Android 9.0 (Pie)

Thanks!

@jpbrocca
Copy link
Contributor

Hi @VarakornK,

Can you please try the following:

  • clean solution
  • close Visual Studio
  • delete bin and obj folders in all your projects folders
  • open again your solution in Visual Studio and rebuild.
  • try running again in Android

Regards,
JP

@VarakornK
Copy link
Author

Hi Sir,

I try already but have error this.

Screen Shot 2563-02-17 at 22 18 41

Thanks!

@VarakornK
Copy link
Author

VarakornK commented Feb 18, 2020

I try to compile on a different MAC Machine, same message is still coming up. Could you please check that error from my project that I attached link right here???

Screen Shot 2563-02-18 at 10 30 35

Software
Visual Studio for Mac COMMUNITY Version 8.4.5 (build 19)
Xcode Version 11.3.1 (11C504)
UXDiver.Grial (3.0.60)
Xamarin Forms 4.4.0.991640
Android Version 9.0
iOS Version 11.0

Many thanks.

@dirivero
Copy link
Contributor

Hi,

The problem is that the Android part of the VLPos.Android namespace is clashing with the Android.Content.Res.Configuration full name.

You can fix the issue by including this using on top:

using Android.Content.Res;

And removing the fully qualification of Configuration in the method:

public override void OnConfigurationChanged(Configuration newConfig)

Or by using VLPos.Droid as your Android namespace to avoid further conflicts.

Hope this helps.

@VarakornK
Copy link
Author

Hi,

I change project android to VLPos.Droid.
I can compile android project with out error.

Many Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants