trying to add binding library

I am trying to add binding library "JiaoZiVideoPlayer" to my xamarin.android project but I am getting the following error
_invokedynamic requires --min-sdk-version >= 26 _what this means and how I can solve this issue

bellow the screen shot of my project minsdk

image

Answers

  • YorkGoYorkGo CNMember, Xamarin Team Xamurai

    This is a know issue #1738: it's because you use java 8 feature (lambda or others) and the project is not desugared to java 7 .

  • YorkGoYorkGo CNMember, Xamarin Team Xamurai

    The issue is related to desugar that you can read up here. This is still actively being worked on as it was recently merged. See the following pull requests for desugar support:

    • github.com/xamarin/xamarin-android/pull/991
    • github.com/xamarin/xamarin-android/pull/1184

    Solution:

    Add <AndroidEnableDesugar>true</AndroidEnableDesugar> in your .csproj file.

  • AyhamNasserAyhamNasser LBMember ✭✭

    @YorkGo Thanks for your help already try this with no success :(

  • YorkGoYorkGo CNMember, Xamarin Team Xamurai

    @AyhamNasser , I test it on my side and it did work. So would you mind sharing a basic demo that could reproduce this issue(The issue that even add <AndroidEnableDesugar>true</AndroidEnableDesugar> in your .csproj file but still has the error)?

  • YorkGoYorkGo CNMember, Xamarin Team Xamurai

    Is there any updates?

Sign In or Register to comment.