Форум

Standard / Экспорт готовых приложений (Windows/Android)


При экспорте андроид приложения выходит ошибка


Здравствуйте, при создании apk пишет, что не удалось собрать apk файл. Java\jdk1.8.0_202, андроида новую версию установили, но встроенный проект не экспортируется. До новой версии программы все работало.

Отправьте, пожалуйста, отчет об ошибке после неудачного экспорта.
Помощь -> Сообщить об ошибке
Отчет получили:

...\AppData\Local\Temp\android_apkExport_211219172232\src\main\AndroidManifest.xml:23: Error: StandardActivity must extend android.app.Activity [Instantiatable]
  <activity android:name="ru.eligovision.evi.app.StandardActivity"
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Explanation for issues of type "Instantiatable":
   Activities, services, broadcast receivers etc. registered in the manifest
   file (or for custom views, in a layout file) must be "instantiatable" by
   the system, which means that the class must be public, it must have an
   empty public constructor, and if it's an inner class, it must be a static
   inner class.

1 errors, 0 warnings

> Task :lintVitalArmRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':lintVitalArmRelease'.
> Lint found fatal errors while assembling a release target.

  To proceed, either fix the issues identified by lint, or modify your build script as follows:
  ...
  android {
      lintOptions {
          checkReleaseBuilds false
          // Or, if you prefer, you can continue to check for errors in release builds,
          // but continue the build even when errors are found:
          abortOnError false
      }
  }
  ...

* 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 37s

Вы используете стандандартный конфигурационный фаил (build.gradle.in) или пользовательский?

Пришлите, пожалуйста, список установленных компонентов:
Windows: \bin\sdkmanager.bat –list
См. https://eligovision.ru/toolbox/docs/3.4/articles/export/android.html пункт 5

C:\android-sdk\bin> sdkmanager.bat -list
Error: Could not determine SDK root.
Error: Either specify it explicitly with –sdk_root= or move this package into its expected location: <sdk>\cmdline-tools\latest\

C:\android-sdk\bin> sdkmanager.bat -list
Error: Could not determine SDK root.
Error: Either specify it explicitly with –sdk_root= or move this package into its expected location: <sdk>\cmdline-tools\latest\

Укажите, пожалуйста, –sdk_root:

sdkmanager.bat -list --sdk_root=C:\android-sdk
 
Зарегистрируйтесь или войдите чтобы оставить сообщение.