How To Fix Apk "icon?" Error During Android Studio Exporting

Discussion in 'Buildbox General Discussion' started by mioii, Apr 4, 2020.

  1. mioii

    mioii Boxer

    Joined:
    Mar 25, 2020
    Messages:
    6
    Likes Received:
    0
    Hi to all!
    Please, how i can fix the "Icon?" error that appears during the: debug, apk build and running the app inside Android Studio.

    Attached a screenshot. The same error happens also following step by step some other tutorials like:

    Thanks in advance!
     

    Attached Files:

  2. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,145
    Likes Received:
    506
    BB version?
    Android Studio version?
    How big is the icon?
    It must be at least 512x512 pixels, PNG and with a background, that is, the PNG does not have transparency, also it must be a square or with the edges at a minimum.

    BB Project Settings.png
     
  3. TheGameAppStudio

    TheGameAppStudio Serious Boxer

    Joined:
    Nov 2, 2016
    Messages:
    830
    Likes Received:
    254
    @mioii Whats the extension of your icon file? make sure they are in .png format.
     
  4. mioii

    mioii Boxer

    Joined:
    Mar 25, 2020
    Messages:
    6
    Likes Received:
    0
    Ciao to all and thanks @jcalle and @TheGameAppStudio for your reply and effort!

    @jcalle:
    BB version? --> 3.2.0
    Android Studio version? --> 3.6.2
    How big is the icon? --> I rebuilt it to 512x512px in .png without transparencies. I attach it here (just a test)
    It must be at least 512x512 pixels, PNG and with a background, that is, the PNG does not have transparency, also it must be a square or with the edges at a minimum. --> Done, tested and same result...

    @TheGameAppStudio :
    Whats the extension of your icon file? make sure they are in .png format. --> Yes, is png you can find it here attached

    Can you please help?
    Thanks in advance!
     

    Attached Files:

  5. mohamed awad

    mohamed awad Avid Boxer

    Joined:
    Mar 10, 2019
    Messages:
    164
    Likes Received:
    51
    The issue not caused of the game icon
    most of data inside res folder must be xml format but it seems it is not
    maybe it's auto changed to anther format,

    Track the file path and see what what is going on there.
    Exprted gamefolder\android\app\src\main\res
    This is an example of what you should see inside one of docs inside res
    XML Docs Format...
    asdcsac.png
     
    aminee likes this.
  6. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,145
    Likes Received:
    506
    Make a game of the examples and add 1 icon, title, name to your game and do not modify anything.

    Can you try this project?
    https://www.dropbox.com/s/9hjofsnl420ii3v/Test Alarm.bbdoc?dl=0
     
  7. mioii

    mioii Boxer

    Joined:
    Mar 25, 2020
    Messages:
    6
    Likes Received:
    0
    Thanks @jcalle ,
    already tried to do what you say whit a template and i also tried with your "Test Alarm" but the error messages are always the same.

    I attach to you a .bbdoc link to test if you can ok?

    Please share any suggestion or feedback on that and, again, thanks in advance!
     

    Attached Files:

    Last edited: Apr 16, 2020
  8. mioii

    mioii Boxer

    Joined:
    Mar 25, 2020
    Messages:
    6
    Likes Received:
    0
    Hi @mohamed awad thanks for your reply!
    i attach a screenshot, there are the same files but there's also an hidden file "Icon?", this is the file that generate issues and during the apk building is opened by the TextEdit.

    Can't understand... Other suggestions?

    Please, help :)
     

    Attached Files:

  9. mioii

    mioii Boxer

    Joined:
    Mar 25, 2020
    Messages:
    6
    Likes Received:
    0
    Hey guys,
    i tried to delete all the "Icon?" files, by some ways it generate some other errors.

    Finally deleting all the "Icon?" files inside the "android" folder and inside all the other sub-folders it works.

    Possible that this is just a OSX hidden files incompatibility?

    Anyway, now when i export the .apk file the phone says "APK NOT INSTALLED"... argh! If simulated on the phone in debug mode it works!

    Suggetions or threads about?

    Thanks a lot guys!
     

Share This Page