APK invalid on Smartphone

Godot Version

4.2.2

Question

Exporting Godot works great, but then the phone says: The package is invalid. I have a Google Pixel 7a with Android 14 and I also downloaded the package from Android Studio. Can someone help me?

Edit:
I can now install my game on my phone, I thought I only needed the signature if I wanted to publish it on Google Play, but well now I know better.
Now I have the problem that my picture on my phone is black when I run my game. And now I’m just at a loss.
I recreated dodge the creeps from the documentation and everything works perfectly there.

Have you tried running the APK through the APK checker in Android Studio, and checked the signatures? Logcat on the phone might also contain details.

1 Like

Thank you for these tips, I didn’t know the options.
I have my game in Android Studio.
And with Run running and with my phone it is connected via USB debugging. It runs on the cell phone and you listen to music, but only has a black screen, nothing more happens.
I’m including a screenshot and the logcat here, maybe someone can figure out where the problem is.

--------- beginning of main
2024-05-26 13:21:35.546 16786-16786 er.einen.Moment         com.example.Pong.fuer.einen.Moment   I  Using CollectorTypeCMC GC.
2024-05-26 13:21:35.552 16786-16786 er.einen.Moment         com.example.Pong.fuer.einen.Moment   E  Not starting debugger since process cannot load the jdwp agent.
2024-05-26 13:21:35.628 16786-16786 ActivityThread          com.example.Pong.fuer.einen.Moment   I  Relaunch all activities: onCoreSettingsChange
2024-05-26 13:21:35.628 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 171979766; UID 10240; state: ENABLED
2024-05-26 13:21:35.628 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 242716250; UID 10240; state: ENABLED
2024-05-26 13:21:35.633 16786-16786 nativeloader            com.example.Pong.fuer.einen.Moment   D  Configuring clns-4 for other apk /data/app/~~VMiL232QH9ih0waXjf8S0w==/com.example.Pong.fuer.einen.Moment--P1xuqCQs8CqGF_fafeWgw==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~VMiL232QH9ih0waXjf8S0w==/com.example.Pong.fuer.einen.Moment--P1xuqCQs8CqGF_fafeWgw==/lib/arm64:/data/app/~~VMiL232QH9ih0waXjf8S0w==/com.example.Pong.fuer.einen.Moment--P1xuqCQs8CqGF_fafeWgw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.example.Pong.fuer.einen.Moment
2024-05-26 13:21:35.644 16786-16786 GraphicsEnvironment     com.example.Pong.fuer.einen.Moment   V  Currently set values for:
2024-05-26 13:21:35.644 16786-16786 GraphicsEnvironment     com.example.Pong.fuer.einen.Moment   V    angle_gl_driver_selection_pkgs=[]
2024-05-26 13:21:35.644 16786-16786 GraphicsEnvironment     com.example.Pong.fuer.einen.Moment   V    angle_gl_driver_selection_values=[]
2024-05-26 13:21:35.644 16786-16786 GraphicsEnvironment     com.example.Pong.fuer.einen.Moment   V  Global.Settings values are invalid: number of packages: 0, number of values: 0
2024-05-26 13:21:35.644 16786-16786 GraphicsEnvironment     com.example.Pong.fuer.einen.Moment   V  Neither updatable production driver nor prerelease driver is supported.
2024-05-26 13:21:35.681 16786-16810 vulkan                  com.example.Pong.fuer.einen.Moment   D  searching for layers in '/data/app/~~VMiL232QH9ih0waXjf8S0w==/com.example.Pong.fuer.einen.Moment--P1xuqCQs8CqGF_fafeWgw==/lib/arm64'
2024-05-26 13:21:35.681 16786-16810 vulkan                  com.example.Pong.fuer.einen.Moment   D  searching for layers in '/data/app/~~VMiL232QH9ih0waXjf8S0w==/com.example.Pong.fuer.einen.Moment--P1xuqCQs8CqGF_fafeWgw==/base.apk!/lib/arm64-v8a'
2024-05-26 13:21:35.691 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 309578419; UID 10240; state: DISABLED
2024-05-26 13:21:35.695 16786-16786 er.einen.Moment         com.example.Pong.fuer.einen.Moment   E  Invalid resource ID 0x00000000.
2024-05-26 13:21:35.696 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 279646685; UID 10240; state: DISABLED
2024-05-26 13:21:35.697 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 232195501; UID 10240; state: DISABLED
2024-05-26 13:21:35.698 16786-16786 GodotActivity           com.example.Pong.fuer.einen.Moment   V  Creating new Godot fragment instance.
2024-05-26 13:21:35.727 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 210923482; UID 10240; state: ENABLED
2024-05-26 13:21:35.727 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 63938206; UID 10240; state: DISABLED
2024-05-26 13:21:35.746 16786-16786 Sensors                 com.example.Pong.fuer.einen.Moment   W  Cannot get virtualdevice_native service
2024-05-26 13:21:35.790 16786-16786 Compatibil...geReporter com.example.Pong.fuer.einen.Moment   D  Compat change id reported: 237531167; UID 10240; state: DISABLED
2024-05-26 13:21:35.814 16786-16833 godot                   com.example.Pong.fuer.einen.Moment   I  Godot Engine v4.2.2.stable.official.15073afe3 - https://godotengine.org
2024-05-26 13:21:35.834 16786-16833 godot                   com.example.Pong.fuer.einen.Moment   I  Vulkan API 1.3.260 - Forward Mobile - Using Vulkan Device #0: ARM - Mali-G710
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  ERROR: Format allocation info not found for format: 3b
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  ERROR: Format allocation info not found for format: 0
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  Invalid base format! req_base_format = (<unrecognized format> 0x0), req_format = (<unrecognized format> 0x3b), type = 0x0
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  ERROR: Unrecognized and/or unsupported format (<unrecognized format> 0x3b) and usage (CPU_READ_NEVER|CPU_WRITE_NEVER|GPU_TEXTURE|GPU_RENDER_TARGET|COMPOSER_OVERLAY 0xb00)
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  ERROR: Format allocation info not found for format: 3b
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  ERROR: Format allocation info not found for format: 0
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  Invalid base format! req_base_format = (<unrecognized format> 0x0), req_format = (<unrecognized format> 0x3b), type = 0x0
2024-05-26 13:21:35.837 16786-16833 gralloc4                com.example.Pong.fuer.einen.Moment   E  ERROR: Unrecognized and/or unsupported format (<unrecognized format> 0x3b) and usage (CPU_READ_NEVER|CPU_WRITE_NEVER|GPU_TEXTURE|GPU_RENDER_TARGET|COMPOSER_OVERLAY 0xb00)
2024-05-26 13:21:37.362 16786-16833 godot                   com.example.Pong.fuer.einen.Moment   I   
2024-05-26 13:21:37.363 16786-16833 er.einen.Moment         com.example.Pong.fuer.einen.Moment   D  PlayerBase::PlayerBase()
2024-05-26 13:21:37.366 16786-16833 er.einen.Moment         com.example.Pong.fuer.einen.Moment   D  TrackPlayerBase::TrackPlayerBase()
2024-05-26 13:21:37.366 16786-16833 libOpenSLES             com.example.Pong.fuer.einen.Moment   I  Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
2024-05-26 13:21:38.043 16786-16833 Godot                   com.example.Pong.fuer.einen.Moment   D  OnGodotSetupCompleted
2024-05-26 13:21:38.061 16786-16833 Godot                   com.example.Pong.fuer.einen.Moment   D  OnGodotMainLoopStarted

This could potentially be a Vulkan problem. The Pixel 7a should have an okish Vulkan (I have a Pixel 7), but Godot 4.2.2 also still has plenty of Vulkan bugs. What happens if you switch the renderer to Compatibility? Also Godot 4.3 has fixed some Vulkan issues, you can also try that.

1 Like

Okay, how can I change the Vulkan for compatibility? Or where can you find the Godot 4.3? I couldn’t find it on any platform. Is it perhaps regionally dependent when updates come out?
Logcat showed me a lot of errors in the area of gralloc4, but what is that? In the Vulkan area I am only shown 2 lines:
Searching for layers in ´data/app/´ and so on

Edit:
You were right about the Vulkan, I found out what you meant and changed it to compatibility, previously it was on mobile.
So the game is now running on my phone.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.