#Invalid APK

1 messages · Page 1 of 1 (latest)

ionic atlas
#

Hello. When your plugin is installed, I have a problem with a broken APK file, as a result of which I cannot install it. Without your plugin, the application is installed correctly. There are no problems with building the application in both cases, the problem is only in the installation.

I've tried a bunch of ways from the internet. For example, a custom manifest and android-exported. Nothing is working. Please try to help me.

quaint pasture
#

Please share the error it shows when you try to install from adb command. It helps in identifying what could be the issue.
Btw, in-case if you haven't entered Play Services Application Id in Game Services and enabled GameServices/CloudServices feature, you may have this issue - One of the reasons.

ionic atlas
# quaint pasture Please share the error it shows when you try to install from adb command. It hel...

PS C:\Program Files\Unity\Hub\Editor\2022.3.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools> .\adb install -r "D:\Unity\Projects\GORYNED\TodaysReasonToDrink\Builds\Android\2024-03-25.apk"
Performing Streamed Install
adb: failed to install D:\Unity\Projects\GORYNED\TodaysReasonToDrink\Builds\Android\2024-03-25.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk]
PS C:\Program Files\Unity\Hub\Editor\2022.3.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools>

#

When I try to install apk file on the phone, it’s error message “There was a problem parsing the package”

#

As I mentioned above, without plugin everything is okay

quaint pasture
#

I understand. The above log is not complete/doesn't state the actual error.
Can you please do one thing?
Make an empty apk (no need to add any scenes in build settings) and pass me the apk.

#

I assume you already entered applicationId in game services if game services or cloud services feature is enabled.

ionic atlas
#

Ok, I will do it now

ionic atlas
#

It's a strange situation, but now everything is fine. I installed the plugin from scratch, and included only the following components.

#

If there are problems after turning on other components, I will write here. Thank you.

#

@quaint pasture

quaint pasture
#

Ok. The reason why you had earlier issue was because you haven't entered a required data component (this value is added to the manifest file). And if the data is empty, it makes the manifest in an invalid state leading to the failure of apk installation.

#

Thanks for double checking and updating 👍

quaint pasture
#

If you like our plugin, please do rate us on asset store. It helps us a lot 🙂
@ionic atlas