-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Build Error with Android | React-native-gradle-plugin broken | Crypto tink library issue #34295
Comments
The error logs leads to the following repository/library, https://mvnrepository.com/artifact/com.google.crypto.tink/tink-android which is the same error I found while upgrading to new architecture. And hence these are managed by this new react-native-gradle-plugin, it has some bugs into it or maybe some other reason |
This is most likely related to a faulty setup. I suggest you clean up some of your caches as Gradle is failing to store locally some of the dependency. I would try to remove the |
That folder is around 5GB in size. I don't want to disturb my other work environment and projects which are working fine. @cortinico Will that action be fine? |
@cortinico I did delete that folder but it lead me to new error in this new project
and my other project is also having an error now
Would need some direction to solve this, please!
This issue clears doubt against my jdk version. Needhelp1 |
have you checked your if all setup correct, have you tried to repro after a fresh if still happening, i agree with @cortinico and would clean your Windows Gradle cache as he suggested if still happening after that, could you link us to a minimal repro starting from |
Thanks @leotm and @cortinico , I rebooted my system to delete the residual and temp files and now everything works. |
My question have not being answered |
run |
Description
BUILD FAILED in 10s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
A problem occurred configuring root project 'bookNorder_wo_expo'.
BUILD FAILED in 10s
info Run CLI with --verbose flag for more details.
Version
0.69.3
Output of
npx react-native info
ystem:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Memory: 1.17 GB / 7.91 GB
Binaries:
Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.5.4 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8193401
Visual Studio: Not Found
Languages:
Java: 11.0.13
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.3 => 0.69.3
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npx react-native init AwesomeProject
npm run android
Snack, code example, screenshot, or link to a repository
[{
"resource": "/E:/reactnative/bookNorder_wo_expo/android/",
"owner": "generated_diagnostic_collection_name#1",
"code": "0",
"severity": 8,
"message": "The supplied phased action failed with an exception.\r\nA problem occurred configuring root project 'bookNorder_wo_expo'.\r\njava.util.concurrent.ExecutionException: org.gradle.api.GradleException: Failed to create Jar file C:\Users\AGRIT\.gradle\caches\jars-9\2f0317f12d54d6c10096ba1dbae69156\tink-1.3.0-rc2.jar.\r\norg.gradle.api.GradleException: Failed to create Jar file C:\Users\AGRIT\.gradle\caches\jars-9\2f0317f12d54d6c10096ba1dbae69156\tink-1.3.0-rc2.jar.\r\nFailed to create Jar file C:\Users\AGRIT\.gradle\caches\jars-9\2f0317f12d54d6c10096ba1dbae69156\tink-1.3.0-rc2.jar.\r\nFailed to process the entry 'com/google/crypto/tink/proto/HmacParams$Builder.class' from 'C:\Users\AGRIT\.gradle\caches\modules-2\files-2.1\com.google.crypto.tink\tink\1.3.0-rc2\c7efb1ecc3b667b8a0789a1b019b06269037e19b\tink-1.3.0-rc2.jar'\r\nData error (cyclic redundancy check)",
"source": "Java",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}]
The text was updated successfully, but these errors were encountered: