What went wrong:
A problem occurred evaluating project ':app'.
Could not find method compile() for arguments [com.fasterxml.jackson.core:jackson-core:2.4.4] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Problem
Plugin doesn't build for android with gradle 7.4
Steps to reproduce
Run
cordova build android
error:
Where: Script '/path/to/platforms/android/cordova-hot-code-push-plugin-renew/myapp-chcp.gradle' line: 12
What went wrong: A problem occurred evaluating project ':app'.
Cause of issue
https://github.com/snipking/cordova-hot-code-push/blob/c8f73fc0606f27ad13d5c78d696d9f91a51d5d29/src/android/chcp.gradle#L12
The
compile
directive is deprecated and should beimplementation
.System info
Cordova Packages:
Project Installed Platforms: