Forum Xamarin.Android

{ATTRS} A namespace cannot directly contain members such as fields or methods + another error

I have this android app that im building, but is showing to many errors with the forum's help i already solved some of them, but now when i try to compile it, shows this

Type or namespace definition, or end-of-file expected

and

A namespace cannot directly contain members such as fields or methods

both on them on the same line on a file called minified.cs


Please help me out, thanks in advance

Answers

  • jezhjezh Member, Xamarin Team Xamurai
    edited August 2019

    Could you please post the full logs of these errors?

    But from the information you post ,you can try to uninstall the Nuget: LiveXAML . I had a similar problem before

  • NeidennXNeidennX Member ✭✭

    I already unistalled the Nuget, still the same issue, where can i find the log file ??

  • jezhjezh Member, Xamarin Team Xamurai

    @NeidennX

    Have you check this thread?

  • NeidennXNeidennX Member ✭✭

    Yes, thank you for that, i unistalled the Live Xaml and also deleted the content in that file, is working "perfectly", but is throwing some warnings related to Mono.Android or something like that

  • jezhjezh Member, Xamarin Team Xamurai

    You can try to enable proguard, then delete the bin folders and the obj folders and rebuild it .

  • NeidennXNeidennX Member ✭✭
    edited August 2019

    it's still the same idk what's going on :( , and actually only throw that when i compile the app as soon as the android emulator shows up, the warnings do it too

  • jezhjezh Member, Xamarin Team Xamurai

    Since I couldn't produce this question ,could you please post your demo?

Sign In or Register to comment.