Problem publishing the app in android
Question
Application Type
Mobile

Hi, It appears this error when I click generate, can someone tell me what I have to do to publish it?

mvp_badge
MVP

Hi Gerard,

As the error suggest z you need to check the mobile apps log to see more details. In the log search for [ERROR] for the error that occurred during the build process.

Regards,

Daniel

It appears this.

Captura.PNG

Hi Gerard,

It looks like that in your Extensibility Configuration there is a icon defined that does not match the needed size. If you do not know how to get to the extensibility configuration, you can check it in the screenshot below (Click on the application and in the settings you will find it). 

After that you have to download the zip and check the sizes that are also provided in the link that Daniel has posted earlier (you can also check screenshot below for the Android icons since it looks like you are only configuring a Android application). Change the incorrect icon to the correct size and I think the problem will be resolved.

Regards,

Bart

Hi, I created a zip folder with my icon app with all the different sizes. Then I uploaded this folder in resources. Then I entered into extensibility configuration and I write it this It's fine?:

{

"resource" : "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 Gerard,

The configuration seems wrong to me. In the configuration you define the images for each density. You did only set the number of the resource but you have to set the actual image with the extension. After that you have to check if every image has the right dimensions, so the mdpi image for example needs to be 48x48 and so on.

For example:

"resource": "<nameoftheimage>.<extension>",
"density": "mdpi"

Good luck,

Bart

Hi I changed like this (but also error), I attached my zip folder here:

{

"resource" : "MyResources.zip",

"icons": {

"android": [{

"resource": "logo36.png",

"density": "ldpi"

},

{

"resource": "logo48.png",

"density": "mdpi"

},

{

"resource": "logo72.png",

"density": "hdpi"

},

{

"resource": "logo96.png",

"density": "xhdpi"

},

{

"resource": "logo144.png",

"density": "xxhdpi"

},

{

"resource": "logo192.png",

"density": "xxxhdpi"

}]

},

"preferences": {

"global": [{

"name": "orientation",

"value": "portrait"

}]

}

}

MyResources.zip

Moreover, how your code finishes? like this?

}]

},

"preferences": {

"global": [{

"name": "orientation",

"value": "portrait"

}]

}


}


Hi Gerard,

Your images look to seem correct.

Below you can see one of my extensibility configurations (the android part at the bottom is for push notifications so you do not need to paste that into yours). 

Also what you can do to test is to remove everything in the extensibility configuration and then try to generate the Android application. To see if the error is in your extensibility configuration or coming from something else.

{

    "resource": "logos.zip",

    "icons": {

        "android": [{

            "resource": "androiddevelopment36.png",

            "density": "ldpi"

        },

        {

            "resource": "androiddevelopment48.png",

            "density": "mdpi"

        },

        {

            "resource": "androiddevelopment72.png",

            "density": "hdpi"

        },

        {

            "resource": "androiddevelopment96.png",

            "density": "xhdpi"

        },

        {

            "resource": "androiddevelopment144.png",

            "density": "xxhdpi"

        },

        {

            "resource": "androiddevelopment192.png",

            "density": "xxxhdpi"

        }]

    },

        "preferences": {

        "android": [

            {

                "name": "AndroidLaunchMode",

                "value": "singleTask"

            }

        ]

    }   

}

Like this is correct my code?

{

"resource" : "MyResources.zip",

"icons": {

"android": [{

"resource": "logo36.png",

"density": "ldpi"

},

{

"resource": "logo48.png",

"density": "mdpi"

},

{

"resource": "logo72.png",

"density": "hdpi"

},

{

"resource": "logo96.png",

"density": "xhdpi"

},

{

"resource": "logo144.png",

"density": "xxhdpi"

},

{

"resource": "logo192.png",

"density": "xxxhdpi"

}]

},

"preferences": {

"global": [{

"name": "orientation",

"value": "portrait"

}]

}

}

Hi Bart, I removed everything in the extensibility configuration and also invalid application icon size. What can I do?

Hi Gerard,

So the problem is not in the extensibility configuration. Are you referencing other modules in your application? Could be that one of those modules is causing the problem. Hard to tell, because the error does not say anything about it.

Regards,

Bart

Do you have any dependencies in the application?

Could be that the problem exists in one of your dependencies.

Hi Gerard,

Most of the dependencies you are using are from OutSystems. StarRating and Locations seems to be a custom modules as I do not see them in the forge. Could you check the extensibility configuration of that components? Maybe there is something wrong there.

Good luck,

Bart

Hi Bart the empty configurarion of the two of them are empty. There is nothing. Where is the problem then?

Hi Gerard,

Without seeing the .oml I am afraid that I cannot help you any further. Is there any chance you could share the .oml so I can take a look?

Best,

Bart

yes can you send me your mail? I don't want share it here

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