eas build errors

Before posting your question, make sure you’ve read the documentation for both EAS Build & Submit.

If your Android or iOS build is failing- make sure you do your own research on the error message first before posting (this will give you a better understanding, and you might even find that someone else has already solved the issue!) It is not up to the Expo team to debug your project or build.

In your post, please share:

  • Whether you are bare or managed workflow
  • Your eas-cli >= 2.6.0
  • What you have tried so far

HI
while building i am getting this error

Blockquote

info Writing sourcemap output to:, /home/expo/workingdir/build/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map

679

info Done writing bundle output

680

info Done writing sourcemap output

681

info Copying 12 asset files

682

info Done copying assets

683

> Task :expo-constants:compileReleaseKotlin

684

w: /home/expo/workingdir/build/node_modules/expo-constants/android/src/main/java/expo/modules/constants/ConstantsService.kt: (130, 17): 'versionCode: Int' is deprecated. Deprecated in Java

685

> Task :expo-constants:compileReleaseJavaWithJavac

686

> Task :expo-constants:bundleLibCompileToJarRelease

687

> Task :app:bundleReleaseJsAndAssets_SentryUpload_com.ypo.myappnoticetest@1.0.32+1_1 FAILED

688

Processing react-native sourcemaps for Sentry upload.

689

> Analyzing 2 sources

690

> Rewriting sources

691

> Adding source map references

692

> Task :expo-eas-client:compileReleaseKotlin

693[stderr]

error: API request failed

694[stderr]

  caused by: sentry reported an error: Invalid token (http status: 401)

695[stderr]

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.

696[stderr]

Please attach the full debug log to all bug reports.

697

> Task :expo-device:compileReleaseKotlin

698

w: /home/expo/workingdir/build/node_modules/expo-device/android/src/main/java/expo/modules/device/DeviceModule.kt: (104, 20): Variable 'isRooted' initializer is redundant

699

w: /home/expo/workingdir/build/node_modules/expo-device/android/src/main/java/expo/modules/device/DeviceModule.kt: (135, 25): 'INSTALL_NON_MARKET_APPS: String' is deprecated. Deprecated in Java

700

w: /home/expo/workingdir/build/node_modules/expo-device/android/src/main/java/expo/modules/device/DeviceModule.kt: (179, 21): 'getter for defaultDisplay: Display!' is deprecated. Deprecated in Java

701

w: /home/expo/workingdir/build/node_modules/expo-device/android/src/main/java/expo/modules/device/DeviceModule.kt: (179, 36): 'getMetrics(DisplayMetrics!): Unit' is deprecated. Deprecated in Java

702

> Task :react-native-gesture-handler:compileReleaseKotlin

703

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt: (755, 11): Name shadowed: size

704

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt: (9, 51): Unreachable code

705

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt: (10, 80): Unreachable code

706

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt: (77, 18): 'onChildStartedNativeGesture(MotionEvent!): Unit' is deprecated. Deprecated in Java

707

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt: (82, 42): Parameter 'disallowIntercept' is never used

708

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt: (114, 28): Parameter 'viewTag' is never used

709

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt: (7, 44): 'RCTEventEmitter' is deprecated. Deprecated in Java

710

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt: (14, 11): 'init(Int): Unit' is deprecated. Deprecated in Java

711

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt: (30, 42): 'RCTEventEmitter' is deprecated. Deprecated in Java

712

w: /home/expo/workingdir/build/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt: (31, 21): 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java

713

w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

714[stderr]

FAILURE: Build completed with 2 failures.

715[stderr]

1: Task failed with an exception.

716[stderr]

-----------

717[stderr]

* What went wrong:

718[stderr]

Execution failed for task ':app:bundleReleaseJsAndAssets_SentryUpload_com.ypo.myappnoticetest@1.0.32+1_1'.

719[stderr]

> Process 'command '/home/expo/workingdir/build/node_modules/@sentry/cli/bin/sentry-cli'' finished with non-zero exit value 1

720[stderr]

* Try:

721[stderr]

> Run with --stacktrace option to get the stack trace.

722[stderr]

> Run with --info or --debug option to get more log output.

723[stderr]

> Run with --scan to get full insights.

724[stderr]

==============================================================================

725[stderr]

2: Task failed with an exception.

726[stderr]

-----------

727[stderr]

* What went wrong:

728[stderr]

java.lang.StackOverflowError (no error message)

729[stderr]

* Try:

730[stderr]

> Run with --stacktrace option to get the stack trace.

731[stderr]

> Run with --info or --debug option to get more log output.

732[stderr]

> Run with --scan to get full insights.

733[stderr]

==============================================================================

734[stderr]

* Get more help at https://help.gradle.org

735[stderr]

BUILD FAILED in 5m 4s

736

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

737

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

738

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

739

Execution optimizations have been disabled for 3 invalid unit(s) of work during this build to ensure correctness.

740

Please consult deprecation warnings for more details.

741

307 actionable tasks: 307 executed

742

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Hi @satyam.ypo

It seems you have a bad Sentry auth token. Maybe one of the following links will help:

“sentry reported an error: Invalid token (http status: 401)” - Google Search

Also, double check that you have the right auth token in your app.json.

Hi thanks for your response. But same token working in local expo go.

And yet, according to your logs, Sentry is saying there’s a problem with your auth token.

Are you hard coding it in app.json? Or using environment variables? Or what?

Hello wodin,

I wanted to let you know that I’m on Android now. I hope that won’t be a problem. Let me know if there are any issues.

Thanks,

Yes, I saw that this was about Android. That should not be a problem