title: Execution failed for task ':expo-permissions:compileDebugKotlin'
body: <p>I am working on a React Native app where I included some expo libraries (bare workflow). I had successfully used <code>expo-location</code>, but now after I installed also <code>expo-camera</code>, the app won't build anymore with <code>npm run android</code>, did not try yet on ios.</p>
  <p>It will crash at <code>:expo-permissions:compileDebugKotlin</code> step.</p>
  <p>I did find the problem on another forum, they were saying to update the <code>buildToolsVersion</code> from <code>build.gradle</code> to <code>29.0.2</code> but it already was on <code>29.0.2</code>. Then I updated <code>react-native-unimodules</code> which is required to use expo libraries and contains expo-permissions. It didn't work. Right now, my current versions of libs are:</p>
  <pre><code>&quot;react-native-unimodules&quot;: &quot;^0.12.0&quot;
  
  &quot;expo-permissions&quot;: &quot;~10.0.0&quot;
  
  &quot;expo-camera&quot;: &quot;^9.1.1&quot;
  </code></pre>
  <p>Do you have any ideas? Did someone met this problem also?</p>
  <p>Thanks</p>
  <p>A more elaborate stacktrace is this:</p>
  <pre><code>Task :expo-permissions:compileDebugKotlin FAILED
  
  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
  153 actionable tasks: 4 executed, 149 up-to-date
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (16, 40): Unresolved reference: PermissionAwareActivity
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (170, 17): Unresolved reference: PermissionAwareActivity
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (236, 19): Unresolved reference: PermissionAwareActivity
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (237, 62): Too many arguments for public final fun requestPermissions(@NonNull p
  0: Array&lt;(out) String!&gt;, p1: Int): Unit defined in android.app.Activity
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (237, 64): Cannot infer a type for this parameter. Please specify it explicitly.
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (237, 77): Cannot infer a type for this parameter. Please specify it explicitly.
  e: app\node_modules\expo-permissions\android\src\main\java\expo\modules\permissions\PermissionsService.kt: (237, 97): Cannot infer a type for this parameter. Please specify it explicitly.
  
  FAILURE: Build failed with an exception.
  
  </code></pre>