EAS build fails, but expo build works for android

Hello,
Our build was working successfully before upgrading to sdk 45 (we were on sdk 44).
since the upgrade, eas build has been failing for android.

If someone from expo is available, i could share the link to the builds.
Also, how do we access the “priority support” mentioned on the pricing page?

Hi @hardfire

No harm posting it now so that it’s there if one of them sees your post without them having to ask for it. The rest of us can’t access your build page anyway.

But if you post the error from the logs here, there’s a chance that someone else can help too.

I think you just need to fill in the form on the Contact page.

1 Like

Heard from support,

For update, the build fails at the following now

> Task :expo-updates:copyReleaseExpoManifest
> Task :expo-updates-interface:compileReleaseLibraryResources
> Task :lottie-react-native:compileReleaseLibraryResources
> Task :lottie-react-native:parseReleaseLocalResources
> Task :lottie-react-native:generateReleaseRFile
> Task :react-native-async-storage_async-storage:compileReleaseLibraryResources
> Task :react-native-async-storage_async-storage:parseReleaseLocalResources
> Task :react-native-async-storage_async-storage:generateReleaseRFile
> Task :react-native-community_datetimepicker:compileReleaseLibraryResources
> Task :react-native-community_datetimepicker:parseReleaseLocalResources
> Task :react-native-community_datetimepicker:generateReleaseRFile
> Task :react-native-community_netinfo:compileReleaseLibraryResources
> Task :react-native-community_netinfo:parseReleaseLocalResources
> Task :react-native-community_netinfo:generateReleaseRFile
> Task :react-native-fast-image:compileReleaseLibraryResources
> Task :react-native-fast-image:parseReleaseLocalResources
> Task :react-native-fast-image:generateReleaseRFile
> Task :react-native-gesture-handler:compileReleaseLibraryResources
> Task :react-native-gesture-handler:parseReleaseLocalResources
> Task :react-native-gesture-handler:generateReleaseRFile
> Task :react-native-masked-view_masked-view:compileReleaseLibraryResources
> Task :react-native-masked-view_masked-view:parseReleaseLocalResources
> Task :react-native-masked-view_masked-view:generateReleaseRFile
> Task :react-native-picker_picker:compileReleaseLibraryResources
> Task :react-native-picker_picker:parseReleaseLocalResources
> Task :react-native-picker_picker:generateReleaseRFile
> Task :react-native-safe-area-context:compileReleaseLibraryResources
> Task :react-native-safe-area-context:parseReleaseLocalResources
> Task :react-native-safe-area-context:generateReleaseRFile
> Task :react-native-screens:compileReleaseLibraryResources
> Task :react-native-screens:parseReleaseLocalResources
> Task :react-native-screens:generateReleaseRFile
> Task :react-native-svg:compileReleaseLibraryResources
> Task :react-native-svg:parseReleaseLocalResources
> Task :react-native-svg:generateReleaseRFile
> Task :react-native-webview:compileReleaseLibraryResources
> Task :react-native-webview:parseReleaseLocalResources
> Task :react-native-webview:generateReleaseRFile
> Task :app:processReleaseResources
> Task :expo:generateReleaseBuildConfig
> Task :expo-analytics-amplitude:generateReleaseBuildConfig
> Task :expo-modules-core:generateReleaseBuildConfig
> Task :expo-modules-core:compileReleaseKotlin
w: /home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/ErrorManagerModule.kt: (12, 5): 'name(String): Unit' is deprecated. The 'name' component was renamed to 'Name'.
w: /home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/defaultmodules/ErrorManagerModule.kt: (13, 5): 'events(vararg String): Unit' is deprecated. The 'events' component was renamed to 'Events'.
w: /home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt: (9, 44): 'RCTEventEmitter' is deprecated. Deprecated in Java
w: /home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt: (94, 7): 'constructor Event<T : Event<(raw) Event<*>>!>(Int)' is deprecated. Deprecated in Java
w: /home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt: (98, 44): 'RCTEventEmitter' is deprecated. Deprecated in Java
w: /home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/src/main/java/expo/modules/kotlin/events/KModuleEventEmitterWrapper.kt: (99, 23): 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java
> Task :expo-modules-core:javaPreCompileRelease
> Task :expo-modules-core:compileReleaseJavaWithJavac
[stderr] 

Is this a managed project or bare?

Assuming it’s managed, you should not have any mentions of “expo-modules-core” or “unimodules” in your package.json.

Also, try running expo doctor to see if it complains about anything.

I have sometimes found that even when expo doctor is happy, there might still be some incompatible packages somewhere in the dependency tree. What has helped me in that situation is:

  • Remove package-lock.json / yarn.lock
  • Remove node_modules
  • Reinstall your dependencies