title: ERROR ----> Task :expo-permissions:compileDebugKotlin FAILED
body: <p>The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.</p>
  <p>This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
  Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.</p>
  <p>If the parent project does not need the plugin, add 'apply false' to the plugin line.
  See: <a href="https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl" rel="noreferrer">https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl</a>
  The Kotlin plugin was loaded in the following projects: ':expo-av', ':react-native-agora'</p>
  <blockquote>
  <p>Task :expo-permissions:compileDebugKotlin FAILED</p>
  </blockquote>
  <pre><code>Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
  Use '--warning-mode all' to show the individual deprecation warnings.
  See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
  175 actionable tasks: 2 executed, 173 up-to-date
  e: /Users/development/Projects/myapp/node_modules/react-native-unimodules/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/BackgroundLocationRequester.kt: (12, 50): Unresolved reference: R
  e: /Users/development/Projects/myapp/node_modules/react-native-unimodules/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/BackgroundLocationRequester.kt: (19, 52): Unresolved reference: R
  e: /Users/development/Projects/myapp/node_modules/react-native-unimodules/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/BackgroundLocationRequester.kt: (40, 36): Unresolved reference: R
  </code></pre>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li>What went wrong:
  Execution failed for task ':expo-permissions:compileDebugKotlin'.</li>
  </ul>
  <blockquote>
  <p>Compilation error. See log for more details</p>
  </blockquote>
  <ul>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.</p>
  </li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="noreferrer">https://help.gradle.org</a></p>
  </li>
  </ul>
  <p>BUILD FAILED in 17s</p>
  <pre><code>error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
  Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
  e: /Users/development/Projects/myapp/node_modules/react-native-unimodules/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/BackgroundLocationRequester.kt: (12, 50): Unresolved reference: R
  e: /Users/development/Projects/myapp/node_modules/react-native-unimodules/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/BackgroundLocationRequester.kt: (19, 52): Unresolved reference: R
  e: /Users/development/Projects/myapp/node_modules/react-native-unimodules/node_modules/expo-permissions/android/src/main/java/expo/modules/permissions/requesters/BackgroundLocationRequester.kt: (40, 36): Unresolved reference: R
  </code></pre>
  <p>FAILURE: Build failed with an exception.</p>
  <ul>
  <li>What went wrong:
  Execution failed for task ':expo-permissions:compileDebugKotlin'.</li>
  </ul>
  <blockquote>
  <p>Compilation error. See log for more details</p>
  </blockquote>