Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] App force closes on mobile when downloaded from PlayStore #410

Closed
jochebedtjq opened this issue Jan 30, 2019 · 15 comments
Closed
Assignees
Labels
Android android issues

Comments

@jochebedtjq
Copy link

Specifications
OS Version: [FILL IN]
Device Manufacturer: [FILL IN]

Stickers

  • [YES] My stickers do comply with the sticker requirements (512x512 and < 100 KB)
  • [YES] My tray icon does comply with the requirements (96x96 and < 50 KB)
  • [YES] I am using WebP images for stickers.
  • [YES] I am using PNG images for stickers.

Problem Description
App works perfectly well with emulator and also on mobile via USB. But when uploaded onto Google PlayStore and downloaded from PlayStore, the app kept shutting down. Can't even open the app! It force closes.

Reproduction Steps
Only added the sticker images as per the README file and changed the IdApplication.

Head of Commit

Links
https://play.google.com/store/apps/details?id=angkukuehgirl.stickers.app

@jochebedtjq jochebedtjq added the Android android issues label Jan 30, 2019
@jochebedtjq
Copy link
Author

I am using WebP images for stickers, and .png for tray icons.

@jochebedtjq
Copy link
Author

jochebedtjq commented Jan 30, 2019

Published the app on Playstore using Id=com.akkg.stickerapp (internal test), and this is my .json file:

{
  "android_play_store_link": "https://play.google.com/store/apps/details?id=com.akkg.stickerapp",
  "ios_app_store_link": "",
  "sticker_packs": [
    {
      "identifier": "1",
      "name": "Ang Ku Kueh Girl Stickers",
      "publisher": "Ang Ku Kueh Girl",
      "tray_image_file": "tray_AKKG.png",
      "publisher_email":"",
      "publisher_website": "",
      "privacy_policy_website": "",
      "license_agreement_website": "",
      "stickers": [
        {
          "image_file": "1_akkgsticker.webp"
        },
        {
          "image_file": "2_akkgsticker.webp"
        },
        {
          "image_file": "3_akkgsticker.webp"
        },
        {
          "image_file": "4_akkgsticker.webp"
        },
        {
          "image_file": "5_akkgsticker.webp"
        },
        {
          "image_file": "6_akkgsticker.webp"
        },
        {
          "image_file": "7_akkgsticker.webp"
        },
        {
          "image_file": "8_akkgsticker.webp"
        },
        {
          "image_file": "9_akkgsticker.webp"
        },
        {
          "image_file": "10_akkgsticker.webp"
        },
        {
          "image_file": "11_akkgsticker.webp"
        },
        {
          "image_file": "12_akkgsticker.webp"
        },
        {
          "image_file": "13_akkgsticker.webp"
        },
        {
          "image_file": "14_akkgsticker.webp"
        },
        {
          "image_file": "15_akkgsticker.webp"
        },
        {
          "image_file": "16_akkgsticker.webp"
        },
        {
          "image_file": "17_akkgsticker.webp"
        },
        {
          "image_file": "18_akkgsticker.webp"
        },
        {
          "image_file": "19_akkgsticker.webp"
        },
        {
          "image_file": "20_akkgsticker.webp"
        },
        {
          "image_file": "21_akkgsticker.webp"
        },
        {
          "image_file": "22_akkgsticker.webp"
        },
        {
          "image_file": "23_akkgsticker.webp"
        },
        {
          "image_file": "24_akkgsticker.webp"
        },
        {
          "image_file": "25_akkgsticker.webp"
        },
        {
          "image_file": "26_akkgsticker.webp"
        },
        {
          "image_file": "27_akkgsticker.webp"
        },
        {
          "image_file": "28_akkgsticker.webp"
        },
        {
          "image_file": "29_akkgsticker.webp"
        },
        {
          "image_file": "30_akkgsticker.webp"
        }
      ]
    }
  ]
}

@jochebedtjq
Copy link
Author

Wanting to trace the exact problem, I've used the original files from the repo and only changed the ApplicationID. (No change in files or other details.) Yet it still crashes every time I open the app on mobile. Any advice??

What I did:

  • downloaded repo for android
  • opened on android studio
  • edited appID
  • generated signed bundle
  • upload to play store as internal test
  • download app using mobile phone (huawei)
  • open app
  • app crashes

@jochebedtjq
Copy link
Author

I'm currently using aab to upload:

  • build > generate signed bundle > aab > (create new keystore path)

When I try to use apk: generate signed bundle > APK, uploading the apk file (release version) onto playstore gives the error "Upload failed
You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures"

Sorry I'm not good at codes, how do i get the JAR signatures?

@simonzhexu
Copy link
Contributor

I will take a look!

@rebelholic
Copy link

rebelholic commented Feb 1, 2019

Maybe its same issue with this link

@simonzhexu please fix it now

@alexbertis
Copy link

When I try to use apk: generate signed bundle > APK, uploading the apk file (release version) onto playstore gives the error "Upload failed
You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures"

Sorry I'm not good at codes, how do i get the JAR signatures?

The only thing that has worked for me until now is delete the build folder under the app module, then Generate Signed APK (NOT App Bundle) and it seems to work.
When using App Bundle users can't open the app and the error Google Play displays you is gone after you do what I just said.

Anyways, it's a mess and I think the WhatsApp devs responsible for this need to fix this ASAP, a workaround like mine should NEVER be necessary for production apps.

@MarvinJWendt
Copy link
Collaborator

I am pretty sure that @simonzhexu is working on this. Please be patient until a fix is released.

@simonzhexu
Copy link
Contributor

Sorry, guys, this turns out to be a problem with fresco, where app bundle is not well supported. This commit fixes it: 00c372e
The problem was that app bundle builds multiple dexes, but Fresco was only looking at one to find the so file. There were no problems with using apk to send to play store.

@matifali
Copy link

Is there a fix available yet? Or we have to upload the apk instead of .aab app bundle?

@alexbertis
Copy link

@matifali This was already fixed more than a month ago (by upgrading Fresco).

@matifali
Copy link

Yes. I found the solution and got it fixed. Thank you all for help.

@hardapps1692
Copy link

Yes. I found the solution and got it fixed. Thank you all for help.

Please share the solution because I am facing this issue in my all sticker apps. Please help me out.

@alexbertis
Copy link

@hardapps1692 check out my comment. Just update the Fresco dependency.

@hardapps1692
Copy link

@hardapps1692 check out my comment. Just update the Fresco dependency.

Where is your updated Fresco dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android android issues
Projects
None yet
Development

No branches or pull requests

7 participants