godotengine / godot

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

Remote Debug on Android doesn't install the App and doesn't show any errors #73944

Open vickylance opened 1 year ago

vickylance commented 1 year ago

Godot version

4.0 RC5

System information

MacOS Ventura 13.0.1, M1 Macbook Pro

Issue description

I am trying to run the game on my android device which is connected to my laptop. USB Debugging is enabled on my phone and install from unknown sources is turned on as well. My Android phone is Realme X50 Pro Android 12

Screenshot 2023-02-26 at 12 15 19 AM

The build is success and it shows installing on my device but nothing is happening.

In a new Project only the first time its installing and opening the game on the connected android device when you click on the remote debug button. Regardless of whether its forward+ or mobile renderer. But if you close the game on your phone and uninstall that game and click on that remote debug button again. Then its no longer installing ever again for that project, even if you close and reopen that project multiple times.

Steps to reproduce

  1. Open any new project
  2. Install export template and setup for android
  3. connect android device and connect in USB debug mode.
  4. Click on remote debug and select android device
  5. The build is success and might install for the first time and open the game
  6. But clicking on the remote debug button again after closing the game &/or uninstalling the game doesn't install the game for that project ever again even after close and reopen of the project.

Minimal reproduction project

Any new project will do to reproduce the issue

vickylance commented 1 year ago

@Calinou This is still an issue and reproducible with latest Godot 4.0.1.stable

vickylance commented 1 year ago

Upon further testing this is what I found.

  1. Once you uninstall the game from your device it will only reinstall again, only if you change the name of the game in the Project settings. com.godotengine.test1 to com.godotengine.test2 for example
  2. This issue is reproducible even on Godot 3.5.2 stable and the above renaming only reinstalls the build
  3. As long as you dont uninstall the game, run debug works and updates the game it just doesnt open it by default and will have to close and open the game manually
vickylance commented 1 year ago

I found out that it had to do something with the name of the project from the below error I got on Godot 3 the first time I tried.

Screenshot 2023-03-26 at 10 56 07 AM
Mefistosss commented 7 months ago

Godot 4.2.1.stable have the same (realme x2 pro) solution for me: adb shell pm uninstall com.packagename