Plugins need to be downloaded - Can't build

Hey everybody ! When I try to build a Win32 Desktop app, I’ve got this message :

You cannot do a build until all of the plugins for this Corona project have been successfully downloaded.

Would you like to try downloading your project’s plugins again?

If I click on “Yes”, the simulator simply relaunches with nothing more.

In my build.settings file, if I remove all the plugin calls, I can compile my build.

Is there any way to deactivate plugin calls when I’m trying to build for Windows ? I’ve tried to add the supported platforms line, to include the plugins only on iPhone and Android, but it doesn’t seem to work.

["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, windows=false} }, ["facebook"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } },

Thank you in advance !

Try setting “win32-sim” to false for the plugins that aren’t supported in the Windows simulator/desktop. Right now there are no differentiations between win32 simulator or win32 device plugins.

Make sure you correctly handle these plugins in your code. If a plugin isn’t supported by the target platform, you need to detect this and work around it.

We have some things in the works to make this slightly easier on you.

I’ve added this :

supportedPlatforms = { iphone=true, android=true, win32-sim=false}

It works : I can build my app for Windows. But… adding this also seems to break the app orientation… Instead of simply being in a landscape mode, it goes in Landscape mode (for one second maybe), and then automatically goes into Portrait mode.

Obivously, I’m gonna keep digging, since it might be related to something else completely different, but if you have any idea about it… 

Thanks !

What are your supported orientations? Did you set a default window width/height under the “window” settings?

Damn, you’re right ! :slight_smile:

I did set a default window width/height under the “window” settings, but I made some changes after and had to redo the whole thing… That’s the moment I totally forgot to set the right size again !

Thank you for your time ! :slight_smile:

Hi,

Should we be using ‘windows’ or ‘win32-sim’?

i.e should we be using 

supportedPlatforms = { iphone=true, android=true, windows=false}

OR 

supportedPlatforms = { iphone=true, android=true, win32-sim=false}

I have 2 plugins in my build.settings but I am still getting an error message

If I use the following :-

 plugins = { ["plugin.GameThrivePushNotifications"] = { publisherId = "com.gamethrive", supportedPlatforms = { android=true, ["android-kindle"]=true, win32-sim=false } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true, win32-sim=false } }, },

 then I get a console error of:-

‘}’ expected near ‘=’

and if I use ‘windows=false’ then I get dialog :-

'You cannot do a build until all of the plugins for this Corona project have been successfully downloaded etc etc.

The only solution that seems to work for me is to remove the reference to the plugins completely out of build.settings.

I would rather not remove from build.settings as then I would have to manage 2 different settings, one for normal build and another for the Windows Desktop build.

Hope someone can help.

@anil8 : I feel bad because… I was wrong again, I didn’t pay attention earlier : I forgot to uncomment my plugins settings.

I thought my app was working but it’s not. I still can’t compile my game for Windows, even by adding “win32-sim=false”. I’ve got the exact same error as you.

@evanspro,

If you remove the plugins section from the build.settings then you will definately be able to build but it does mean that you will need to have 2 versions of the build.settings files.

Or you could rename the plugins section to say something like zplugins like so:

 zplugins = { ["plugin.GameThrivePushNotifications"] = { publisherId = "com.gamethrive", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true } }, },

The above will also let you build a Windows Desktop build but again you will either have to have 2 versions of the build.settings or keep changing the ‘zplugins’ back to ‘plugins’ depending on what you are building.

Ah, right. Lua doesn’t like dashes in table key names specified in that format.

Can you give this a try for us?

[lua]        [“plugin.google.play.services”] =
        {
                publisherId = “com.coronalabs”,
                supportedPlatforms = { android = true, [“win32-sim”] = false }
        },[/lua]

Michael,

Made the change but still getting the error dialog :-

 ‘You cannot do a build until all of the plugins for this Corona project have been successfully downloaded. Would you like to try downloading your project’s plugins again?’

Hello Guys !

Great work on the windows beta !

Unfortunatly I experience the same issue, having the facebook plugin on my apps.

Once commented though it works perfectly !

So for now the only work around is commenting the plugin part when building for windows.

Thanks for the help !

Try setting “win32-sim” to false for the plugins that aren’t supported in the Windows simulator/desktop. Right now there are no differentiations between win32 simulator or win32 device plugins.

Make sure you correctly handle these plugins in your code. If a plugin isn’t supported by the target platform, you need to detect this and work around it.

We have some things in the works to make this slightly easier on you.

I’ve added this :

supportedPlatforms = { iphone=true, android=true, win32-sim=false}

It works : I can build my app for Windows. But… adding this also seems to break the app orientation… Instead of simply being in a landscape mode, it goes in Landscape mode (for one second maybe), and then automatically goes into Portrait mode.

Obivously, I’m gonna keep digging, since it might be related to something else completely different, but if you have any idea about it… 

Thanks !

What are your supported orientations? Did you set a default window width/height under the “window” settings?

Damn, you’re right ! :slight_smile:

I did set a default window width/height under the “window” settings, but I made some changes after and had to redo the whole thing… That’s the moment I totally forgot to set the right size again !

Thank you for your time ! :slight_smile:

Hi,

Should we be using ‘windows’ or ‘win32-sim’?

i.e should we be using 

supportedPlatforms = { iphone=true, android=true, windows=false}

OR 

supportedPlatforms = { iphone=true, android=true, win32-sim=false}

I have 2 plugins in my build.settings but I am still getting an error message

If I use the following :-

 plugins = { ["plugin.GameThrivePushNotifications"] = { publisherId = "com.gamethrive", supportedPlatforms = { android=true, ["android-kindle"]=true, win32-sim=false } }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true, win32-sim=false } }, },

 then I get a console error of:-

‘}’ expected near ‘=’

and if I use ‘windows=false’ then I get dialog :-

'You cannot do a build until all of the plugins for this Corona project have been successfully downloaded etc etc.

The only solution that seems to work for me is to remove the reference to the plugins completely out of build.settings.

I would rather not remove from build.settings as then I would have to manage 2 different settings, one for normal build and another for the Windows Desktop build.

Hope someone can help.

@anil8 : I feel bad because… I was wrong again, I didn’t pay attention earlier : I forgot to uncomment my plugins settings.

I thought my app was working but it’s not. I still can’t compile my game for Windows, even by adding “win32-sim=false”. I’ve got the exact same error as you.

@evanspro,

If you remove the plugins section from the build.settings then you will definately be able to build but it does mean that you will need to have 2 versions of the build.settings files.

Or you could rename the plugins section to say something like zplugins like so:

 zplugins = { ["plugin.GameThrivePushNotifications"] = { publisherId = "com.gamethrive", }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true } }, },

The above will also let you build a Windows Desktop build but again you will either have to have 2 versions of the build.settings or keep changing the ‘zplugins’ back to ‘plugins’ depending on what you are building.

Ah, right. Lua doesn’t like dashes in table key names specified in that format.

Can you give this a try for us?

[lua]        [“plugin.google.play.services”] =
        {
                publisherId = “com.coronalabs”,
                supportedPlatforms = { android = true, [“win32-sim”] = false }
        },[/lua]

Michael,

Made the change but still getting the error dialog :-

 ‘You cannot do a build until all of the plugins for this Corona project have been successfully downloaded. Would you like to try downloading your project’s plugins again?’