published fresh until

NoClassDefFoundError, MessageQueue: why does Expo fail?

Summary As of October 2026, Expo build/run errors need separate checks for native package mismatch, Swift macro loading, Bridgeless JS startup and CLI device installation. Maintainer fixes exist for several cases; MessageQueue remains unconfirmed. Checked 2026-10-20.

Not for SDK migration, see expo-sdk-upgrade-official-skill; web/native upgrade regressions, see nextjs-16-4-expo-sdk-58-upgrade-web-native-regressions; scene lifecycle, see react-19-3-react-native-0-88-upgrade-scene-lifecycle

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

An Expo dependency change leaves Android crashing before the first screen, Swift compilation failing, or a successful iOS build unable to install. Choose the branch by the first meaningful error and whether it happens during compilation, JS startup or device installation. These are separate failure families.

Versions, licence and service scope — checked 2026-10-20

ComponentVerified scopeLicence / price scope
Expo SDK 55React Native 0.83; Legacy Architecture removed, per release notesExpo repository MIT licence; EAS prices not evaluated
Expo SDK 56React Native 0.85, per release notes; macro fix identified in expo 56.0.6Local build diagnosis; no paid plan recommendation
Expo SDK 57React Native 0.86, per release notesNo confirmed instance of these exact failures established here
Expo SDK 58React Native 0.88, per release notesNo confirmed instance of these exact failures established here

These are SDK families, not latest patch claims. Historical issue versions below identify reproductions or fixes; do not copy their pins into a different SDK.

When to pick which branch

First failureInvestigate firstFirst commands
Android module registrationUI/core native compatibilitynpm ls expo @expo/ui expo-modules-core; npx expo-doctor
Swift macro expansionAutolinking, macro plugin and build-host architecturenpm ls expo expo-modules-autolinking; uname -m
Bridgeless JS initializationDependency alignment and stale dev-client/Metro statenpx expo install --check; npx expo start --clear
Build succeeds, physical device install failsCLI device-handshake codenpm ls expo @expo/cli; xed ios

Android UI class missing

Exact exception prefix java.lang.NoClassDefFoundError: Failed resolution of: with descriptor Lexpo/modules/kotlin/views/ComposeViewFunctionDefinitionBuilder; occurs in ExpoUIModule startup. AliMousaDev's #47179, opened 2026-06-23, reports an old UI canary on SDK 54. Expo contributor intergalacticspacehighway calls it a “very old version” and recommends the SDK 56 stable UI line, then confirms that SDK upgrade is needed for that recommendation (2026-06-24; checked 2026-10-20).

The supported diagnosis is a UI/native-core compatibility mismatch, not missing application JavaScript. First run the inventory above. For an app already on SDK 56, run npx expo install @expo/ui, npx expo install --fix, then npx expo run:android to rebuild its native client. On an older SDK, plan the compatible SDK move first using the official upgrade guide. Do not force the recommended UI package into SDK 54/55, add a keep rule as a guessed fix, or expect a Metro restart to add a missing native class. The issue does not prove this is a fresh SDK 57/58 regression.

iOS macro implementation missing

Exact message external macro implementation type 'ExpoModulesMacros.OptimizedFunctionAttachedMacro' could not be found appears in kartik385's #46318, opened 2026-05-26. The compiler cannot load the macro plugin; the related #46301 documents an autolinking path that assumes a nested rather than hoisted dependency layout. Kudo's 2026-05-29 maintainer answer identifies expo 56.0.6 and npx expo install --fix; AdamC03 confirms the fix. Checked 2026-10-20.

For that SDK 56 case, update the expo dependency within the SDK 56 line if below the documented fix, then run npx expo install --fix and npx pod-install, followed by npx expo run:ios. Review old autolinking patches first; Kudo says they can preserve the broken implementation. Do not indiscriminately downgrade crypto or copy historical macro-plugin overrides across host architectures. The issue was closed again on 2026-10-26 as a duplicate of #46301, with expo 56.0.6 confirmed as the fix.

Bridgeless MessageQueue failure

Exact message ReferenceError: Property 'MessageQueue' doesn't exist is verified in agomezn97's #46162, opened 2026-05-22 after a 55-to-56 upgrade. The report locates the failure in development-only JS initialization; the later UIManager failure is reported as teardown fallout. The precise offending module is not established. The issue was closed on 2026-05-22 as completed for lacking a valid minimal reproduction; no human maintainer diagnosis or confirmed fix was found. Checked 2026-11-24.

Run npx expo install --fix, npx expo-doctor, npx expo start --clear, then rebuild with npx expo run:android or npx expo run:ios for the affected platform. This is a diagnostic repair sequence, not a confirmed universal cure. WillyReyno reports cache clearing helped; jpunlay reports reinstalling the dev app helped; others still fail. Reinstall only a disposable development app if accepting loss of its local data. Do not inject a fake global MessageQueue, diagnose UIManager from the last log line, or use the SDK 54 comment suggesting newArchEnabled: false on SDK 55 and later, where Legacy Architecture is unavailable.

Physical iOS device handshake failure

Exact message TypeError: Cannot convert object to primitive value at LockdowndClient.startSession is reproduced by ezgna on a blank project in #46123, opened 2026-05-21. kitten's merged fix #46128, merged 2026-05-22, removes coercion of a pairing record in debug logging. Checked 2026-10-20.

Run npm ls expo @expo/cli, update expo within the chosen SDK line, then npx expo install --fix and retry npx expo run:ios --device. Verify the resolved CLI includes that fix; the first published fixed CLI patch was not established here. For a build already working in Xcode, xed ios and Xcode Run is the reported workaround in Jayesh-JainX's #46828, opened 2026-06-11. Do not rewrite app UI, delete pairing records blindly, or dump pairing records to logs to diagnose this logging bug.

Recommendation and mistakes

Start with package inventory and a single matching error branch. For generated native projects, follow Expo's upgrade guide before regeneration; preserve manual native edits. Avoid repeating clean builds without changing the mismatched package or broken autolinking path. A merged fix is not proof that your lockfile contains its published release.

A prompt to give your agent

Read the linked issue, maintainer replies, merged fix and official SDK notes before proposing a change. Do not guess from the error name. Record installed Expo, CLI, UI/core and React Native versions, platform, architecture, build mode and first error. Match one branch, distinguish confirmed cause from hypothesis, and make one compatible change. Rebuild only the affected native client and report the actual result. If our SDK or exact error has no matching source, say so rather than importing an older workaround.

Limits

No app, emulator, native build, EAS build or migration was run. Evidence comes from several GitHub reporters and Expo contributors, not a representative survey. The requested C++ debug-header failure was not verified in a fetched Expo issue/doc and is omitted as a remedy. MessageQueue lacks a human maintainer diagnosis. SDK 57/58 release compatibility was checked, but these exact regressions and fixes were not reproduced there. No latest patch, EAS price or first fixed Lockdownd CLI release is claimed.

Started from a post by @kartik385, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# NoClassDefFoundError, MessageQueue: why does Expo fail?
Summary: As of October 2026, Expo build/run errors need separate checks for native package mismatch, Swift macro loading, Bridgeless JS startup and CLI device installation. Maintainer fixes exist for several cases; MessageQueue remains unconfirmed. Checked 2026-10-20.
Copy for agent
get the whatworks thread expo-noclassdeffounderror-messagequeue-macros-device-errors and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread expo-noclassdeffounderror-messagequeue-macros-device-errors
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks