Apksigner returned with error 2 godot

Godot version 3.4.rc2.official,3.4.rc3.official System information ubuntu 21.10 openjdk8 Issue description the export for android process failed with 'apksigner' returned with error #2 expo...

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account


Closed

enorrmann opened this issue

Nov 6, 2021

· 5 comments

Comments

@enorrmann

Godot version

3.4.rc2.official,3.4.rc3.official

System information

ubuntu 21.10 openjdk8

Issue description

the export for android process failed with
‘apksigner’ returned with error #2

exporting the same project with same keys in godot version 3.2.stable works as intended

Steps to reproduce

export for android

Minimal reproduction project

No response

@Calinou

exporting the same project with same keys in godot version 3.2.stable works as intended

Did it work with Godot 3.3.x?

@enorrmann

exporting the same project with same keys in godot version 3.2.stable works as intended

Did it work with Godot 3.3.x?

3.3.stable : same error
3.4.stable : same error

@akien-mga

You probably need to recreate your keystore to be compatible with 3.3+. See the command in the current docs to generate it.

@enorrmann

@zaddok

I get the same error as well, using Godot 3.5.1 and the instructions at: (The #2 error)

https://docs.godotengine.org/en/latest/tutorials/export/exporting_for_android.html

I tried restarting Godot and it didn’t help. I did solve it, by using the «alias» in the «username» field. The user interface asks for a «username» and it was not clear what to put in to the «username» field. Perhaps the «username» field should be called the «Alias» field for clarity? Just a thought.

Содержание

  1. ‘apksigner’ returned with error # 1 when exporting to android? #48220
  2. Comments
  3. Всем привет. Пытаюсь сделать экспорт под Андроид, выдает такую ошибку
  4. 2 ответов
  5. Похожие вопросы
  6. Android Export Fails: ‘apksigner’ returned with error #1 #4796
  7. Comments
  8. ‘apksigner’ returned with error #2 about godot HOT 4 CLOSED
  9. Comments (4)
  10. Related Issues (20)
  11. Recommend Projects
  12. React
  13. Vue.js
  14. Typescript
  15. TensorFlow
  16. Django
  17. Laravel
  18. Recommend Topics
  19. javascript
  20. server
  21. Machine learning
  22. Visualization
  23. Recommend Org
  24. Facebook
  25. Microsoft
  26. Развертывание приложения Xamarin для Android завершилось с ошибкой «apksigner.BAT» завершился с кодом 2
  27. Другие вопросы по теме
  28. Похожие вопросы

‘apksigner’ returned with error # 1 when exporting to android? #48220

Godot version:

OS/device including version:

Nvdia GT630M, Laptop ASUS K43s, GLES3, Windows 7 64 Bit

Issue description:

Hello, recently i updated godot to version 3.3, and i am having a problem when i try to export to android.
the following message appears:

‘apksigner’ returned with error # 1

This problem did not happen in previous versions, can someone help me please?

Steps to reproduce:

Try to export it with:
Project -> Export -> Android

My setting in Editor:

The text was updated successfully, but these errors were encountered:

The Adb and Jarsigner editor settings are no longer used in Godot 3.3, but they’ll still appear in the Editor Settings if you’ve upgraded from 3.2 due to https://github.com/godotengine/godot/issues/22099.

Instead, you need to set the Android Sdk Path only.

I have ‘apksigner’ returned with error # 2.

The Adb and Jarsigner editor settings are no longer used in Godot 3.3, but they’ll still appear in the Editor Settings if you’ve upgraded from 3.2 due to #22099.

Instead, you need to set the Android Sdk Path only.

okay, i’ve already reset my editor settings, now it looks like this:

but, it still error: ‘apksigner’ returned with error # 1

Maybe related godotengine/godot-docs#4796, try to update build-tools to 30.0.3 version. To find more explicit error message run godot in verbose mode godot -v

@komputerboy I came across this error and found the problem was that I needed to provide the debug.keystore username & password in the Export options (Export -> Options -> Keystore) as well when I went to export the project for Android.

I made a pull request to update the tutorial documentation to reminder developers to do this, but I’m wondering if this is a bug where the Editor Settings should be propagating to as defaults to the Export options?

EDIT: I believe I was having this error because I had provided a Debug Keystore path in the Export Options, but not the Debug Username and Debug Password. You either need to provide all 3 in the Export Options, or none (and then exporting will fallback to the Editor Settings).

Источник

Всем привет. Пытаюсь сделать экспорт под Андроид, выдает такую ошибку

Error ‘apksigner’ returned with error #2 Годо версия 3.4 кто нибудь сталкивался с подобным?

2 ответов

Зависит от того, какую версию экспортируете. Debug или Release. Должны быть сгенерированы соответствующие ключи

Похожие вопросы

Здравствуйте, подскажите. Можно ли как то привязать ось x и y к обьекту/спрайту. Скажем я повернул спрайт на 90°. А ось осталась той же глобальной. Можно как то её закрепить?

Благодарю. Можете написать завтра? пожалуйста

Приветик , где можно скачать документацию по годот Я в Гугле видел только на англ Можно на русском языке ? В лс можно ?

А можете для тех кто не в теме вкратце объяснить фундаментальные отличия четвёртой версии? Стоит ли изучение начинать сразу с неё?

Темы. Хм. Где начать копать? Чтобы поподробнее узнать

Добрый вечер, не понимаю почему такой элементарный код не работает?

Hi Не подскажете из-за чего прыжок в 2д пространстве при записи экрана вдвое выше? Дело в том, что делаю платформер и решил записать реализацию механики, которая была незако.

Почему OS.shell_open(«https://godotengine.org») выдаёт предупреждение «The function ‘shell_open()’ returns a value, but this value is never used.» ? В документации ничего нет .

Ребята, как сделать чтобы в редакторе и непосредственно в билде было все одинаково? Типа как в Юнити Сделал билд для теста, а там все темно и долго не мог понять почему. Пото.

Источник

Android Export Fails: ‘apksigner’ returned with error #1 #4796

Your Godot version:
v3.3.rc7.official

Issue description:
I followed the documentation page (URL below) to setup for Android Exports. When attempting to export to Android, I received the following error: ‘apksigner’ returned with error #1

From the command-line, I ran apksigner and received the following error:

During my investigation, I discovered that build-tools;30.0.1 requires JDK 9. For testing, I ran the following:

Solution:
Uninstall build-tools 30.0.1 and install build-tools 29.0.3.
Also, the doc page below should be updated to use build-tools 29.0.3.

This issue, and it’s solution, works on both Windows 10 and Linux (Solus 4.2)

The text was updated successfully, but these errors were encountered:

@JohnCWakley Thanks for reporting the issue and providing a solution! Which version of the jdk do you have installed on your machine that was causing the issue?

@JohnCWakley Thanks for reporting the issue and providing a solution! Which version of the jdk do you have installed on your machine that was causing the issue?

@m4gr3d You’re very welcome! I followed the doc page (linked in my first post) OpenJDK link to https://adoptopenjdk.net/index.html?variant=openjdk8&jvmVariant=hotspot and selected OpenJDK 8 (LTS) and HotSpot. The version (at the time) is jdk8u282-b08 .

I am sure this is not a bug in the Godot code, but rather an update to the doc page to use build-tools;29.0.3 .

If you need any other information, please let me know. 😃

Update build-tools to 30.0.3 solved this issue!

on windows I was getting ‘apksigner’ returned with error #1 and I downgraded to 29.0.3. and now I get ‘apksigner’ returned with error #2

on windows I was getting ‘apksigner’ returned with error #1 and I downgraded to 29.0.3. and now I get ‘apksigner’ returned with error #2

Try to update android build tools to 30.0.3, it solved my problems.
If it won’t help then try to start godot with «—verbose» argument, this should give you some more logs on console windows, together with the problem root cause.

I think that if build tools are below 30.0.0 , the apksigner complains about keystore format, if there are above 30.0.0 but below 30.0.3 it complains about java versions.

I followed the doc 100% (cmdline-tools, openjdk 8, dbug key generation with deststoretype override) to build an android export with godot headless on a pristine server.

Same export error, the verbose mode gave the same apksigner error.
Downgraded to 29.0.3 and it now works! Thanks for the tip.
Didn’t try to upgrade java as the doc seems categorical on the need to use jdk 8

If openjdk should be upgraded or build tools downgraded, the doc should be updated accordingly

both are mentioned: 29.0.3 and 30.0.3. was is a typo or is 30.0.3 the best version to use?

both are mentioned: 29.0.3 and 30.0.3. was is a typo or is 30.0.3 the best version to use?

30.0.3 with the newest available jdk should work.

both are mentioned: 29.0.3 and 30.0.3. was is a typo or is 30.0.3 the best version to use?

30.0.3 with the newest available jdk should work.

I have not tried the newest JDK yet (including 30.0.3) — I will give it a try as soon as I get a chance.

The documentation should be updated to use build-tools;30.0.3 and this ticket can be closed.
cc: @akien-mga

Источник

‘apksigner’ returned with error #2 about godot HOT 4 CLOSED

exporting the same project with same keys in godot version 3.2.stable works as intended

Did it work with Godot 3.3.x?

enorrmann commented on January 15, 2023

exporting the same project with same keys in godot version 3.2.stable works as intended

Did it work with Godot 3.3.x?

3.3.stable : same error
3.4.stable : same error

akien-mga commented on January 15, 2023

You probably need to recreate your keystore to be compatible with 3.3+. See the command in the current docs to generate it.

enorrmann commented on January 15, 2023

You probably need to recreate your keystore to be compatible with 3.3+. See the command in the current docs to generate it.

  • char_fx.set_visibility — BBCode — RichTextEffects not working as documented.
  • [3.5.2] change_scene breaks when javascript target compiled with LTO, and incredibly specific conditions
  • Input event passes through Control-nodes with emulating touch from mouse enabled.
  • CanvasLayer textures are different in editor and in game. HOT 5
  • .NET 6 C# — ScriptPropertiesGenerator fail with overridden initialized property on master HOT 1
  • UI is not rendered on Intel UHD 630. Latest driver. HOT 4
  • Godot 4.0 beta 10 .NET 6 / mono crash loading project (seems unrelated to other similar issues) HOT 6
  • [4.0 beta10] Skeleton2D/Polygon2D moving/rotating issues when polygon is not on default position HOT 1
  • Incorrect indentation in lambda as function arg
  • After clicking the Profiler chart, the profiler stops working HOT 1
  • Can’t scroll horizontally through the Profiler’s charts
  • Cancelling node selection with Escape breaks shape editing undo HOT 1
  • Custom resources with TileSet.CellNeighbor fields return null for all fields in Release builds HOT 2
  • Generated documentation for functions returning an enum value says that the return type is Dictionary HOT 5
  • Audio playback progress times are not updated in real time HOT 2
  • Properties/setget do not offer clickable links
  • «Make Floating» option is missing HOT 5
  • Godot 4.0 CollisionShape2D Rendering Issues? HOT 3
  • Dictionary match in 4.0 causes constant required error HOT 1
  • Godot 4 converter adding Callable and bindings where methods, signals, etc have ‘start’ anywhere in their name, even comments! HOT 2

Recommend Projects

React

A declarative, efficient, and flexible JavaScript library for building user interfaces.

Vue.js

🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

Typescript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

TensorFlow

An Open Source Machine Learning Framework for Everyone

Django

The Web framework for perfectionists with deadlines.

Laravel

A PHP framework for web artisans

Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

javascript

JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

Some thing interesting about web. New door for the world.

server

A server is a program made to process requests and deliver data to clients.

Machine learning

Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

Visualization

Some thing interesting about visualization, use data art

Some thing interesting about game, make everyone happy.

Recommend Org

Facebook

We are working to build community through open source technology. NB: members must have two-factor auth.

Microsoft

Open source projects and samples from Microsoft.

Источник

Развертывание приложения Xamarin для Android завершилось с ошибкой «apksigner.BAT» завершился с кодом 2

Развертывание приложения Xamarin завершилось ошибкой «apksigner.BAT» завершился с кодом 2.

JDK версии 1.8.162

Ошибка, похоже, связана только с последними версиями JDK.

ROHINI KUMAR Madugula

Попробуйте понизить JDK до 1.8.131.

Я столкнулся с проблемами с 1.8.161 и 1.8.162.

Если вы используете JDK 9, перейдите на JDK-8.

если это не сработает, просто установите 1.8.131 в дополнение к существующей

@John: сделай одну вещь, просто используйте существующую 32-битную версию JDK161. только для этого добавьте конфигурации и переменную среды. просто установите JDK131 дополнительно; нет необходимости устанавливать какую-либо конфигурацию для JDK131

С удовольствием удалите все места в SDK местах.

В моем VS2017 с jdk1.8.0_161 была такая же ошибка. В VS2015 с jdk1.6 — нет. Версия JDK — реальная причина. Пробовал несколько устройств и систем, прежде чем обнаружил проблему после обновления VS.

Удаление JDK 9.x исправило это для меня.

То, что настройки Android указывали на JDK 8.x, не имело значения. Чтобы решить эту проблему, пришлось удалить JDK 9.x.

Решено! Вы только что сэкономили мне много времени.

У меня такая же ошибка при создании приложения Xamarin.Android в Visual Studio.

Это было вызвано переносом моего хранилища ключей из формата JKS в формат PKCS12, потому что

keytool.exe -list -v -keystore

продолжал давать мне следующие Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format .

Плохая идея для миграции, похоже, apksigner.BAT требует, чтобы хранилище ключей было в формате JKS. Я решил эту проблему, вернувшись к своему debug.keystore.old .

В дополнение к правильным ответам, связанным с JDK, также попробуйте проверить переменную PATH. Должна быть установлена ​​последняя версия JDK. Решил мою проблему после нескольких дней проверки различных IDE, машин и устройств.

Как выяснили другие, это конфликт, который возникает, когда у вас установлена ​​более новая версия Java, например JDK 9.

На самом деле в этом нет необходимости, но вот обходной путь: создайте новый командный файл с указанным ниже содержимым (при необходимости обновите пути). Вы хотите установить JAVA_HOME так, чтобы он указывал на старую версию Java.

Xamarin.bat:

Недавно получил от клиента старый проект. Он давал тот же error в Visual Studio for Windows . В Visual Studio for Mac выдавалась 1 ошибка without displaying любой Error Message .

Причина, по которой behind и error , заключалась в том, что клиент указал signing key , который является not available на моем system .

На Mac мне просто нужен uncheck вариант apk signing .

в то время как на Windows мне нужно записать edit в файл csproj , чтобы удалить signing key . Теперь проект успешно строится.

Для меня сработало удаление (или переименование) apksigner.bat из моего текущего каталога инструментов сборки (. AppData Local Android android-sdk build-tools 28.0.0-rc1 apksigner.bat)

После этого очищен obj и каталог Debug / Release-> Rebuild-> Deploy

Другие вопросы по теме

Похожие вопросы

Находите ответы на сложные технические вопросы по программированию, с которыми сталкиваются инженеры по всему миру в своей ежедневной практике на сайте RedDeveloper.

Источник

Евгений-꧁☬أسد☬꧂

Всем привет. Пытаюсь сделать экспорт под Андроид, выдает такую ошибку

Error ‘apksigner’ returned with error #2
Годо версия 3.4 кто нибудь сталкивался с подобным?

russian

software

godot

03:26 24.07.2022


2

ответов

Зависит от того, какую версию экспортируете. Debug или Release. Должны быть сгенерированы соответствующие ключи

04:27 24.07.2022


GeCreator

Зависит от того, какую версию экспортируете. Debug…

Сгенерировал дебаг

06:59 24.07.2022

Похожие вопросы

  • Remove From My Forums
  • Question

  • User163681 posted

    I am facing a problem with my Xamarin.android app, When I build it succeed BUT I face the following error when deploying,

    ……..

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2605,2): error MSB6006: «java» exited with code 2.
    Done building target «_Sign» in project «MyApp.Droid.csproj» — FAILED.

    Done building project «MyApp.Droid.csproj» — FAILED.

    Build FAILED.

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2605,2): error MSB6006: «java» exited with code 2.

    Can Anybody help, I have been trying to resolve this for two days, but nothing works.

Answers

  • User163681 posted

    I finally resolved this.issue in case anyone face this later,

    I tried to run my Xamarin.android project on new machine and I got the previous error. After sometime I realized that I am missing the keystore of my app. I had to go to my old machine and get the keystore (archive -> Sign and Distribute ) then right click the key you want -> show Alias info

    I copied it to my new machine and I referenced it from .android project -> options -> package signing, I think it is better to place it in the default directory for keystrores ( /Users/mac/Library/Developer/Xamarin/Keystore/ )
    write the proper alias and password

    Then the error is gone. :smile:

    • Marked as answer by

      Thursday, June 3, 2021 12:00 AM

Понравилась статья? Поделить с друзьями:
  • Apk установка синтаксическая ошибка
  • Apk синтаксическая ошибка при анализе пакета
  • Apk открывается как архив как исправить
  • Apk had been modified как исправить world conqueror 3
  • Apk error unsatisfiable constraints