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.

[Expo SDK 45] - react-native-appearance error when building via EAS

See original GitHub issue

Summary

I’m getting the following error, when building my app for android via EAS, which was upgraded to SDK 45:

Installing Android SDK Platform 31 in /home/expo/Android/Sdk/platforms/android-31 131 “Install Android SDK Platform 31 (revision: 1)” complete. 132 “Install Android SDK Platform 31 (revision: 1)” finished. 133 [stderr] FAILURE: Build completed with 2 failures. 134 [stderr] 1: Task failed with an exception. 135 [stderr] ----------- 136 [stderr] * Where: 137 [stderr] Build file ‘/home/expo/workingdir/build/node_modules/react-native-appearance/android/build.gradle’ line: 23 138 [stderr] * What went wrong: 139 [stderr] A problem occurred evaluating project ‘:react-native-appearance’. 140 [stderr] > Plugin with id ‘maven’ not found. 141 [stderr] * Try: 142 [stderr] > Run with 143 [stderr] --stacktrace option to get the stack trace. 144 [stderr] > Run with --info or --debug option to get more log output. 145 [stderr] > Run with --scan to get full insights. 146 [stderr] ============================================================================== 147 [stderr] 2: Task failed with an exception. 148 [stderr] ----------- 149 [stderr] * What went wrong: 150 [stderr] A problem occurred configuring project ‘:react-native-appearance’. 151 [stderr] > compileSdkVersion is not specified. Please add it to build.gradle 152 [stderr] * Try: 153 [stderr] > Run with --stacktrace option to get the stack trace. 154 [stderr] > Run with --info or --debug option to get more log output. 155 [stderr] > Run with --scan to get full insights. 156 [stderr] ============================================================================== 157 [stderr] * Get more help at https://help.gradle.org 158 [stderr] BUILD FAILED in 4m 1s

I followed the upgrade steps in the Docs and then just run the EAS build. Same error applies, when building locally.

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

SDK Version (managed workflow only)

45

Environment

expo-env-info 1.0.3 environment info: System: OS: macOS 12.3.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.17.5 - /usr/local/opt/nvm/versions/node/v14.17.5/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.16 - /usr/local/opt/nvm/versions/node/v14.17.5/bin/npm Watchman: 2022.03.14.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: API Levels: 26, 27, 29, 30, 31 Build Tools: 27.0.3, 28.0.3, 29.0.2, 29.0.3, 30.0.2 System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-31 | Intel x86 Atom_64 IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild npmPackages: babel-preset-expo: ~9.1.0 => 9.1.0 expo: ^45.0.0-beta.9 => 45.0.0-beta.9 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.1 => 0.68.1 react-native-web: 0.17.1 => 0.17.1 npmGlobalPackages: eas-cli: 0.48.2 expo-cli: 5.4.3 Expo Workflow: managed

Reproducible demo

Since it is a build Issue, I don’t know how to build a reproducible demo.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Kudocommented, May 2, 2022

it’s mainly because the newer react-native in sdk 45 upgraded maven to version 7 and the maven plugin is deprecated.

0reactions
mariomurrent-softwaresolutionscommented, May 2, 2022

Damn, must have missed that one during the upgrade - or I just did not remove the package, because my usages were already updated. Thanks for helping me it 😃 Helped me get to the next error 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo 45 build fail on Android with EAS
Hi All, I've upgraded the SDK version to 45 recently. … ... end of the build > Task :react-native-gradle-plugin:compileKotlin 'compileJava' ...
Read more >
expo EAS build (iOS) fails in Pod installation step (SDK45 & 46)
You are seeing this error because either: - Versions in the Podfile.lock cached by EAS do not match required values for some of...
Read more >
Expo on Twitter: "Expo SDK 45 has arrived! ⚡️ Highlights
Highlights - Fresh new look for Expo Go - React Native 0.68.1 - Quality of ... and EAS Update integration in expo-dev-client -...
Read more >
support for react-native-share | Voters - Expo - Canny
Here's an Expo app using react-native-share that works fine for me: ... go through EAS build to use rn-share but this doesn't prevent...
Read more >
Building an Expo App with Native Code Using EAS Build
This walkthrough shows you how to build an Expo App that includes native code, using EAS Build.We'll make a dev app for iOS...
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