有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

尝试构建安卓Studio(液体滑动)上板屏幕时,任务“:app:processDebugMainManifest”的java执行失败

失败:生成失败,出现异常

  • 出了什么问题: 任务“:app:processDebugMainManifest”的执行失败

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [com.cuberto:liquid-swipe:1.0.0] C:\Users\moham.gradle\caches\transforms-2\files-2.1\1105262a3bbe137895b6e5bbba256874\jetified-liquid-swipe-1.0.0\AndroidManifest.xml as the library might be using APIs not available in 16 Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="com.cuberto.liquid_swipe" to force usage (may lead to runtime failures)

  • 试试看: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。运行--扫描以获得完整的洞察力

  • https://help.gradle.org获得更多帮助

构建在399毫秒内失败 8项可执行任务:1项已执行,7项最新任务a


共 (1) 个答案

  1. # 1 楼答案

    将此代码添加到清单中

    <manifest 
        ... >
    <uses-sdk tools:overrideLibrary="com.cuberto.liquid_swipe"/>
        ...
    </manifest>