title: ERROR Task :expo:compileDebugKotlin FAILED
body: <p>I created an application using react-native init and was working fine until I tried to start using expo to test it on my telephone.</p>
  <p>Trying to start the app with expo (npx expo start), I have:</p>
  <pre><code>Developer tools running on http://localhost:19002
  Opening developer tools in the browser...
  Some dependencies are incompatible with the installed expo package version:
  - @react-native-community/slider - expected version: 4.1.7 - actual version installed: 4.1.10
  Your project may not work correctly until you install the correct versions of the packages.
  To install the correct versions of these packages, please run: expo install [package-name ...]
  Starting Metro Bundler
  
  Error: Problem validating fields in app.json. Learn more: https://docs.expo.dev/workflow/configuration/
  should NOT have additional property 'displayName'.
  </code></pre>
  <p>and the application in expo becomes fully white.</p>
  <p>Also, if I try with react-native (npx react-native run-android) I have:</p>
  <pre><code>info Running jetifier to migrate libraries to AndroidX. You can disable it using &quot;--no-jetifier&quot; flag.
  Jetifier found 1190 file(s) to forward-jetify. Using 6 workers...
  
  &gt; Configure project :expo
  
  &gt; Task :expo: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.9/userguide/command_line_interface.html#sec:command_line_warnings
  87 actionable tasks: 3 executed, 84 up-to-date
  Error: Autolinking is not set up in `settings.gradle`: expo modules won't be autolinked.
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (11, 18): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (11, 23): Unresolved reference: createApplicationLifecycleListeners
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (12, 10): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (12, 20): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (18, 18): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (18, 23): Unresolved reference: createApplicationLifecycleListeners
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (19, 10): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (19, 20): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (10, 21): Unresolved reference: adapters
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (11, 21): Unresolved reference: core
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (16, 31): Unresolved reference: ModuleRegistryAdapter
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (22, 14): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (22, 19): Unresolved reference: createReactActivityLifecycleListeners
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (53, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (60, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (66, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (73, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (23, 14): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (23, 19): Unresolved reference: createReactNativeHostHandlers
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (30, 14): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (57, 14): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (63, 14): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (85, 31): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':expo:compileDebugKotlin'.
  &gt; Compilation error. See log for more details
  
  * 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.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 10s
  
  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.bat app:installDebug -PreactNativeDevServerPort=8081
  Error: Autolinking is not set up in `settings.gradle`: expo modules won't be autolinked.
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (11, 18): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (11, 23): Unresolved reference: createApplicationLifecycleListeners
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (12, 10): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (12, 20): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (18, 18): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (18, 23): Unresolved reference: createApplicationLifecycleListeners
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (19, 10): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ApplicationLifecycleDispatcher.kt: (19, 20): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (10, 21): Unresolved reference: adapters
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (11, 21): Unresolved reference: core
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ExpoModulesPackage.kt: (16, 31): Unresolved reference: ModuleRegistryAdapter
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (22, 14): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (22, 19): Unresolved reference: createReactActivityLifecycleListeners
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (53, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (60, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (66, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactActivityDelegateWrapper.kt: (73, 37): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (23, 14): Type mismatch: inferred type is Unit but Iterable&lt;TypeVariable(R)&gt; was expected
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (23, 19): Unresolved reference: createReactNativeHostHandlers
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (30, 14): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (57, 14): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (63, 14): Unresolved reference: it
  e: C:\Proyectos\propios\Placit\node_modules\expo\android\src\main\java\expo\modules\ReactNativeHostWrapper.kt: (85, 31): Overload resolution ambiguity:
  public inline fun &lt;T&gt; Iterable&lt;TypeVariable(T)&gt;.forEach(action: (TypeVariable(T)) -&gt; Unit): Unit defined in kotlin.collections
  public inline fun &lt;K, V&gt; Map&lt;out TypeVariable(K), TypeVariable(V)&gt;.forEach(action: (Map.Entry&lt;TypeVariable(K), TypeVariable(V)&gt;) -&gt; Unit): Unit defined in kotlin.collections
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':expo:compileDebugKotlin'.
  &gt; Compilation error. See log for more details
  
  * 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.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 10s
  
      at makeError (C:\Proyectos\propios\Placit\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
      at C:\Proyectos\propios\Placit\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
      at async runOnAllDevices (C:\Proyectos\propios\Placit\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:106:5)
      at async Command.handleAction (C:\Proyectos\propios\Placit\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:192:9)
  </code></pre>
  <p>This is my package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;placit&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;android&quot;: &quot;react-native run-android&quot;,
      &quot;ios&quot;: &quot;react-native run-ios&quot;,
      &quot;start&quot;: &quot;react-native start&quot;,
      &quot;test&quot;: &quot;jest&quot;,
      &quot;lint&quot;: &quot;eslint .&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@fortawesome/fontawesome-svg-core&quot;: &quot;^1.2.36&quot;,
      &quot;@fortawesome/free-solid-svg-icons&quot;: &quot;^5.15.4&quot;,
      &quot;@fortawesome/react-native-fontawesome&quot;: &quot;^0.2.7&quot;,
      &quot;@react-native-async-storage/async-storage&quot;: &quot;^1.15.9&quot;,
      &quot;@react-native-community/geolocation&quot;: &quot;^2.0.2&quot;,
      &quot;@react-native-community/slider&quot;: &quot;^4.1.10&quot;,
      &quot;@react-navigation/native&quot;: &quot;^6.0.6&quot;,
      &quot;@react-navigation/native-stack&quot;: &quot;^6.2.4&quot;,
      &quot;expo&quot;: &quot;^43.0.1&quot;,
      &quot;react&quot;: &quot;17.0.2&quot;,
      &quot;react-native&quot;: &quot;0.66.0&quot;,
      &quot;react-native-elements&quot;: &quot;^3.4.2&quot;,
      &quot;react-native-safe-area-context&quot;: &quot;^3.3.2&quot;,
      &quot;react-native-screens&quot;: &quot;^3.8.0&quot;,
      &quot;react-native-svg&quot;: &quot;^12.1.1&quot;,
      &quot;react-redux&quot;: &quot;^7.2.5&quot;,
      &quot;redux&quot;: &quot;^4.1.1&quot;,
      &quot;redux-devtools-extension&quot;: &quot;^2.13.9&quot;,
      &quot;redux-thunk&quot;: &quot;^2.3.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;7.15.8&quot;,
      &quot;@babel/runtime&quot;: &quot;7.15.4&quot;,
      &quot;@react-native-community/eslint-config&quot;: &quot;2.0.0&quot;,
      &quot;babel-jest&quot;: &quot;26.6.3&quot;,
      &quot;eslint&quot;: &quot;7.14.0&quot;,
      &quot;jest&quot;: &quot;26.6.3&quot;,
      &quot;metro-react-native-babel-preset&quot;: &quot;0.66.2&quot;,
      &quot;react-test-renderer&quot;: &quot;17.0.2&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    }
  }
  </code></pre>