Essentials: Xamarin.Essentials.Platform does not contain Init() method

Created on 18 May 2018  路  1Comment  路  Source: xamarin/Essentials

Bug report best practices: Submitting Issues

Description

Steps to Reproduce

  1. Added pre-release version 0.6.0 to Android, IOS, PCL project through NuGet package manager.
  2. Navigating to MainActivity.cs in the Android project, and selecting the OnCreate method.
  3. Typing Xamarin.Essentials.Platform. (and the intellisense completes only with BegininvokeOnMainThread and Equals, referenceEquals methods)

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue:
  • Last known good version: -
  • IDE: Visual Studio 15 Enterprise
  • Platform Target Frameworks:

    • iOS: -

    • Android: 6.0

    • UWP: none

Screenshots


kepernyofelvetel 12

kepernyofelvetel 13

Droid package list:
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" /> <package id="Xamarin.Essentials" version="0.6.0-preview" targetFramework="monoandroid60" /> <package id="Xamarin.Forms" version="2.3.0.107" targetFramework="monoandroid60" /> <package id="Xamarin.Forms.Maps" version="2.3.0.49" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Base" version="29.0.0.1" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Basement" version="29.0.0.1" targetFramework="monoandroid60" /> <package id="Xamarin.GooglePlayServices.Maps" version="29.0.0.1" targetFramework="monoandroid60" />

question

Most helpful comment

Ensure that the correct dll is getting included, it should be in the MonoAndroid71 folder.

You are building against MonoAndroid60, which is not compatible. You must be using support libraries 25.4.0.2+

You must 1:

  • Set your Android Compile to Android 7.1+
  • Update your Support Libraries to 25.4.0.2+
  • Uninstall Essentials and re-add it as you are getting the netstandard version, not the android version.

>All comments

Ensure that the correct dll is getting included, it should be in the MonoAndroid71 folder.

You are building against MonoAndroid60, which is not compatible. You must be using support libraries 25.4.0.2+

You must 1:

  • Set your Android Compile to Android 7.1+
  • Update your Support Libraries to 25.4.0.2+
  • Uninstall Essentials and re-add it as you are getting the netstandard version, not the android version.
Was this page helpful?
0 / 5 - 0 ratings