It does not matter, on the emulator or on the device, the program crashes:
Uploading file local path: D: \ XPN \ XPN_GAME \ proj.android-studio \ app \ build \ outputs \ apk \ XPN_GAME-debug.apk remote path: / data / local / tmp / XPN_proj Installing XPN_proj DEVICE SHELL COMMAND: pm install -r "/ data / local / tmp / XPN_proj" pkg: / data / local / tmp / XPN_proj Failure [INSTALL_FAILED_INVALID_APK] DEVICE SHELL COMMAND: pm uninstall XPN_proj Unknown failure
With the device, everything is fine, because there is another program of the same type and it works.
Files for android created cocos2d-x, it is crooked and makes a bunch of errors when generating files.
Where to look for an error?
INSTALL_FAILED_INVALID_APKmeans that you have a clumsy APK file. Something is wrong with him. - Vladyslav Matviienko