Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo 51 android build failure #45

Open
shajumohamed opened this issue Jul 25, 2024 · 2 comments
Open

Expo 51 android build failure #45

shajumohamed opened this issue Jul 25, 2024 · 2 comments

Comments

@shajumohamed
Copy link

shajumohamed commented Jul 25, 2024

Hi ,

did anyone use the package in an expo 51 project ?

The eas android build fails with the below error as soon as adding the package as a dependency in package.json (without using it anywhere).


Running 'gradlew :app:assembleDebug' in /home/expo/workingdir/build/greenport/android
Welcome to Gradle 8.6!
Here are the highlights of this release:
- Configurable encryption key for configuration cache
 - Build init improvements
 - Build authoring improvements
For more details see https://docs.gradle.org/8.6/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.6/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
> Task :expo-dev-launcher-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :expo-dev-launcher-gradle-plugin:pluginDescriptors
> Task :expo-dev-launcher-gradle-plugin:processResources
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :expo-dev-launcher-gradle-plugin:compileKotlin
> Task :expo-dev-launcher-gradle-plugin:compileJava
NO-SOURCE
> Task :expo-dev-launcher-gradle-plugin:classes
> Task :expo-dev-launcher-gradle-plugin:jar
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Configure project :app
ℹ️  Applying gradle plugin 'expo-dev-launcher-gradle-plugin' ([email protected])
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/home/expo/workingdir/build/greenport/node_modules/expo-location/android/build.gradle' line: 40
* What went wrong:
A problem occurred evaluating project ':expo-location'.
> Could not set unknown property 'classifier' for task ':expo-location:androidSourcesJar' of type org.gradle.api.tasks.bundling.Jar.
* 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/greenport/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/.
==============================================================================
BUILD FAILED in 2m 24s
10 actionable tasks: 10 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Once the package is removed, the build completes successfully.

@RazeLighter777
Copy link

Having the same issue.

@valinagacevschi
Copy link

valinagacevschi commented Sep 16, 2024

same here, but found the fix.

add this to your package.json and update the expo-location to your current version. mine is below.

  "resolutions": {
    "expo-location": "17.0.1"
  },

or you can change the dependency section in this package.json and update the expo-location version or even remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants