Создать пакет для Android — Monaca

#android #cordova #bundle #release #monaca

#Android #кордова #пакет #освобождать #монака

Вопрос:

Я пытаюсь сгенерировать пакет Android в среде IDE Monaca, но получаю такую ошибку:

 [06:56:43] gt; Task :app:compileReleaseJavaWithJavac FAILED [06:56:43] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. [06:56:43] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. [06:56:43] See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings [06:56:43] 37 actionable tasks: 37 executed [06:56:43] /tmp/download/platforms/android/app/src/main/java/org/apache/cordova/camera/FileProvider.java:21: error: package android.support.v4.content does not exist [06:56:43] public class FileProvider extends android.support.v4.content.FileProvider {} [06:56:43] ^ [06:56:43] /tmp/download/platforms/android/app/src/main/java/org/apache/cordova/camera/CameraLauncher.java:42: error: package android.support.v4.content does not exist [06:56:43] import android.support.v4.content.FileProvider; [06:56:43] ^ [06:56:43] /tmp/download/platforms/android/app/src/main/java/org/apache/cordova/camera/CameraLauncher.java:296: error: cannot find symbol [06:56:43] this.imageUri = FileProvider.getUriForFile(cordova.getActivity(), [06:56:43] ^ [06:56:43] symbol: method getUriForFile(androidx.appcompat.app.AppCompatActivity,java.lang.String,java.io.File) [06:56:43] location: class org.apache.cordova.camera.FileProvider [06:56:43] /tmp/download/platforms/android/app/src/main/java/org/apache/cordova/camera/CameraLauncher.java:823: error: cannot find symbol [06:56:43] Uri tmpFile = FileProvider.getUriForFile(cordova.getActivity(), [06:56:43] ^ [06:56:43] symbol: method getUriForFile(androidx.appcompat.app.AppCompatActivity,java.lang.String,java.io.File) [06:56:43] location: class org.apache.cordova.camera.FileProvider [06:56:43] Note: Some input files use or override a deprecated API. [06:56:43] Note: Recompile with -Xlint:deprecation for details. [06:56:43] 4 errors [06:56:43] FAILURE: Build failed with an exception. [06:56:43] * What went wrong: [06:56:43] Execution failed for task ':app:compileReleaseJavaWithJavac'. [06:56:43] gt; Compilation failed; see the compiler error output for details. [06:56:43] * Try: [06:56:43] 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. [06:56:43] * Get more help at https://help.gradle.org [06:56:43] BUILD FAILED in 41s [06:56:43] Command failed with exit code 1: /tmp/download/platforms/android/gradlew :app:bundleRelease -b /tmp/download/platforms/android/build.gradle 

кто-нибудь знает, как решить эту проблему?

заранее спасибо