react-native-aes
react-native-aes copied to clipboard
compile project (':react-native-aes-crypto') fails
Just an FYI, I think the instructions are outdated by the current version of Gradle.
I followed the instructions in the README.md. I am getting the error:
For some reason, the line compile project(':react-native-aes-crypto'), added under dependencies, in the file android/app/build.gradle fails:
A problem occurred evaluating project ':app'.
> Could not find method compile() for arguments [project ':react-native-aes-crypto'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Here is the information provided by gradle:
./gradlew --version
------------------------------------------------------------
Gradle 8.3
------------------------------------------------------------
Build time: 2023-08-17 07:06:47 UTC
Revision: 8afbf24b469158b714b36e84c6f4d4976c86fcd5
Kotlin: 1.9.0
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21.0.1 (Oracle Corporation 21.0.1+12-29)
OS: Mac OS X 14.2 x86_64
Tried changing to implementation project(':react-native-aes-crypto') but getting:
Execution failed for task ':react-native-aes-crypto:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':react-native-aes-crypto:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.