Failed to find target with hash string 'android-24'
<p><a href="https://i.stack.imgur.com/lHkkh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lHkkh.png" alt="enter image description here"></a></p>

<p>I am getting this error after changing all the Google libraries to 24.0.0 and changing the <code>compileSdkVersion</code> and <code>targetSdkVersion</code> to 24.
As you can see in the attached images I installed all Android N packages, but there only stands: "Partially installed".
How can I fix this?</p>

<p><a href="https://i.stack.imgur.com/77azO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/77azO.png" alt="enter image description here"></a></p>

<p><a href="https://i.stack.imgur.com/XXa6f.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XXa6f.png" alt="enter image description here"></a></p>