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
[android][react native] error on executing 'gradlew clean' : "Could not get unknown property 'jniLibs' for object of type com.android.build.gradle.internal.dsl.PackagingOptions."
#4706
Closed
takanorihirai opened this issue
Jul 6, 2022
· 5 comments
· Fixed by #4707
and re-execute "gradlew clean", I'm temporarily addressing the bug,
and executing "npx react-native run-android" to run with android avd emulator ,is ok.
Stacktrace & log output
cd /Users/develop/Documents/workspace/sample_project
cd android
./gradlew clean
...
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/develop/Documents/workspace/sample_project/app/node_modules/realm/react-native/android/build.gradle' line: 60
* What went wrong:
A problem occurred evaluating project ':realm'.
> Could not get unknown property 'jniLibs'for object of type com.android.build.gradle.internal.dsl.PackagingOptions.
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 18s
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "gradlew:clean" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Hey all, apologies, this release inadvertently changed the minimum version of the Android Gradle plugin required to 4.2.x. I'll get a new release together with a fix for this so that you don't have to modify your Android Studio projects. For now using the previous release (or upgrading the Android Gradle plugin version) is a workaround
How frequently does the bug occur?
All the time
Description
on executing "gradlew clean" in react native project (see 'Reproduction Steps')
failed complete with following log (see 'Stacktrace & log output') .
so I edited with patch
line 60
and re-execute "gradlew clean", I'm temporarily addressing the bug,
and executing "npx react-native run-android" to run with android avd emulator ,is ok.
Stacktrace & log output
Can you reproduce the bug?
Yes, always
Reproduction Steps
Version
10.19.4
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
android
Build environment
Which debugger for React Native: ..
Cocoapods version
cocoapods: stable 1.11.3 (bottled)
The text was updated successfully, but these errors were encountered: