Build fails with gradle 7
See original GitHub issueIssue
After installing react-native-skia
, npx react-native run-android
fails with the following error.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/my-project/node_modules/@shopify/react-native-skia/android/build.gradle' line: 28
* What went wrong:
A problem occurred evaluating project ':shopify_react-native-skia'.
> Plugin with id 'maven' not found.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':shopify_react-native-skia'.
> compileSdkVersion is not specified. Please add it to build.gradle
* 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 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 5s
After some digging, I tried to make it work with this PR https://github.com/Shopify/react-native-skia/pull/43 (still failing for now).
Side note:
To build on Linux, I had to do the following before running yarn build-skia-android
:
# https://docs.conda.io/en/latest/miniconda.html
conda create -n "py2" python=2
conda activate py2
pip install ninja
Then run ANDROID_NDK=$ANDROID_HOME/ndk/21.4.7075529 && yarn build-skia-android
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Build fails with Gradle 7 · Issue #377 · srs/gradle-node-plugin
Reason: A property without annotation isn't considered during up-to-date checking. Possible solutions: 1. Add an input or output annotation. 2. Mark it as...
Read more >Upgrading your build from Gradle 7.x to the latest
Upgrading your build from Gradle 7.x to the latest. version 7.6 ... Invalid specifications are deprecated and will become build errors in Gradle...
Read more >Build failure with gradle 7+ - artifactory - Stack Overflow
I am trying to build an app using Gradle 7+, I am getting. Using insecure protocols with repositories, without explicit opt-in, ...
Read more >Build fails with Gradle 7 : KMA-238 - YouTrack
Build fails with Gradle 7 ... Actual: build fails with: Some problems were found with the configuration of task ':iosApp:generateEditableXcodeproj' (type ' ...
Read more >Gradle build fails with build tools 31.0.0 - Unity Forum
0. Building a gradle project throws this error: "Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi! I faced the same issue, but managed to make it work withGradle 7.2 by modifying @shopify/react-native-skia/android/build.gradle as such:
This worked on RN 67.2 with both the debug and release builds.
It works for me by :