zoukankan      html  css  js  c++  java
  • gradle android L problem

    Change uses-sdk to <uses-sdk tools:node="replace" /> and addxmlns:tools="http://schemas.android.com/tools" in AndroidManifest.xml

     <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="com.demo.android"
        android:versionCode="16"
        android:versionName="3.3.1">
        .
        .
        <uses-sdk tools:node="replace" />
        .
        .
    </manifest>

    Make sure you use gradle 0.11 and above to use Manifest merger.

    Solution 2:

    • Change compile 'com.android.support:support-v4:+' to compile 'com.android.support:support-v4:20.+' in build.gradle. This will prevent gradle from using v4:21.0.0 that requires version L.

    • However, if your any of your external dependencies uses the same. You will probably have to wait for them to update the same.

    Solution 3:

    • Remove/Comment <version>21.0.0-rc1</version> in your file <android-sdk>/extras/android/m2repository/com/android/support-v4/maven-metadata.xml

    • Repeat the same for support-v7

  • 相关阅读:
    Assimp对FBX文件中geometric transformations的处理
    VSM
    WSL安装
    [p1880][NOI1995]石子合并
    【日常】集训总结
    【模板】背包
    【济南集训】20191006解题报告
    [P1516]青蛙的约会
    【模板】ST表
    【济南集训】20191001解题报告
  • 原文地址:https://www.cnblogs.com/sfce/p/3868630.html
Copyright © 2011-2022 走看看