0 votes

I'm running on OS X and can get the game to run locally from the engine and also, just recently it's started running on export to OS X also.

I tried to export to android and it fails when I try and install the APK file with an error that says: There was a problem while parsing the package.

I ran the Android Monitor app and it gave this as the logs when I try and install (I'm using an app called Ghost Commander as my file manager).

12-22 16:02:35.895: D/GhostCommanderActivity(20850): Open uri file:///storage/emulated/0/Download/ttt.apk intent: Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Download/ttt.apk typ=application/vnd.android.package-archive flg=0x10080000 }
12-22 16:02:35.898: I/ActivityManager(4666): START u0 {act=android.intent.action.VIEW dat=file:///storage/emulated/0/Download/ttt.apk typ=application/vnd.android.package-archive flg=0x10080000 cmp=com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity} from uid 10162 on display 0
12-22 16:02:35.898: W/ActivityManager(4666): Activity is launching as a new task, so cancelling activity result.
12-22 16:02:35.923: D/GhostCommanderActivity(20850): Pausing
12-22 16:02:35.924: D/GhostCommanderActivity(20850): onActivityResult( 3, null )
12-22 16:02:35.929: D/GhostCommanderActivity(20850): Resuming
12-22 16:02:35.930: D/GhostCommanderActivity(20850): Pausing
12-22 16:02:36.015: W/PackageInstaller(23045): Parse error when parsing manifest. Discontinuing installation
12-22 16:02:36.017: D/OpenGLRenderer(20850): endAllActiveAnimators on 0x6ffb27cc00 (ListView) with handle 0x6fed780b60
12-22 16:02:36.082: I/art(4666): Background partial concurrent mark sweep GC freed 19836(1215KB) AllocSpace objects, 2(40KB) LOS objects, 33% free, 25MB/37MB, paused 1.324ms total 112.627ms
12-22 16:02:36.105: I/ActivityManager(4666): Displayed com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity: +164ms
12-22 16:02:36.270: I/ActivityManager(4666): Process com.android.keepass (pid 22047) has died
12-22 16:02:36.270: D/ActivityManager(4666): cleanUpApplicationRecord -- 22047
12-22 16:02:36.282: I/ActivityManager(4666): Process com.android.calllogbackup (pid 21962) has died
12-22 16:02:36.282: D/ActivityManager(4666): cleanUpApplicationRecord -- 21962
12-22 16:02:36.768: I/GhostCommanderActivity(20850): Saving Instance State
12-22 16:02:36.771: D/GhostCommanderActivity(20850): Stopping

Can anyone offer any help? Godot doesn't appear to give any useful info either on export or when I try and run it remotely from within the engine either.

As it is I'm fully stumped and can't progress towards an android export.

Any advice GREATLY appreciated.

in Engine by (810 points)

Hi,

Can you try unzipping the apk then and seeing if the manifest file is in there and have right informations on it ? Can you also check if the size of the apk is OK ?

What version do you use for editor and templates?
Does editor and templates have same version?
Did you fill the all information of debug or release keystore, user and password?

Thanks for your answer / help.

What version do you use for editor and templates

I'm using the OS X 2.1 stable official. The same templates also. This is the same build I used to export my last game with. It all worked fine there

Does editor and templates have same version?

They are on the same yes.

Did you fill the all information of debug or release keystore, user
and password?

Yes, all the same as last time where I successfully exported and even exported to the play store. Usually when they are wrong it's a different error if I recall?

I just re-installed the export templates again to be sure but sure enough, same errors.

Can you try unzipping the apk then and seeing if the manifest file is in there

I didn't know that could be done. Thank you. I just unzipped it and sure enough, it's there.

and have right informations on it ? Can you also check if the size of the apk is OK ?

The APK appears to be ok in size. In terms of information in the manifest xml file it's just a large chunk that goes on and on and looks like this:

0300 0800 bc5f 0000 0100 1c00 4027 0000
d100 0000 0000 0000 0000 0000 6003 0000
0000 0000 0000 0000 2200 0000 3c00 0000
5600 0000 7400 0000 9800 0000 b400 0000
d200 0000 ee00 0000 0c01 0000 2601 0000
3201 0000 4c01 0000 5801 0000 6601 0000
7e01 0000 9c01 0000 b401 0000 da01 0000
e801 0000 fa01 0000 5202 0000 5602 0000
6802 0000 9c02 0000 d002 0000 e402 0000

Would you try to install by adb install -r file.apk on terminal?
You can see better error message why it fails.

Would you try to install by adb install -r file.apk on terminal? You can see better error message why it fails.

Thank you!!!

This is the error:
Failed to install ttt.apk: Failure [INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME: Invalid manifest package: bad character '-']

So, I checked it out and sure enough, there's a - in the name of the game.

Removed it, tried again and it installed. Thank you for showing me adb. I had no idea about it and it gave the error I needed to solve it.

Very appreciative. I can now start my play store beta list up and get people testing.

1 Answer

+1 vote
Best answer

Adding this as the official answer. User @ volzhs supplied it above but placing it here for future readers ease.

There was no error message in Godot.
- I found adb by searching for it in my file manager. (I use forklift)
- I navigated in terminal to where I exported my APK file (mine was on my desktop)
- I then copy and pasted the path to adb into terminal and ran it like so:

/Users/USERNAME/Library/Android/sdk/platform-tools/adb install -r GAMENAME.apk

It put out an error that said:
Failed to install GAMENAME.apk: Failure [INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME: Invalid manifest package: bad character '-']

I checked and sure enough there was a - in the game name in my android export settings. I hope this helps someone in the future. Thanks again@volzhs

by (810 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories