You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
having the auto linking config in the package.json causes a failure in the prebuild step, removing the expo auto linking config in the package.json then fails in the gradlew step.
Running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/frontend/android
Downloading https://services.gradle.org/distributions/gradle-8.6-all.zip
10%
20%.
30%.
40%.
50%.
60%.
70%.
80%.
90%.
100%
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 :gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :expo-updates-gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :expo-updates-gradle-plugin:pluginDescriptors
> Task :expo-updates-gradle-plugin:processResources
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava
NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :expo-updates-gradle-plugin:compileKotlin
> Task :expo-updates-gradle-plugin:compileJava NO-SOURCE
> Task :expo-updates-gradle-plugin:classes
> Task :expo-updates-gradle-plugin:jar
> Configure project :app
ℹ️ �[33mApplying gradle plugin�[0m '�[32mexpo-updates-gradle-plugin�[0m' (expo-updates@0.25.18)
> Configure project :expo-modules-core
Checking the license for package NDK (Side by side) 26.1.10909125 in /home/expo/Android/Sdk/licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing "Install NDK (Side by side) 26.1.10909125 v.26.1.10909125".
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" ready.
Installing NDK (Side by side) 26.1.10909125 in /home/expo/Android/Sdk/ndk/26.1.10909125
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" complete.
"Install NDK (Side by side) 26.1.10909125 v.26.1.10909125" finished.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script '/home/expo/workingdir/build/frontend/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-share-intent'.
> 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/frontend/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 3m 56s
10 actionable tasks: 10 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
ERROR i get when I leave the following in my package.json "expo": {
"autolinking": {
"nativeModulesDir": "/"
}
},
yarn run v1.22.19
$ /home/expo/workingdir/build/frontend/node_modules/.bin/expo prebuild --no-install --platform android
env: load .env
env: export EXPO_PUBLIC_GOOGLE_MAPS_API_KEY
- Creating native directory (./android)
✔ Created native directory
- Updating package.json
✔ Updated package.json | no changes
- Running prebuild
✖ Prebuild failed
Error: EACCES: permission denied, scandir '/lost+found'
Error: EACCES: permission denied, scandir '/lost+found'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn expo prebuild --no-install --platform android exited with non-zero code: 1
expo version (ex: 49) : 51
using firebase : yes the javascript sdk so there will be no issues here
using static build : what?
routing : expo-router
package version (ex: 1.2.0) : 2.1.1
platform target : Android
device :NONE
type: eas build (expo managed workflow)
The text was updated successfully, but these errors were encountered:
fixed by specifying that the nativeModulesDir was "./node_modules" in the package.json instead of default "/". I feel that should be documented at some point! :)
Describe the bug
To Reproduce
eas build --platform android
Package.json
Additional context
failure in the gradlew build step when I remove the
"expo": {
"autolinking": {
"nativeModulesDir": "/"
}
},
from my package.json
ERROR i get when I leave the following in my package.json "expo": {
},
The text was updated successfully, but these errors were encountered: