Error when Run/Export on Android device

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

Hi I’m newbie I had error when Run on mobile device

   ERROR: ResourceImportMetadata::get_option: Condition ' !options.has(p_key) ' is true. returned: Variant()
    At: core\resource.cpp:99

I think the error is can’t load res file but i cannot track which is error, Project is run normal on window

my logcat

04-07 14:41:00.007   360   438 D hwcomposer: hw_composer sent 6 syncs in 60s
04-07 14:41:11.806   383   579 E         : Couldn't opendir /data/app/vmdl1405372320.tmp: No such file or directory
04-07 14:41:11.806   383   579 E installd: Failed to delete /data/app/vmdl1405372320.tmp: No such file or directory
04-07 14:41:11.885   486   802 I ActivityManager: START u0 {act=android.intent.action.MAIN flg=0x10000000 cmp=org.dzxxsd.lowercan/org.godotengine.godot.Godot} from uid 0

I think that logcat say is uninstalling my app when it false to run
I don’t know how to fix it, i try many thing before
info: this project is make on version 2.x

Thank you very much.

Ok, a Question for Godot2!

About the first error:
https://github.com/godotengine/godot/blob/2.1/core/resource.cpp

I can not exactly say why the error occurs. This could be everything. Maybe there’s a resource with special (international) characters in the file name. Or the character case is not respected when loading a resource from script (although I’d expect other errors then).

There’s an (Editor) option to uninstall the previous version of the game before the new one is installed. (I think that it exists on 2.x but It’s been a year ago that I used it.)

Does your game/app run or not?
What happens?

If you app fails on startup you might want to put print statements in your startup code and see if any of those will make it into the logcat.

wombatstampede | 2020-04-08 06:43

Thank you very much i find out that that is not the main problem
my app cannot install because keystore to export and ARM support to my virtual device
thank u.

trananbinh18 | 2020-04-08 14:13