App Crashing On Android Lower Than 5.0 (lollipop) ???

Discussion in 'Technical Discussion' started by Jaky1, Sep 10, 2016.

  1. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    Hello buildboxers,

    I have come p with a problem and I have tried several things it is not working..

    When I export my game to APK its target API Version is 23 (Android Marshmallow).

    It runs fine on my S5 Android Lollipop but in Android KitKat and lower it crashes after the Start Logo Screen.

    Can someone help me with a solution.

    I have done everything downloaded SDK's set the MinSdk version etc.

    Thanks!
     
  2. jigglybean

    jigglybean Avid Boxer

    Joined:
    Nov 3, 2015
    Messages:
    270
    Likes Received:
    125
    You need to download the apis for the versions you want to support. So down to 4.4 is probably the lowest today - depending on where in the world you are selling your app etc.
     
  3. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @jigglybean

    Thanks, But I said in my post that I have downloaded all API's that I want it to run on but still doesn't work.????
     
  4. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,196
    Likes Received:
    543
    What is the phone where it fails?
    How many Atlasses has your game?
    How big is your game (Mb)?
     
  5. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @jcalle

    I have tried it on 3 different mobiles and it crashes so it is not about phone I think its about the API.
    My Game has 18 atlases ( Another thing, First when I was starting my game I added some graphics then further on I changed and replaced many graphics, but there are Atlases of that old graphics and many of them are repeated, I dont know how to get rid of them, If I delete them will this cause some problem in the app?)

    My game is 28.3 MB.

    Thanks!
     
  6. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @jcalle

    The games runs fine on my Galaxy S5, android lollipop and S7 Marshmallow..
    But on lower kikat and jellybean I tried it crashes.:(
     
  7. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,196
    Likes Received:
    543
    Reduce the number of Atlasses, my recommendation is to be 2 or 3 maximum.
     
    Jaky1 likes this.
  8. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @jcalle

    How Can I do that, it is produced by buildbox when expoted, moreover there is no library or something that I can remove the images from, the older ones.???
     
  9. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,196
    Likes Received:
    543
    You have to go to Tools/Remove unused Objects and image, then go to View, Atlases, Optimize and Rebuild
     
    Jaky1 likes this.
  10. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @jcalle

    Thank you so much. It worked like a charm.
     

Share This Page