![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ojn17041991 |
I was working on a mobile game some months ago and deploying regularly through Godot. No problems. Recently I was trying to upload the .APK and distribute it, so I uninstalled the app from my phone and tried to install via the .APK, but this didn’t work. I went back to deploying directly through Godot so I could see the error(s) in the console:
> adb: failed to install
> C:\Users\Oliver\AppData\Local\Temp/Godot/tmpexport.apk: Failure
> [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates
> from /data/app/x.tmp/base.apk: Attempt to get length of
> null array] Starting: Intent { act=android.intent.action.MAIN
> cmp=com.companytest.androiddeploymenttest123/com.godot.game.GodotApp }
> Error type 3 Error: Activity class
> {com.companytest.androiddeploymenttest123/com.godot.game.GodotApp}
> does not exist.
I’ve read through this and it seems to me that Godot is searching my phone to find the base version of the application, then updating it before deploying. It can’t find the base version, because I already uninstalled it, but I can’t install it again, because it can’t find the base version. Classic catch-22 situation.
My question is this- can I force Godot to do a “fresh” deployment/install? I thought I’d be able to do this by updating the package name to something unique, but that made no difference. I am using the debug.keystore in multiple (working) applications, so I don’t think there is a conflict there. The project has access to the ADB, JarSigner & KeyStore (like I said this was working before, and works for other applications that I didn’t uninstall).
I made another app and went through the same process and I can confirm that this error definitely starts happening when I uninstall the application from the Android device.
I suspect there are some files hanging around somewhere that tells Godot that the application has already been deployed to this device, but it’s just a guess and even if it’s correct I don’t know where those files are.
Pretty stumped on this one, so any help is appreciated. Thanks.