Android Studio, R is error, can not resolved
<p>I updated Android Studio to have 2.2 version. 
Unfortunately, I got this error (R is in red color)
I reinstall Android studio but no change.. R still in red color </p>

<p>I did not even write any code</p>

<pre><code>syn gradle

Error:Failed to resolve: org.hamcrest:hamcrest-core:1.1
&lt;a href="openFile:C:/Users/MainUser/Desktop/LastTry/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="open.dependency.in.project.structure"&gt;Show in Project Structure dialog&lt;/a&gt;


Error:Failed to resolve: javax.inject:javax.inject:1
&lt;a href="openFile:C:/Users/MainUser/Desktop/LastTry/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="open.dependency.in.project.structure"&gt;Show in Project Structure dialog&lt;/a&gt;

Error:Failed to resolve: com.google.code.findbugs:jsr305:2.0.1
&lt;a href="openFile:C:/Users/MainUser/Desktop/LastTry/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="open.dependency.in.project.structure"&gt;Show in Project Structure dialog&lt;/a&gt;

Error:Failed to resolve: com.squareup:javawriter:2.1.1
&lt;a href="openFile:C:/Users/MainUser/Desktop/LastTry/app/build.gradle"&gt;Open File&lt;/a&gt;&lt;br&gt;&lt;a href="open.dependency.in.project.structure"&gt;Show in Project Structure dialog&lt;/a&gt;
</code></pre>

<p>please I need help </p>