我已经更新的Android工作室昨晚0.9.0,buildToolsVersion到21.1.0和摇篮到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
错误:未能执行任务:应用程序:processDebugManifest。 清单合并失败:使用的SDK元素不能有一个工具:节点属性。
Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : uses-sdk element cannot have a "tools:node" attribute
我已经花了昨晚寻找一个解决方案,我发现这一点:
<使用-SDK工具:节点=替换/>
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)使用的SDK元素不能有一个工具:节点属性 错误:(10,5)执行失败的任务:应用程序:processDebugManifest。 清单合并失败:使用的SDK元素不能有一个工具:节点属性。
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
另一种解决方案我读过,不使用支持-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.
添加此行来使用的SDK的标签是这样的: -
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" .....
.../>