uses-sdk 元素不能有“工具:节点";属性 [英] uses-sdk element cannot have a "tools:node" attribute

查看:16
本文介绍了uses-sdk 元素不能有“工具:节点";属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨晚我已将 Android Studio 更新为 0.9.0,将 buildToolsVersion 更新为 21.1.0 并将 gradle 更新为 0.14.0,之后我收到此错误

I've updated Android Studio last night to 0.9.0, buildToolsVersion to 21.1.0 and gradle to 0.14.0, after that I'm receiving this error

错误:任务:app:processDebugManifest"的执行失败.清单合并失败:uses-sdk 元素不能有tools:node"属性

Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : uses-sdk element cannot have a "tools:node" attribute

昨晚我一直在寻找解决方案,我发现了这个:

I've spent the last night looking for a solution, I found this:
<uses-sdk tools:node="replace" />

但不幸的是,又增加了一个错误!

But unfortunately, added one more error!

错误:(10, 5) uses-sdk 元素不能有tools:node"属性
错误:(10, 5) 任务:app:processDebugManifest"执行失败.
清单合并失败:uses-sdk 元素不能有tools:node"属性

Error:(10, 5) uses-sdk element cannot have a "tools:node" attribute
Error:(10, 5) Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk element cannot have a "tools:node" attribute

我读过的另一个解决方案是不使用 support-v4:21,对我来说我不使用它,因为我使用的是 v13.

Another solution I've read, to not use support-v4:21, for me I don't use it, since I'm using v13.

推荐答案

解决方案:--

将这一行添加到 uses-sdk 标签中,如下所示:-

Solution:--

Add this line to uses-sdk tag like this:-

<uses-sdk
    tools:node="merge"   <----This line do the magic
    android:minSdkVersion="14"
    android:targetSdkVersion="19" />

并在清单中添加工具名称空间:-

And add the tools name space in manifest :-

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" .....
.../>

这篇关于uses-sdk 元素不能有“工具:节点";属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆