Error while taking build in Hybrid app

1
Hi ,        I am trying to take hybrid custom build using npm commands as mentioned in mendix documentation unfortunately I get the below error  Task :app:mergeExtDexDebug AGPBI: {"kind":"error","text":"Static interface methods are only supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator.lambda$static$0(okhttp3.Route, okhttp3.Response)","sources":[{}],"tool":"D8"} > Task :app:mergeExtDexDebug FAILED 32 actionable tasks: 32 executed FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform file 'okhttp-3.14.9.jar' to match attributes {artifactType=android-dex, dexing-is-debuggable=true, dexing-min-sdk=19} using transform DexingTransform > Error while dexing. * 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 BUILD FAILED in 21s Error: /var/gimlet/tmp/47238108653620/4075607/gradlew: Command failed with exit code 1 Error output: Note: /var/gimlet/tmp/47238108653620/4075607/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. AGPBI: {"kind":"error","text":"Static interface methods are only supported starting with Android N (--min-api 24): okhttp3.Request okhttp3.Authenticator.lambda$static$0(okhttp3.Route, okhttp3.Response)","sources":[{}],"tool":"D8"} FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform file 'okhttp-3.14.9.jar' to match attributes {artifactType=android-dex, dexing-is-debuggable=true, dexing-min-sdk=19} using transform DexingTransform > Error while dexing. * 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 Kindly let me know what needs to be done Thanks
asked
0 answers