react-native-version-check icon indicating copy to clipboard operation
react-native-version-check copied to clipboard

It doesn't work on Expo 51 on Android

Open andresespinosapc opened this issue 1 year ago • 2 comments

When I try to add the dependency react-native-version-check-expo and build the app for Android (with Expo 51), it throws an error.

Here's the relevant build log:

> Configure project :app
 ℹ️  Applying gradle plugin 'expo-dev-launcher-gradle-plugin' ([email protected])
 ℹ️  Applying gradle plugin 'expo-updates-gradle-plugin' ([email protected])
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script '/home/expo/workingdir/build/mobile/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 408
* What went wrong:
A problem occurred evaluating project ':expo'.
> A problem occurred configuring project ':expo-localization'.
   > Failed to notify project evaluation listener.
      > compileSdkVersion is not specified. Please add it to build.gradle
      > Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
* Try:
> 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.
> Get more help at https://help.gradle.org/.
==============================================================================
2: Task failed with an exception.
-----------
* Where:
Script '/home/expo/workingdir/build/mobile/node_modules/expo-modules-core/android/ExpoModulesCorePlugin.gradle' line: 85
* What went wrong:
A problem occurred configuring project ':expo'.
>
Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
* Try:
> 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.
> Get more help at https://help.gradle.org.
==============================================================================

andresespinosapc avatar Oct 08 '24 13:10 andresespinosapc

I'm having the same issue! If you found a solution please tell me!

MiguelBizzi avatar Oct 26 '24 00:10 MiguelBizzi

I have the same issue and fix it installing expo-localization

npx expo install expo-localization

{ "expo": { "plugins": ["expo-localization"] } }

Etaboada95 avatar Dec 13 '24 17:12 Etaboada95