Ошибка при создании собственного приложения sencha

#cordova #extjs #build #native

Вопрос:

Я пытаюсь создать собственное приложение sencha. Я прошел через следующие шаги:

  1. sencha -sdk /путь/к/sdk создание приложения-современное приложение MyApp /путь/к/BaseDir
  2. сенча кордова init com.me.MyApp MyApp
  3. родная сборка приложения sencha

Однако на шаге 3 возникает ошибка:

 [INF] Writing content to c:xampphtdocsCordova-templatecordovawwwindex.html
[INF] [Cordova] Attempting Cordova Build for platforms "android"
[INF] [shellscript]
[INF] [shellscript] c:xampphtdocsCordova-templatecordova>cordova  build android
[INF] [shellscript] (node:10588) [DEP0128] DeprecationWarning: Invalid '''main''' field in '''C:UsersUSERAppDataRoamingnpmnode_modulescordovanode_modulesobjectorarraypackage.json''' of '''dist/index.js'''. Please either fix that or report it to the module author
[INF] [shellscript] (Use `node --trace-deprecation ...` to show where the warning was created)
[INF] [shellscript] Checking Java JDK and Android SDK versions
[INF] [shellscript] ANDROID_SDK_ROOT=c:Androidcmdline-tools (recommended setting)
[INF] [shellscript] ANDROID_HOME=c:Androidcmdline-tools (DEPRECATED)
[INF] [shellscript] (node:10588) [DEP0128] DeprecationWarning: Invalid '''main''' field in '''c:xampphtdocsCordova-templatecordovanode_modulesobjectorarraypackage.json''' of '''dist/index.js'''. Please either fix that or report it to the module author
[INF] [shellscript] Requirements check failed for JDK 1.8.x! Detected version: 1024.0.0
[INF] [shellscript] Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.

[ERR] C:UsersUSERbinSenchaCmd7.3.0.19plugin.xml:333: The following error occurred while executing this line:
C:UsersUSERbinSenchaCmd7.3.0.19antbuildappbuild-impl.xml:443: The following error occurred while executing this line:
C:UsersUSERbinSenchaCmd7.3.0.19antbuildapppackager-impl.xml:17: The following error occurred while executing this line:
C:UsersUSERbinSenchaCmd7.3.0.19antbuildappcordova-impl.xml:77: The following error occurred while executing this line:
jar:file:/C:/Users/USER/bin/Sencha/Cmd/7.3.0.19/sencha.jar!/com/sencha/ant/antlib.xml:671: shellscript returned: 1
[ERR] A log is available in the file "C:xampphtdocsCordova-templatesencha-error-20210530-3.log"
 

Кто — нибудь знает, что вызывает эту ошибку?

Шаг 2 создает cordova каталог в корневом каталоге приложения. Я также изменил объект сборки в app.json:

     "builds": {
        "web": {"default": true},
        "native": {
            "packager": "cordova",
            "cordova" : {
                "config": {
                    // Uncomment the line below and add the platforms you wish to build for
                    //"platforms": "ios android",
                    "platforms": "android",
                    "id": "com.mycompany.MyApp",
                    "name": "MyApp"
                }
            }
        }
    },
 

Я установил последнюю версию cordova, а также последнюю версию Java SDK (jdk-15.0.1) и ввел соответствующие пути в переменные среды. У меня не установлена Android studio, но я установил cmdline-инструменты и вставил их c:Androidcmdline-toolstools .