picker icon indicating copy to clipboard operation
picker copied to clipboard

The use of "react-native-picker/picker" block the APK file generation of my expo project

Open mohamedbelhassen opened this issue 3 years ago • 3 comments

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.

mohamedbelhassen avatar Jul 27 '23 08:07 mohamedbelhassen

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.

Zllocke1s avatar Jul 30 '23 20:07 Zllocke1s

In my case, the problem is resolved after uninstalling another package called "react-native-picker".

mohamedbelhassen avatar Aug 02 '23 10:08 mohamedbelhassen

I am facing the same issue. I hope to find a working alternative for react-native-picker

benasdom avatar May 27 '25 22:05 benasdom