首页 > 代码库 > gradle android L problem
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:+‘
tocompile ‘com.android.support:support-v4:20.+‘
inbuild.gradle
. This will prevent gradle from usingv4: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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。