Error when exporting a game to android (Godot Engine 4)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ben007che

this is the error when exporting 99 percent

I did everything as described in the documentation. But here is the error.
By the way, I want to point out that export to android for godot 3 works without any glitches.

Is there any solution for this?

ben007che | 2023-04-22 11:21

:bust_in_silhouette: Reply From: ibrahim.semab

Make sure that you have created a new debug keystore and the same apk is not signed with another debug keystore. Or another apk is not signed with the same debug keystore.

Check whether the given path of debug keystore is correct

Yes everything is correct in the way of debugging the key.
But the error is the same. Is it possible that I am in a region under sanctions and some data is not fully downloaded or corrupted?
I apologize for asking stupid questions. I am just a beginner in this field

ben007che | 2023-04-30 15:19

1.Make sure you have the correct export templates: Godot requires specific export templates for each platform. Check that you have downloaded and installed the correct export templates for Android. You can download them from the Godot website or through the Godot editor itself.

2.Check your export settings: Make sure your export settings are correct. Double-check the package name, version code, and version name, and ensure that you have selected the correct export template.

3.Check your Android SDK and NDK: Make sure that you have installed the correct versions of the Android SDK and NDK required by Godot. You can check the required versions in the Godot documentation.

4.Try exporting to a different location: Sometimes, exporting to a different location can resolve issues with exporting. Try exporting your game to a different directory or to your desktop and see if that helps.

5.Try running Godot as an administrator: Running Godot as an administrator can sometimes resolve issues related to file permissions. Right-click on the Godot icon and select “Run as administrator.”

If none of these solutions work, there may be a more serious issue with your setup or with Godot 4 itself. In that case, you can try seeking help from ChatGPT

ibrahim.semab | 2023-05-02 05:38

Point 5 has eliminated this error, thank you very much !!! Just ran as administrator

ben007che | 2023-05-22 20:09