【问题标题】:how do i fix this in android gradle build?我如何在 android gradle build 中解决这个问题?
【发布时间】:2021-09-14 17:27:33
【问题描述】:

执行构建后,它返回构建失败并出现以下错误: (默认接口方法仅支持从Android N开始(--min-api 24):android.view.MenuItem)

【问题讨论】:

    标签: android kotlin gradle build interface


    【解决方案1】:

    您正在使用仅在较新的 android 版本中支持的功能,只需将您的最低 api 版本更改为 24。有关如何执行此操作的建议,请参阅this 链接。

    【讨论】:

      猜你喜欢
      • 2020-02-29
      • 1970-01-01
      • 2020-02-22
      • 2020-10-01
      • 2022-01-12
      • 2018-04-15
      • 2021-07-21
      • 1970-01-01
      • 2022-06-14
      相关资源
      最近更新 更多