码迷,mamicode.com
首页 > 移动开发 > 详细

gradle android L problem

时间:2014-07-26 00:51:46      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:android   http   os   strong   io   for   re   c   

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

gradle android L problem,布布扣,bubuko.com

gradle android L problem

标签:android   http   os   strong   io   for   re   c   

原文地址:http://www.cnblogs.com/sfce/p/3868630.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!