picker
picker copied to clipboard
The use of "react-native-picker/picker" block the APK file generation of my expo project
When trying to generate the app APK file of my expo project, I get the following error during the build process:
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
[stderr]
FAILURE: Build failed with an exception.
[stderr]
* Where:
[stderr]
Build file '/home/expo/workingdir/build/admin/node_modules/react-native-picker/android/build.gradle' line: 25
[stderr]
* What went wrong:
[stderr]
A problem occurred evaluating project ':react-native-picker'.
[stderr]
> Could not find method compile() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
[stderr]
* Try:
[stderr]
> Run with --stacktrace option to get the stack trace.
[stderr]
> Run with --info or --debug option to get more log output.
[stderr]
> Run with
[stderr]
--scan to get full insights.
[stderr]
* Get more help at https://help.gradle.org
[stderr]
BUILD FAILED in 2m 19s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
5 actionable tasks: 5 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
I am also running into this issue. I have seen in many places to try replacing "compile" to "implementation", but that doesn't work with the eas managed workflow.
In my case, the problem is resolved after uninstalling another package called "react-native-picker".
I am facing the same issue. I hope to find a working alternative for react-native-picker