Export to Android N beta

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By duke_meister
:warning: Old Version Published before Godot 3 was released.

After updating my phone to the latest Android N beta, my app won’t install on that device via one-click deploy (will try a release export and update this*). What would it take to get this to work? Using Godot 2.0.3 and also export templates 2.0.3 on Windows 10.

edit: currently NO export options work for me, over 3 devices. I’ll write another question for that. :frowning:

The error is

Installing into device (please wait..): Google Nexus 6P

running cmdline: "H:/Android/sdk/platform-tools/adb.exe" "-s" "CVH7N15B30002131" "install" "-r" "C:\Users\xxx\AppData\Roaming/Godot/tmp/tmpexport.apk"
12795 KB/s (7607051 bytes in 0.580s)

Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1076572377.tmp/base.apk: Corrupt XML binary file]

running cmdline: "H:/Android/sdk/platform-tools/adb.exe" "-s" "CVH7N15B30002131" "shell" "am" "start" "-a" "android.intent.action.MAIN" "-n" "blah.blah.myapp/org.godotengine.godot.Godot"

Starting: Intent { act=android.intent.action.MAIN cmp=blah.blah.myapp/org.godotengine.godot.Godot }

Error type 3
Error: Activity class {blah.blah.myapp/org.godotengine.godot.Godot} does not exist.

Installing via one-click-deploy on another phone with older Android version works.

:bust_in_silhouette: Reply From: Freeman

Generally this might be a bug, so If I were you, I would report the issue on Godot’s Github Issues · godotengine/godot · GitHub. Do that please, becasue that’s the right place to talk about Godot’s errors.
I know that Godot works fine with Android 6.0.1 - the latest Android version.
Android N is in beta state, so the problems and bugs should be expected.

On the other hand, I think I someone was talking about similar error that

Error type 3 
Error: Activity class {blah.blah.myapp/org.godotengine.godot.Godot} does not exist.

His solution was to delete all the Godot’s data folder, uninstalling Godot and all it’s config files. Then installing and running again. I remember that the problem was on Windows. Maybe that will help you.

Hi thanks for the answer. Yep I’m fine with not being able to export to a beta OS, just wanted to make sure this wasn’t known or that I’m doing something wrong.

Also, in the last few days I’ve been having lots of issues exporting to Android so I wanted to sort that out to be sure the issue with Android N was not related to that. I did see that other post and did the same things but it didn’t seem to fix it.

Anyway tl;dr I’m now currently able to one-click deploy, and manually deploy, to my Android 4 & 6 devices but still not N, so I’m fairly sure there’s something going on there. I’ll post something on github.

duke_meister | 2016-05-23 03:05

This error happens with Android N official release.
The error is gone when not touching version name and permissions.

volzhs | 2016-09-20 20:37

I found so weird thing.
It works if compile tool with target=debug, not target=release_debug.

See also Support for Android N beta · Issue #4777 · godotengine/godot · GitHub

volzhs | 2016-09-20 22:28

:bust_in_silhouette: Reply From: volzhs

It’s fixed on github with @RandomShaper PR.