Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uses-sdk element cannot have a "tools:node" attribute

Tags:

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

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!

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

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

like image 209
Hisham Avatar asked Nov 01 '14 11:11

Hisham


1 Answers

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" ..... .../> 
like image 147
Kailash Dabhi Avatar answered Oct 05 '22 20:10

Kailash Dabhi