godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.55k stars 20.27k forks source link

Useless error on installing incompatible android build via debug (cf #49588) #97566

Closed zaddok closed 4 hours ago

zaddok commented 6 hours ago

Tested versions

Godot 4.2.2 Deploying to an Oppo A series and a Samsung S20+

System information

MacOs 14.7

Issue description

A cryptic error appears when trying to install app onto device. Even if the app has been removed/deleted from the device, it still fails to install.

Related issue: In #49588 it appears a checkbox existed called "Clear Previous Install." But this checkbox doesn't appear to exist on 4.2.2 Why was it removed? How do we solve this now?

editor/export/editor_export_platform.h:182 - Run: Could not install to device: adb: failed to install /Users/scripturial/Library/Caches/Godot/tmpexport.1727491114.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Existing package org.scripturial.learn signatures do not match newer version; ignoring!]
  Performing Streamed Install

Why does it say "Performing streamed install"? Is this just a message spat out by adb? It gives hope that it might install. But it doesn't install.

Note the problem does not appear on my Oppo A (CHF) model.

Erasing and reinstalling the /android/ folder inside the godot project folder doesn't help.

Steps to reproduce

Press "Remote Debug" button to run on device, while an android Samsung S20+ is connected. The App previously existed on the phone, but was removed. App fails to run.

Minimal reproduction project (MRP)

n/a

zaddok commented 4 hours ago

I have done a complete full device factory reset on the Samsung S20+ and it is now possible to again launch/debug apps directly onto the device. I suspect this means that the problem is related to the Samsung rather than to Godot itself, so I am going to close this ticket.