question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] The binary version of its metadata is 1.6.0, expected version is 1.4.1.

See original GitHub issue

Summary

The versioning on Android is incredibly frustrating. No combination of versions seems to be working. I have a working app on iOS. When I try expo run:android, it’s been giving me cryptic errors until this one that I can’t seem to get around. It builds to 80% EXECUTING which is a whopping 8% higher than I could get it to yesterday. I removed my android folder so it could build from scratch. I’ve had to change the following so far: android/build.gradle

  compileSdkVersion = 31
  targetSdkVersion = 31

android/app/build.gradle > android > defaultConfig

missingDimensionStrategy ('store', 'play')

Now we’re back to the Kotlin version. I’ve tried the following kotlinVersion values:

none (default)
1.4.21
1.7.1
1.4.1

I’ve also run expo doctor and been through all StackOverflow/Github issues around this topic. The complexity around Android builds is insane as an Expo/RN developer. Are there any general troubleshooting docs for this? I’m truly lost here.

Here’s the complete error:

> Task :expo:compileDebugKotlin FAILED
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /Users/gsquare567/.gradle/caches/transforms-3/8c662f4d833a0a28b217c29cd0bc30fa/transformed/jetified-kotlin-stdlib-jdk8-1.5.10.jar (version 1.5)
    /Users/gsquare567/.gradle/caches/transforms-3/2dda7229137f9315b700d694215df3b1/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar (version 1.6)
    /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar (version 1.6)
    /Users/gsquare567/.gradle/caches/transforms-3/d6fde65cea0702b678e59c113b631c89/transformed/jetified-kotlin-stdlib-common-1.6.10.jar (version 1.6)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/gsquare567/.gradle/caches/transforms-3/2dda7229137f9315b700d694215df3b1/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
e: /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
e: /Users/gsquare567/.gradle/caches/transforms-3/d6fde65cea0702b678e59c113b631c89/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
e: /Users/gsquare567/Sites/blogcast/node_modules/expo-file-system/android/build/intermediates/compile_library_classes_jar/debug/classes.jar!/META-INF/expo-file-system_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (14, 8): Unresolved reference: flatMap
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (14, 18): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (15, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (15, 27): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (18, 4): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/JvmStatic.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (20, 37): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (20, 50): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (23, 4): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/jvm/JvmStatic.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (25, 37): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ApplicationLifecycleDispatcher.kt: (25, 50): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ExpoModulesPackage.kt: (20, 6): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Suppress.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ExpoModulesPackage.kt: (21, 39): Unresolved reference: lazy
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ExpoModulesPackage.kt: (26, 12): Unresolved reference: sortedByDescending
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ExpoModulesPackage.kt: (26, 54): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ExpoModulesPackage.kt: (29, 9): Unresolved reference: emptyList
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (24, 6): Unresolved reference: flatMap
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (24, 16): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (26, 6): Unresolved reference: flatMap
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (26, 16): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (37, 21): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (54, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (54, 66): Unresolved reference: java
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (69, 55): Unresolved reference: java
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (70, 20): Variable expected
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (73, 7): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (82, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (82, 26): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (92, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (99, 12): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (103, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (128, 14): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (135, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (139, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (143, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (158, 4): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Suppress.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (162, 45): Unresolved reference: java
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (163, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (164, 16): Unresolved reference: methodMap[name]
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (164, 16): No set method providing array access
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (169, 4): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Suppress.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (177, 45): Unresolved reference: java
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (178, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (179, 16): Unresolved reference: methodMap[name]
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt: (179, 16): No set method providing array access
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (22, 6): Unresolved reference: flatMap
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (22, 16): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (32, 21): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (50, 4): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Suppress.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (66, 21): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (72, 21): Unresolved reference: it
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (98, 14): Unresolved reference: emptyList
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (102, 4): Class 'kotlin.Suppress' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Suppress.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (106, 39): Unresolved reference: java
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (107, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
The class is loaded from /Users/gsquare567/.gradle/caches/transforms-3/9a8c596b7e1788d5bad7c80991eefff1/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (108, 16): Unresolved reference: methodMap[name]
e: /Users/gsquare567/Sites/blogcast/node_modules/expo/android/src/main/java/expo/modules/ReactNativeHostWrapper.kt: (108, 16): No set method providing array access
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo: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

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

BUILD FAILED in 4m 52s
587 actionable tasks: 392 executed, 195 up-to-date

What platform(s) does this occur on?

Android

SDK Version

44

Environment

npx: installed 2 in 1.542s

expo-env-info 1.0.5 environment info: System: OS: macOS 12.4 Shell: 3.0.2 - /usr/local/bin/fish Binaries: Node: 14.19.1 - /usr/local/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 6.14.16 - /usr/local/bin/npm Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 30, 31, 32, 33 Build Tools: 29.0.2, 30.0.2, 33.0.0 System Images: android-33 | Google APIs Intel x86 Atom_64 IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild npmPackages: expo: ^44.0.0 => 44.0.4 react-native: 0.64.3 => 0.64.3 Expo Workflow: bare

Minimal reproducible example

Create a bare project with the following dependencies:

  "dependencies": {
    "@apollo/client": "^3.6.9",
    "@blogcast/shared": "^1.0.0",
    "@fortawesome/fontawesome-svg-core": "^1.2.36",
    "@fortawesome/free-brands-svg-icons": "^5.15.4",
    "@fortawesome/free-solid-svg-icons": "^5.15.4",
    "@fortawesome/pro-duotone-svg-icons": "^5.15.4",
    "@fortawesome/pro-light-svg-icons": "^5.15.4",
    "@fortawesome/react-native-fontawesome": "^0.2.7",
    "@react-native-async-storage/async-storage": "~1.15.0",
    "@react-navigation/bottom-tabs": "^6.3.3",
    "@react-navigation/native": "^6.0.12",
    "@react-navigation/native-stack": "^6.8.0",
    "@react-navigation/stack": "^6.2.3",
    "@segment/analytics-react-native": "^2.1.11",
    "@segment/analytics-react-native-plugin-amplitude-session": "^0.2.1",
    "@segment/sovran-react-native": "^0.2.6",
    "@sentry/react-native": "^3.2.10",
    "apollo-link-logger": "^2.0.0",
    "apollo-link-scalars": "^3.0.0",
    "babel-plugin-inline-dotenv": "^1.6.0",
    "dayjs": "^1.10.7",
    "dotenv": "^10.0.0",
    "expo": "^44.0.0",
    "expo-app-loading": "~1.3.0",
    "expo-apple-authentication": "~4.1.0",
    "expo-application": "~4.0.1",
    "expo-auth-session": "~3.5.0",
    "expo-constants": "~13.0.1",
    "expo-dev-client": "0.8.6",
    "expo-device": "~4.1.0",
    "expo-in-app-purchases": "~12.1.0",
    "expo-linking": "~3.0.0",
    "expo-notifications": "~0.14.0",
    "expo-random": "~12.1.1",
    "expo-splash-screen": "~0.14.1",
    "expo-status-bar": "~1.2.0",
    "expo-updates": "~0.11.7",
    "firebase": "^9.12.1",
    "graphql": "^16.0.1",
    "graphql-scalars": "^1.13.6",
    "native-base": "^3.4.16",
    "patch-package": "^6.4.7",
    "pluralize": "^8.0.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-email-link": "^1.14.1",
    "react-native-gesture-handler": "~2.1.0",
    "react-native-iap": "^8.1.3",
    "react-native-reanimated": "2.3.1",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.10.1",
    "react-native-svg": "12.1.1",
    "react-native-swiper-flatlist": "^3.0.17",
    "react-native-track-player": "^3.1.0",
    "recoil": "^0.5.2",
    "regexp.escape": "^1.1.0",
    "sentry-expo": "^4.0.0",
    "use-count-up": "^3.0.1",
    "react-native-web": "0.17.1"
  }

expo run:android

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
xiaosaocommented, Nov 6, 2022

I also faced the problem. And i find this answer,. Finally, i solved it. You can try it.

1reaction
Ashoatcommented, Nov 5, 2022

We also randomly started seeing these issues recently!! Something curious is going on. We have an Expo bare workflow, currently on Expo 43 but I’m working on upgrading.

Strangely, without a kotlinVersion :expo-modules-core:compileDebugKotlin fails, but with kotlinVersion set anywhere from 1.6.0 or above :expo:compileDebugKotlin fails!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Module was compiled with an incompatible version of Kotlin ...
"Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16" ; 1....
Read more >
Module was compiled with an incompatible version of Kotlin ...
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15. React :...
Read more >
Solutions to the problem "the binary version of its metadata is ...
It's possible that this error was thrown by Android Studio since ... The binary version of its metadata is 1.7.1, expected version is...
Read more >
the binary version of its metadata is 1.6.0, expected ... - You.com
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
Read more >
The binary version of its metadata is 1.7.1, expected version is ...
The binary version of its metadata is 1.7.1, expected version is 1.5.1. Relates to 1. Relates to 1 issue (1 unresolved).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found