Xamarin build error: defining a default interface method requires --min-sdk-version >= 24

对着背影说爱祢 提交于 2019-12-12 19:22:09

问题


After installing Plugin.MediaManager 0.7.1 in my Xamarin Forms project, the Android build gives me error:

java/lang/Object;I)V: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: com.google.android.exoplayer2.Player$EventListener.onTimelineChanged : (Lcom/google/android/exoplayer2/Timeline;Ljava/lang/Object;I)V  Readings4.Android   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets    2816    

Tools: Microsoft Visual Studio Community 2019 Version 16.1.6


回答1:


No Dex compiler was specified, select D8 Dex compiler in the Android project properties:

In code:

<AndroidDexTool>d8</AndroidDexTool>


来源:https://stackoverflow.com/questions/57027952/xamarin-build-error-defining-a-default-interface-method-requires-min-sdk-vers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!