I tried making "AwesomeProject" work. How does it determine the gradle version? I do npx react-native run-android and get this:
I'm getting the exact same error following the Krell Reagent Tutorial. Have you been able to find a fix?
@clojurians-slack100 @zonotope tldr
yarn add react-native-tcp-socket
it works if the package is on this version:
"react-native-tcp-socket": "^5.6.0"
the Awesome template uses gradle 7 and the krell deps or something add a version of this tcp module that uses something deprecated ("maven plugin"). (broken, man rich )
Also make sure you use java 11 because this has bitten me a second time 😛made a github issue https://github.com/vouch-opensource/krell/issues/148
I haven't (with Java 11) 😞
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
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/home/benj/repos/clojure/CljsRnDemo/node_modules/react-native-tcp-socket/android/build.gradle' line: 23
* What went wrong:
A problem occurred evaluating project ':react-native-tcp-socket'.
> 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.
somehow maven plugin go removed with gradle 7 or something.
Should I manually try to pick a gradle version that works?https://reactnative.dev/docs/environment-setup#native this is what I mean with AwesomeProject
I'm https://clojurians.slack.com/archives/C0E1SN0NM/p1646342116072849, but haven't found a fix yet.
$ export JAVA_HOME=/lib/jvm/java-11-openjdk/ $ npx react-native run-android not sure if it's the same error, but with the complete "vanilla" AwesomeProject it works for me when I use java 11
one of the steps here https://github.com/vouch-opensource/krell/wiki/Reagent-Tutorial changes something though, so the gradle maven error appears