Unable to copy your icons
Question

Hi,

I've updated the resources file but now I can't generate android app: 

Error: Unable to copy your icons. Please check your resources path and try again.

I'm following this instructions https://success.outsystems.com/Documentation/10/Delivering_Mobile_Apps/Customize_Your_Mobile_App/Modify_the_App_Icon and it was working first time, but after updating the resources file it stopped.

MyResources.zip contains currently only one file - png icon to use as android app icon. and on Extensibility I have:

{  
    "resources" : "MyResources.zip",
        "icons": {
        "android": [{
            "resource": "applogoAndroid.png",
            "density": "ldpi"
        },
        {
            "resource": " .png",
            "density": "mdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "hdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "xhdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "xxhdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "xxxhdpi"
        }]
    },
    "preferences": {
        "global": [{
            "name": "orientation",
            "value": "portrait"
        }]
    }
}


What can be the issue?

Thank you

Mykola,


I'm noticing your second resource path is blank " .png", is that the correct path to that particular resource?


Cheers,


Joshua

Hi Joshua,

thanks for noticing - sure its not correct I've accidentally cut the file name. But on app itself it is correct t:

{  
    "resources" : "MyResourcesAndroid.zip",
        "icons": {
        "android": [{
            "resource": "applogoAndroid.png",
            "density": "ldpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "mdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "hdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "xhdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "xxhdpi"
        },
        {
            "resource": "applogoAndroid.png",
            "density": "xxxhdpi"
        }]
    },
    "preferences": {
        "global": [{
            "name": "orientation",
            "value": "portrait"
        }]
    }
}



but error is still same

Hello Nick.

Is the png file in the root of your zip (no subfolders inside the zip)? 

Thanks

Hi César.

Yes it is. As I mentioned it is the only file (no folders) included on zip. And very first time it worked ok (there were also fonts files and iOS icon) but after I removed unused files and updated archive I started to have this error.

Hello Nick.

I was able to build an app using your extensibility and a MyResources with the following:

(Zip file with only applogoAndroid.png)



Hello César,

I've added all possible icons via MyResources and app is generating properly, but this icons appear not to be used as notification icons (I have Outsystems red logo) and local notification icon and small icon (white bell). 

Where there any changes on app generator or can it be related to environment version (it wasn't upgraded to latest version yet)?

I will appreciate any help. Thank you.

Hi Mykola

I am facing same exception in the first thread,did you managed to resolve it? 

Hi Badr,

 Eventually I've solved the issue. Problem was on folder naming 

Mykola (Nick) Tkachenko wrote:

Hi Badr,

 Eventually I've solved the issue. Problem was on folder naming 

THanks Mykola


Also i solved it by writing the icon path like /resourcename/iconname


Hi, I have the same problem, what I have to do, I putted my zip "MyResources.zip" in the folder Resources from the database. Inside, I putted the same Icon but in different sizes. the names  of this icones that I putted in the zip are: 36,48,72,96,144,192. Its this the correct code? or it appears a mistake:

{  
"resources" : "MyResources.zip",
"icons": {
"android": [{
"resource": "36",
"density": "ldpi"
},
{
"resource": "48",
"density": "mdpi"
},
{
"resource": "72",
"density": "hdpi"
},
{
"resource": "96",
"density": "xhdpi"
},
{
"resource": "144",
"density": "xxhdpi"
},
{
"resource": "192",
"density": "xxxhdpi"
}]
},
"preferences": {
"global": [{
"name": "orientation",
"value": "portrait"
}]
}
}


Hi, I have the same problem, what I have to do, I putted my zip "MyResources.zip" in the folder Resources from the database. Inside, I putted the same Icon but in different sizes. the names  of this icones that I putted in the zip are: 36,48,72,96,144,192. Its this the correct code? or it appears a mistake:

{  
"resources" : "MyResources.zip",
"icons": {
"android": [{
"resource": "36",
"density": "ldpi"
},
{
"resource": "48",
"density": "mdpi"
},
{
"resource": "72",
"density": "hdpi"
},
{
"resource": "96",
"density": "xhdpi"
},
{
"resource": "144",
"density": "xxhdpi"
},
{
"resource": "192",
"density": "xxxhdpi"
}]
},
"preferences": {
"global": [{
"name": "orientation",
"value": "portrait"
}]
}
}

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.