title: Cannot resolve string symbol AndroidManifest.xml
body: <p>I'm creating a weather app using this tutorial:
  <a href="https://blog.teamtreehouse.com/beginners-guide-location-android" rel="nofollow noreferrer">https://blog.teamtreehouse.com/beginners-guide-location-android</a>
  I noticed that for some reason I got the errors: 'Cannot resolve symbol 'R'' and 'Cannot resolve symbol '<code>setUpMapIfNeeded()</code>'. These are all the things I already tried:
  Clean/Build project, File &gt; Invalidate Caches/Restart.., Deleted Build folders, Synced Gradle first, added &quot;include ':app'&quot; in settings.gradle, even imported .R and I get the same error for the import...
  Eventually, I found out that there's probably something wrong with one of my .xml files.</p>
  <p>It turns out that in my <code>AndroidManifest.xml</code> file under the meta-data section the <code>android:value=&quot;@string/google_maps_key&quot;/&gt;</code> is colored red and it also says 'Cannot resolve symbol'.</p>
  <p>Here is the full Manifest code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
     package=&quot;weatherapp.com.drek&quot;&gt;
  
  &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot;/&gt;
  
  &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/AppTheme&quot;&gt;
  
      &lt;meta-data
              android:name=&quot;com.google.android.geo.API_KEY&quot;
              android:value=&quot;@string/google_maps_key&quot;/&gt;
  
      &lt;activity
              android:name=&quot;.MapsActivity&quot;
              android:label=&quot;@string/title_activity_maps&quot;&gt;
          &lt;intent-filter&gt;
              &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;
  
              &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p>The google_maps_key is just an API key for accessing weather data. The actual key is in google_maps_api.xml and this is all the code there is inside it:</p>
  <pre><code>&lt;resources&gt;
  &lt;string name=&quot;google_maps_key&quot; translatable=&quot;false&quot; templateMergeStrategy=&quot;preserve&quot;&gt;YOUR_KEY_HERE&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  <p>I still don't understand why the google maps key string cannot be resolved just like for the other 2 symbols. I don't know what else to do, I've tried everything. Below is also a screenshot of the main class:</p>
  <p><img src="https://i.stack.imgur.com/LLPvd.png" alt="enter image description here" /></p>