I'm trying to create a Android project with MvvmCross.
But I'm trying to target MonoDroid 8.0 which is API-26 Android Oreo 8.0. Cause my test device is this and cannot be upgraded to 8.1.
But when trying to install any Mvvmcross.Droid package I get a
Package MvvmCross.Droid.Support.Design 6.0.1 is not compatible with
monoandroid80 (MonoAndroid,Version=v8.0)
Does that mean if I'm trying to target any older version other than 8.1 I cannot use Mvvmcross 6.0 and have to use older versions of Mvvmcross?
If anybody else if facing a similar problem.
Note : MVVMCross 6 targets minimum MonoDroid 8.1 which is API 27 and you need to install them in order for the app to compile and run on any versions of Android.
So solved this by installing the API 27 sdk and making sure the Target Version is set to API 27 or 8.1 version.
Related
I have to develop an app for a device on gingerbread version (9-10) of Android.
Android studio don't allow to have a minSDK less than version 14.
Is there a solution to develop and build an app for gingerbread version ?
Thanks.
Use Android Studio 2.3.3 (the oldest version). You'll find API-9 the minimum SDK.
I have a C# Xamarin Forms Solution in Visual Studio 2019 that was created from the Xamarin Forms Template.
When the Android version (Target Framework), (found in the 'Application' Tab of the properties Window of the Android project) is set to either
1) Android 8.1 (Oreo)
2) Android 9.0 (Pie)
then my app works great on a phone running Android 9.0
However, as soon as I change it to 'Android 8.0 (Oreo)' then Visual Studio generates errors and warnings. Here is an image of them:
The reason I think I need to change the Android version to 8.0 is so that I can use the app on Android phones with this version. When I try to install the APK file (built targeting either 8.1 or 9.0) on an 8.0 Android device then the app does not work.
The error suggestion to "..increase the $(TargetFrameworkVersion)..." seems odd considering I am trying to target a lower version.
I should point out that I have all the Android SDK's installed for 8.0/8.1/9.0 and all the Android SDK Build Tools.
What am I doing wrong? I am wanting to target Android 8.0 (Oreo).
I am very new to Xamarin.
You only need to change the Minimum Android Version to run on lower API versions. Make Target Android version higher (to version 9) and Minimum Android Version to a version which you would like to support (maybe version 6). Also note that if you have any android support libraries or Xamarin.Forms, those also have a minimum build version. You have to target equal or higher version to build with those. Another thing you have to check is Supported Architectures (Properties-> Android Options -> Advanced -> Supported Architectures). Make sure it checked the architecture of the device that you try to deploy
I'm trying to add some xamarin android related nuget packages into my project.
When I see https://www.nuget.org/packages/Xamarin.Forms/3.1.0.583944
Dependencies
MonoAndroid 7.1
Tizen 4.0
UAP 10.0
Does MonoAndroid 7.1 mean that I can only use Android 7.1 as my compiling version? What if I use Android 8 which is MonoAndroid 8.0 ?
Using MonoAndroid 8.0 should be fine. Consider it more of a minimum required version number. Also, a word to the wise, make sure that all projects in the solution are using the same Xamarin Forms version. It will save you headaches.
I just switched from IntelliJ to Xamarin and, man, am I regretting it. Can anyone help me with this error?
I have a Xamarin.Forms project with .NET standard sharing strategy. I'm receiving the error:
com.xamarin.forms.platform.android does not exist
followed by about 100 errors:
... cannot find symbol.
If I create a new project, the errors still occur.
Android manifest
Minimum version is Android 8.0 (API Level 26 -Oreo)
Target version is the same.
I have also tried each and both with Use Compile using SDK version.
Android SDK
Installed platforms are Android SDK Platform 27 and Android 8.0 - Oreo
Installed Tools are Android SDK 26.1.1 and 27.0.1.
Build tools are all from 26.0.0 to 27.0.3.
Emulator 27.1.7
NuGet - Solution
All packages updated.
Xamarin.Forms version v2.5.0.280555
Android Emulator Manager
Operating System is Android 8.0 - Oreo(API 26)
The only advice I can find is on SO ... and it is to check manifest versions. I'm at a loss now and am unable to work on any project, have lost three days trying to solve it ... and am very close to switching back to IntelliJ. Does anyone have any ideas?
I want to try CardView that is available on Android L. But Android L isn't listed in the SDK Manager.
I use android studio. This is the screenshot.
Some said that I need to upgrade my JDK to 7.0. My JDK is already 7.0.
What should I do? I use Fedora by the way.
Android L was the identifier for the 5.0 preview SDK, which is no longer available. The release version is Android 5.0.1 (API 21).