title: Error accessing R resource after moving project
body: <p>I have incomplete project source files. I filled a newly created project with these. But now I can't access the R.string resource.
  By the way; I would like to point out that I have also tried all the solutions listed on the <a href="https://www.geeksforgeeks.org/different-ways-to-fix-cannot-resolve-symbol-r-in-android-studio/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/different-ways-to-fix-cannot-resolve-symbol-r-in-android-studio/</a> website.</p>
  <p>I am getting the following errors.</p>
  <p><a href="https://i.stack.imgur.com/2JoT9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2JoT9.png" alt="Errors" /></a></p>
  <p>error: cannot find symbol</p>
  <p>Toast.makeText(this, R.string.permission_audio, Toast.LENGTH_SHORT).show();</p>
  <p>^
  symbol: variable permission_audio
  location: class string</p>
  <pre><code>protected void checkPermissionResult(final int requestCode, final String permission, final boolean result) {
          // show Toast when there is no permission
          if (Manifest.permission.RECORD_AUDIO.equals(permission)) {
              onUpdateAudioPermission(result);
              if (!result) {
                  Toast.makeText(this, R.string.permission_audio, Toast.LENGTH_SHORT).show();
              }
          }
          if (Manifest.permission.WRITE_EXTERNAL_STORAGE.equals(permission)) {
              onUpdateExternalStoragePermission(result);
              if (!result) {
                  Toast.makeText(this, R.string.permission_ext_storage, Toast.LENGTH_SHORT).show();
              }
          }
          if (Manifest.permission.INTERNET.equals(permission)) {
              onUpdateNetworkPermission(result);
              if (!result) {
                  Toast.makeText(this, R.string.permission_network, Toast.LENGTH_SHORT).show();
              }
          }
      }
  
  protected boolean checkPermissionWriteExternalStorage() {
          if (!PermissionCheck.hasWriteExternalStorage(this)) {
              MessageDialogFragment.showDialog(this, REQUEST_PERMISSION_WRITE_EXTERNAL_STORAGE,
                      R.string.permission_title, R.string.permission_ext_storage_request,
                      new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE});
              return false;
          }
          return true;
      }
  
  protected boolean checkPermissionAudio() {
          if (!PermissionCheck.hasAudio(this)) {
              MessageDialogFragment.showDialog(this, REQUEST_PERMISSION_AUDIO_RECORDING,
                      R.string.permission_title, R.string.permission_audio_recording_request,
                      new String[]{Manifest.permission.RECORD_AUDIO});
              return false;
          }
          return true;
      }
  </code></pre>
  <p>AndroidManifest.xml</p>
  <pre><code>&lt;uses-permission android:name=&quot;android.permission.RECORD_AUDIO&quot;/&gt;
  &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;/&gt;
  &lt;uses-feature android:glEsVersion=&quot;0x00020000&quot; android:required=&quot;true&quot; /&gt;
  </code></pre>
  <p>Strings.xml</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;resources&gt;
  
      &lt;string name=&quot;app_name&quot;&gt;ScreenRecordingSample&lt;/string&gt;
  
  &lt;/resources&gt;
  </code></pre>