> Task :expo-error-recovery:compileDebugKotlin FAILED

➜ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using “–no-jetifier” flag.
Jetifier found 2229 file(s) to forward-jetify. Using 8 workers…
info JS server already running.
info Installing the app…

Configure project :app

Installing unimodules:
unimodules-core@7.1.2 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/@unimodules/core
unimodules-react-native-adapter@6.3.9 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/@unimodules/react-native-adapter
expo-application@4.0.1 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo/node_modules/expo-application
expo-av@8.7.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-av
expo-camera@10.0.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-camera
expo-constants@12.1.3 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo/node_modules/expo-constants
expo-error-recovery@3.0.4 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery
expo-file-system@13.0.3 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo/node_modules/expo-file-system
expo-font@10.0.4 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-font
expo-image-loader@2.2.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-image-loader
expo-keep-awake@10.0.1 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-keep-awake
expo-modules-core@0.4.9 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo/node_modules/expo-modules-core
expo-notifications@0.9.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-notifications
unimodules-app-loader@2.2.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-app-loader
unimodules-barcode-scanner-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-barcode-scanner-interface
unimodules-camera-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-camera-interface
unimodules-constants-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-constants-interface
unimodules-face-detector-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-face-detector-interface
unimodules-file-system-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-file-system-interface
unimodules-image-loader-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-image-loader-interface
unimodules-permissions-interface@6.1.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-permissions-interface
unimodules-task-manager-interface@6.2.0 from /Users/abdullahiahmed/Desktop/strive-app/node_modules/unimodules-task-manager-interface

Found some duplicated unimodule packages. Installed the ones with the highest version number.
Make sure following dependencies of your project are resolving to one specific version:
expo-application, expo-constants, expo-file-system, expo-modules-core
WARNING:: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see Add build dependencies  |  Android Developers.

Configure project :expo
Using expo modules
@unimodules/core (7.1.2)
— expo-application (3.0.0)
— expo-av (8.7.0)
— expo-camera (10.0.0)
— expo-constants (10.0.0)
— expo-error-recovery (3.0.4)
— expo-file-system (11.1.3)
— expo-font (10.0.4)
— expo-image-loader (2.2.0)
— expo-keep-awake (10.0.1)
— expo-modules-core (0.2.0)
— expo-notifications (0.9.0)
— unimodules-app-loader (2.2.0)

Configure project :react-native-audio
WARNING:: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see Add build dependencies  |  Android Developers.

Configure project :react-native-firebase_analytics
:react-native-firebase_analytics package.json found at /Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_app package.json found at /Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_analytics:firebase.bom using default value: 26.5.0
:react-native-firebase_analytics package.json found at /Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-firebase/analytics/package.json
:react-native-firebase_analytics:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_analytics:android.compileSdk using custom value: 30
:react-native-firebase_analytics:android.targetSdk using custom value: 30
:react-native-firebase_analytics:android.minSdk using custom value: 21
:react-native-firebase_analytics:reactNativeAndroidDir /Users/abdullahiahmed/Desktop/strive-app/node_modules/react-native/android

Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:firebase.bom using default value: 26.5.0
:react-native-firebase_app:play.play-services-auth using default value: 19.0.0
:react-native-firebase_app package.json found at /Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 10.8.1 (10,8,1 - 10008001)
:react-native-firebase_app:android.compileSdk using custom value: 30
:react-native-firebase_app:android.targetSdk using custom value: 30
:react-native-firebase_app:android.minSdk using custom value: 21
:react-native-firebase_app:reactNativeAndroidDir /Users/abdullahiahmed/Desktop/strive-app/node_modules/react-native/android

Configure project :react-native-reanimated

Configure project :unimodules-react-native-adapter
Using expo modules
@unimodules/core (7.1.2)
— expo (43.0.4)
— expo-application (3.0.0)
— expo-av (8.7.0)
— expo-camera (10.0.0)
— expo-constants (10.0.0)
— expo-error-recovery (3.0.4)
— expo-file-system (11.1.3)
— expo-font (10.0.4)
— expo-image-loader (2.2.0)
— expo-keep-awake (10.0.1)
— expo-modules-core (0.2.0)
— expo-notifications (0.9.0)
— unimodules-app-loader (2.2.0)

Task :expo-av:compileDebugKotlin
w: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-av/android/src/main/java/expo/modules/av/progress/AndroidLooperTimeMachine.kt: (8, 5): ‘constructor Handler()’ is deprecated. Deprecated in Java

Task :expo-av:compileDebugJavaWithJavac

Task :expo-camera:compileDebugJavaWithJavac

Task :expo-error-recovery:compileDebugKotlin

Task :expo-error-recovery:compileDebugKotlin FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

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 Command-Line Interface
676 actionable tasks: 11 executed, 665 up-to-date
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-av/android/src/main/java/expo/modules/av/player/PlayerData.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (6, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (7, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (8, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (13, 52): Unresolved reference: ExportedModule
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (16, 3): ‘getName’ overrides nothing
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (18, 4): Unresolved reference: ExpoMethod
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (19, 50): Unresolved reference: Promise
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (26, 3): ‘getConstants’ overrides nothing
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (5, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (6, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (8, 30): Unresolved reference: BasePackage
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (9, 3): ‘createExportedModules’ overrides nothing
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (9, 62): Unresolved reference: ExportedModule

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:expo-error-recovery:compileDebugKotlin’.

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 1m 44s

error Failed to install the app. Make sure you have the Android development environment set up: Setting up the development environment · React Native.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-av/android/src/main/java/expo/modules/av/player/PlayerData.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (6, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (7, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (8, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (13, 52): Unresolved reference: ExportedModule
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (16, 3): ‘getName’ overrides nothing
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (18, 4): Unresolved reference: ExpoMethod
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (19, 50): Unresolved reference: Promise
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryModule.kt: (26, 3): ‘getConstants’ overrides nothing
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (5, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (6, 21): Unresolved reference: core
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (8, 30): Unresolved reference: BasePackage
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (9, 3): ‘createExportedModules’ overrides nothing
e: /Users/abdullahiahmed/Desktop/strive-app/node_modules/expo-error-recovery/android/src/main/java/expo/modules/errorrecovery/ErrorRecoveryPackage.kt: (9, 62): Unresolved reference: ExportedModule

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:expo-error-recovery:compileDebugKotlin’.

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 1m 44s

at makeError (/Users/abdullahiahmed/Desktop/strive-app/node_modules/execa/index.js:174:9)
at /Users/abdullahiahmed/Desktop/strive-app/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/abdullahiahmed/Desktop/strive-app/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details.
➜ strive-app git:(master) ✗

Hey @dejazmin, can you share your project’s package.json?