Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

"There is a problem parsing the package"

Discussion in 'Android' started by pat_sommer, Oct 25, 2011.

  1. pat_sommer

    pat_sommer

    Joined:
    Jun 28, 2010
    Posts:
    586
    Hey,

    Im running into a problem where I am sending my friends my APK to test on their phones and receiving an error "There is a problem parsing the package"

    has anyone ran into this? if so how does one go about solving it?

    i read up on some sites and generally its when installing out of market apps, but im hesitant to upload an app that im not 100% sure will work.

    The game works fine on droidx, droid, desire. i am receiving the error on HTC incredible and a crash on incredible 2

    any input would be great! this is the sole problem of why my game is not released right now so i need to fix this asap!

    thanks!
     
    Lancelot7 likes this.
  2. bug5532

    bug5532

    Joined:
    Aug 16, 2011
    Posts:
    307
    That happens when the bluetooth send fails, basically the apk got corrupted on the way to their phone. try sending the file via a different method. That's what I found anyway...
     
  3. pat_sommer

    pat_sommer

    Joined:
    Jun 28, 2010
    Posts:
    586
    thanks for the reply! im sending it via email and it does seem to hang up and take a long time, your answer is slightly confirming that of what others say on other forums, ill try it out thanks

    still any other input would be awesome, on other forums this seems to be an issue that no one really has to straight of an answer for
     
  4. haim96

    haim96

    Joined:
    May 24, 2013
    Posts:
    107
    hi,

    did you resolve this?
    i'm having the same problem...

    tnx!
     
  5. pat_sommer

    pat_sommer

    Joined:
    Jun 28, 2010
    Posts:
    586
    Not really, It's been awhile tho, 2 years, I'm not sure if it just started working or if I had to send it a different way, it's possible I sent it in a zip and they has to install it after downloading
     
  6. Crono141

    Crono141

    Joined:
    Jun 30, 2014
    Posts:
    3
    Old thread, but its one of the top 3 on google. Thought I'd share how I fixed this. Under the build settings window, click on player settings. In "Other Settings" change your minimum API level to be lower (for example, Android 4.1 instead of 4.4), and rebuild your APK. Chances are your friends had a lower version of Android than what you were building for, and their devices didn't know how to handle the APK.
     
  7. KAYUMIY

    KAYUMIY

    Joined:
    Nov 12, 2015
    Posts:
    115

    Thank You bro. You are the best. It solved.
     
    PNUMIA-Rob and GameJob2017 like this.
  8. cheethath

    cheethath

    Joined:
    Jun 17, 2018
    Posts:
    1
    Faced this problem when my phone was 7.0 based and I had built the app to be based off 8.0
     
  9. khota_sikka

    khota_sikka

    Joined:
    Jul 26, 2014
    Posts:
    2
    Issue is still open in unity 2018.2.2f1 , no working apk be generated vr for android , In resolution settings tried Blit as Always,Auto and Never options , but still no result ( Lenovo P2 Snapdragon 640)
     
  10. arisatoyuuzan

    arisatoyuuzan

    Joined:
    Dec 11, 2018
    Posts:
    3
    Thanks so much man!
     
  11. amoraleite

    amoraleite

    Joined:
    Oct 16, 2014
    Posts:
    41
    Player settings/ down the minimum API Level works for me. Unity 2018. Thank you so much!
     
  12. shaneK001

    shaneK001

    Joined:
    Dec 15, 2012
    Posts:
    33
    Android version number caused it for me. i was trying to install 7.1 build to 6.0 Android.
     
  13. pepa22222

    pepa22222

    Joined:
    Jul 6, 2020
    Posts:
    1
    For me, it was not working, because I had android version 10 in my phone and in (Player settings/ Other settings) was set "Target API Level" as "Automatic highiest instaled" so I changed it to 'API level 30" and then during build it asked me to download some updated, so now it works for me.
     
  14. kingzustin

    kingzustin

    Joined:
    Jan 16, 2018
    Posts:
    8
    Works. Many thanks!
     
  15. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    99
    Targeting API 31 (Android 12) was giving me the "There is a problem parsing the package" installation error. Ironically, would only error on Android 12 devices, but install fine on Android 11.

    Solution: Set the target to API 30 (Android 11).
     
    suryaswapnil likes this.
  16. Bimbuh

    Bimbuh

    Joined:
    Dec 21, 2018
    Posts:
    12
    Facing the same issue here. Did you find a way out?
     
  17. Bimbuh

    Bimbuh

    Joined:
    Dec 21, 2018
    Posts:
    12
    After setting the target API Level to API 30, were you able to install your app on Android 12 devices? I'm currently facing the same issue
     
  18. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    Any problem you face while setting API 31? If you are targeting Android 12 devices, API 31 is the way to go.
     
  19. Bimbuh

    Bimbuh

    Joined:
    Dec 21, 2018
    Posts:
    12
    I followed your suggested solution (the script) all to no avail. All of my games won't install on any device running Android 12. It's really frustrating. I don't know anything else to do. I also added the exported:true stuff to the custom manifest file, still to no avail.
     
  20. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    99
    Yes, targeting API 30 allowed me to install on Android 12 successfully.

    I didn't change anything else far as I remember.

    Still puzzled as to what was broken when trying to target API 31.
     
  21. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    Well! The script adds only exported flag to root unity activity alone.
    However, the exported flag may be required for any other services/activities used by your project if they have an intent filter specified in the manifest.

    You can share me an "empty apk" or merged android manifest file(deeply burried in the gradleout build folders) to have a look.
     
  22. TwoBurrows

    TwoBurrows

    Joined:
    Jun 20, 2022
    Posts:
    1
    I made my first app today and I cannot for the life of me get it to run on my android phone, any API. I did everything suggested here: https://developers.google.com/ar/develop/unity-arf/android-12-build
    Android 11 builds but when I open it on my phone the screen is just black. API 33 builds, too, but when I try to install it on my phone it gives me an error. API 31 and 32 won't build.... I was getting so excited but now I honestly might quit, I've been trying for hours.
     
  23. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    Share an empty apk to look into or the merged manifest file.
     
  24. epernigo

    epernigo

    Joined:
    Sep 24, 2019
    Posts:
    11
    Same problem here, targeting API 30 works fine. But if we set target API 31 won't install on android 12 (works correctly on older versions), and get "There was a problem parsing the package". We tried all suggested things from here https://developers.google.com/ar/develop/unity-arf/android-12-build without success or here https://forum.unity.com/threads/rig...-30-but-is-there-target-api-level-31.1093357/ https://issuetracker.unity3d.com/is...-android-application-with-target-api-level-31. We are using Unity 2020.3.26. You can find the AndroidManifest extracted from final apk attached. Anyone can help me?
     

    Attached Files:

  25. Alex_Heizenrader

    Alex_Heizenrader

    Joined:
    May 16, 2019
    Posts:
    66
    Seeing these issues in 2020.3.27f1
     
  26. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    Please share an empty apk to have a look. The attached manifest merge log is not helpful.
     
    HAIZESASAKI likes this.
  27. epernigo

    epernigo

    Joined:
    Sep 24, 2019
    Posts:
    11
    Thank you for your response.
    After some checks we discover that some plugins, outside from user defined Unity AndroidManifest, add their own manifest tag <intent-filter> without the exported:true/false info. We need to upload that plugins:
    - move from UTNotifications to last version of MobileNotification
    - update OneSignal to last version
    Maybe others developers has to check which plugin is doing that, manifest-merger-release-report.txt could help you.
     
  28. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    Ok, Glad you figured it out.
    If you are interested, we have Notification Services feature(for iOS and Android - Unified Api covering Local and Remote Notifications) in one of our plugins. You can have a look here on whats offered.
     
    epernigo likes this.
  29. patrickmota22

    patrickmota22

    Joined:
    Jul 28, 2022
    Posts:
    1
    Thank you chris! This worked for me. I uninstalled the Android 12 API in Android Studio>SDK Manager and installed the Android 11 API, after that the build worked. Smartphone: Xiaomi Redmi Note 10S with Android 12 and MIUI 13.
     
    -chris likes this.
  30. -chris

    -chris

    Joined:
    Mar 1, 2012
    Posts:
    99
    Been a few months, but as a small update:
    • Updating to Unity 2021.3.9f1 has resolved this issue.
    • I can target API level 31 now properly, and the game installs and launches okay on Android 12 without needing to muck around with any manifest stuff.
    upload_2022-9-10_11-42-16.png
     
  31. msuyandrew

    msuyandrew

    Joined:
    Sep 15, 2018
    Posts:
    1
  32. Lancelot7

    Lancelot7

    Joined:
    Jul 6, 2019
    Posts:
    5
    I have the same problem. in this case it gave me a compilation error when building on api 33 and 32. i had to compile on api 31. but when installing on android 13 it simply gave a parse error. i tried it on other andorid versions and the apk works. I will try. I'll be back when I fix it.;)
     
  33. arsensor

    arsensor

    Joined:
    Jan 20, 2023
    Posts:
    4
  34. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,832
    We actually have the required flags (exported flags) auto added in the plugin. It would be great if you can share what parse error you have once you try to install.

    One thing top of my mind is - Makes sure you enter Play Services Application Id if you are using Game Services/Cloud Services in essential kit settings. If you don't use it, just disable those features and try making a build.
     
  35. arsensor

    arsensor

    Joined:
    Jan 20, 2023
    Posts:
    4
    Parse error: An error occurred while parsing the package.
     
  36. arsensor

    arsensor

    Joined:
    Jan 20, 2023
    Posts:
    4
    I solved, I change some points in essential kit setting and it works
     
  37. arsensor

    arsensor

    Joined:
    Jan 20, 2023
    Posts:
    4
    I don't want to litter the thread, but I also can't thank you enough. Wonderful Asset thank you!
     
    Voxel-Busters likes this.