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

MvxFormsAppCompatActivity is unavailable in Android project #3460

Closed
5 tasks
dbeylkhanov opened this issue Jul 5, 2019 · 4 comments
Closed
5 tasks

MvxFormsAppCompatActivity is unavailable in Android project #3460

dbeylkhanov opened this issue Jul 5, 2019 · 4 comments
Labels
s/invalid Invalid status

Comments

@dbeylkhanov
Copy link

dbeylkhanov commented Jul 5, 2019

🐛 Bug Report

MvxFormsAppCompatActivity and MvxFormsAndroidSetup classes are not visible after installing required MvvmCross and MvvmCross.Forms nuget packages

Compilation error:

MainActivity.cs(13, 33): [CS0246] The type or namespace name 'MvxFormsAppCompatActivity<,,>' could not be found (are you missing a using directive or an assembly reference?)

MainActivity.cs(13, 59): [CS0246] The type or namespace name 'MvxFormsAndroidSetup<,>' could not be found (are you missing a using directive or an assembly reference?)

image

In addition, I saw in your documentation that you have 2 MvvmCross.Forms.Platforms.* namespaces, but in fact, these namespaces are not available for me, in particular, *.Platforms

what's wrong there in my case?

Expected behavior

Successful build compilation

Reproduction steps

Configuration

Version: 6.3.1

Platform:

  • 📱 iOS
  • [x ] 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • [ x] 🐒 Xamarin.Forms (3.6.0-sr4)
@Cheesebaron
Copy link
Member

@beylkhanovdamir we've already been notified when you create an issue. No need to start mentioning people you want to review your issues. Please stop this behavior.

As for your issue. Please make sure all your MvvmCross packages are the same versions, you seem to be mixing these in your project, looking at the screenshot.

The two types that seem to be missing are actually in the MvvmCross.Forms package. So something is most likely messed up with your NuGet package references.

@dbeylkhanov
Copy link
Author

dbeylkhanov commented Jul 5, 2019

@Cheesebaron please, just tell me, what do I need to do, left only MvvmCross package, right or what? because I tried many times, but always there are some compatibility problems

Please make sure all your MvvmCross packages are the same versions,

yes, I deleted then the *.AppCompat Android package which is at the top of Packages list,
but the problem was not resolved

@dbeylkhanov
Copy link
Author

dbeylkhanov commented Jul 5, 2019

oh, I got it, the problem in Target Android API which should be 9.0 for Android v28.0.0.1, and thus, *.Platforms namespace would be available for me

@dbeylkhanov
Copy link
Author

yeah, problem resolved after upgrading to the 9.0 SDK

image

@Cheesebaron Cheesebaron added the s/invalid Invalid status label Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s/invalid Invalid status
Development

No branches or pull requests

2 participants