eas building expo-contacts error

Error occured when i trying “eas build -p android”
How can i fix issue ?

  Expo CLI 4.5.2 environment info:
    System:
      OS: Windows 10 10.0.19041
    Binaries:
      Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
      npm: 7.14.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      expo: ^41.0.1 => 41.0.1
      react: 16.13.1 => 16.13.1
      react-dom: 16.13.1 => 16.13.1
      react-native: https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz => 0.63.2
      react-native-web: ~0.13.12 => 0.13.18
    Expo Workflow: bare
  
    eas-cli: 0.15.1
> Task :unimodules-permissions-interface:compileReleaseKotlin
> Task :expo-constants:compileReleaseJavaWithJavac
> Task :expo-constants:bundleLibRuntimeToJarRelease
> Task :expo-error-recovery:compileReleaseAidl NO-SOURCE
[stderr] Note: /build/workingdir/build/node_modules/expo-constants/android/src/main/java/expo/modules/constants/ConstantsService.java uses or overrides a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
> Task :expo-error-recovery:generateReleaseBuildConfig
> Task :expo-error-recovery:parseReleaseLocalResources
> Task :expo-error-recovery:generateReleaseRFile
> Task :unimodules-permissions-interface:compileReleaseJavaWithJavac
> Task :unimodules-permissions-interface:bundleLibRuntimeToJarRelease
> Task :unimodules-permissions-interface:bundleLibCompileToJarRelease
> Task :expo-error-recovery:compileReleaseKotlin
> Task :expo-camera:compileReleaseKotlin
> Task :expo-camera:compileReleaseJavaWithJavac
> Task :expo-camera:bundleLibRuntimeToJarRelease
[stderr] Note: Some input files use or override a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
> Task :expo-contacts:compileReleaseJavaWithJavac FAILED
[stderr] /build/workingdir/build/node_modules/expo-contacts/android/src/main/java/expo/modules/contacts/Contact.java:14: error: package org.jetbrains.annotations does not exist
[stderr] import org.jetbrains.annotations.Nullable;
[stderr]                                 ^
[stderr] /build/workingdir/build/node_modules/expo-contacts/android/src/main/java/expo/modules/contacts/Contact.java:192: error: cannot find symbol
[stderr]   @Nullable
[stderr]    ^
[stderr]   symbol:   class Nullable
[stderr]   location: class Contact
[stderr] Note: /build/workingdir/build/node_modules/expo-contacts/android/src/main/java/expo/modules/contacts/ContactsModule.java uses or overrides a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
[stderr] Note: Some input files use unchecked or unsafe operations.
[stderr] Note: Recompile with -Xlint:unchecked for details.
[stderr] 2 errors
> Task :unimodules-react-native-adapter:compileReleaseKotlin
> Task :app:bundleReleaseJsAndAssets
info Writing bundle output to:, /build/workingdir/build/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /build/workingdir/build/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 78 asset files
info Done copying assets
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':expo-contacts:compileReleaseJavaWithJavac'.
[stderr] > Compilation failed; see the compiler error output for details.
[stderr] * Try:
[stderr] 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.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 3m 30s
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.8/userguide/command_line_interface.html#sec:command_line_warnings
484 actionable tasks: 484 executed
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

you can use patch-package to copy the diff from [contacts] Switch to androidx.annotation.Nullable by brentvatne · Pull Request #13133 · expo/expo · GitHub into your node_modules :slight_smile:

1 Like

Thanks :partying_face: