This message was deleted.
# general
s
This message was deleted.
n
check your java version
class file major version 62 is java 18, so something is compiled against java 18, but you’re running with an older version
s
javac --version javac 18.0.1.1
./gradlew --version ------------------------------------------------------------ Gradle 6.9 ------------------------------------------------------------ Build time: 2021-05-07 072853 UTC Revision: afe2e24ababc7b0213ccffff44970aa18035fc0e Kotlin: 1.4.20 Groovy: 2.5.12 Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020 JVM: 18.0.1.1 (Oracle Corporation 18.0.1.1+2-6) OS: Mac OS X 11.6 x86_64
v
Neither Gradle 6.9 nor Groovy 2.5 is compatible with Java 18
v
So you must not use Java 18 to run that build
s
I used Gradle 7.3 and now below error
AILURE: Build failed with an exception.
* Where: Script '/Users/sureshkumard/bp_projects/bp-mfe-feature.global-loyalty/packages/feature-mfe/.BpMfeHost/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 121 * What went wrong: Execution failed for task 'appgeneratePackageList'.
argument type mismatch
* 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.
v
Gradle 7.3 is not compatible with Java 18. So you must not use Java 18 to run that build. Even if that is probably not the source of that error