Can't build for Android -- Error: Get plugin failed. Plugin: CoronaProvider.native.popup.activity

I’ve been trying to build for Android but keep getting a build failure:

A device build error occurred on the server. Error: Get plugin failed. Plugin: CoronaProvider.native.popup.activity Publisher: com.coronalabs User Account: \*\*\*\*\*\*\*\*@gmail.com BuildID: 59efdadacfac1 Error code: 5

I tried both the latest daily build and build 2017.3068.

iOS builds seem to work fine. I’m building on a mac with Sierra 10.12.6 installed.

I just experienced the same thing (but on 2017.3158) and came here looking for help.  Hope someone knows how to fix.

So the issue is CoronaProvider.native.popup.activity is an iOS only plugin according to the docs:

https://docs.coronalabs.com/plugin/CoronaProvider_native_popup_activity/index.html

I added supportedPlatforms = { iphone=true } to the entry in build.settings and the build ran without error.

I used to be able to build just fine without needing that line so I assume something has changed server side? It would be nice if Corona staff could weigh in on this.

Adding the supportedPlatforms line is the appropriate fix. Nothing has changed on the backend with this.  I can’t explain why it worked before without it.

Rob

HI Rob, 

Getting this error message for one signal plugin, when I remove it and replace it with google play plugin, it’s working. I just followed the “require” coding on main.lua as per documentation: the plugin is already activated on my account. this is my settings.lua

settings = { plugins = { ["plugin.OneSignal"] = { publisherId = "com.onesignal", supportedPlatforms = { android=true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, } orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", }, }, }

 ERROR: Runtime error 18:18:36.230 ?:0: attempt to call a nil value 18:18:36.230 stack traceback: 18:18:36.230 ?: in function 'require'

function DidReceiveRemoteNotification(message, additionalData, isActive) if (additionalData) then if (additionalData.discount) then native.showAlert( "Discount!", message, { "OK" } ) -- Take user to your app store elseif (additionalData.actionSelected) then -- Interactive notification button pressed native.showAlert("Button Pressed!", "ButtonID:" .. additionalData.actionSelected, { "OK"} ) end else native.showAlert("OneSignal Message", message, { "OK" } ) end end local OneSignal = require("plugin.OneSignal") -- Uncomment SetLogLevel to debug issues. -- OneSignal.SetLogLevel(4, 4) OneSignal.Init("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "############", DidReceiveRemoteNotification)

@rhaineyensid What version of Corona are you using?

This code:

 ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, },

absolutly should be removed from build.settings. This is a very, very old and broken plugin and no modern plugin depends on it any more.

Rob

I just experienced the same thing (but on 2017.3158) and came here looking for help.  Hope someone knows how to fix.

So the issue is CoronaProvider.native.popup.activity is an iOS only plugin according to the docs:

https://docs.coronalabs.com/plugin/CoronaProvider_native_popup_activity/index.html

I added supportedPlatforms = { iphone=true } to the entry in build.settings and the build ran without error.

I used to be able to build just fine without needing that line so I assume something has changed server side? It would be nice if Corona staff could weigh in on this.

Adding the supportedPlatforms line is the appropriate fix. Nothing has changed on the backend with this.  I can’t explain why it worked before without it.

Rob

HI Rob, 

Getting this error message for one signal plugin, when I remove it and replace it with google play plugin, it’s working. I just followed the “require” coding on main.lua as per documentation: the plugin is already activated on my account. this is my settings.lua

settings = { plugins = { ["plugin.OneSignal"] = { publisherId = "com.onesignal", supportedPlatforms = { android=true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, } orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", }, }, }

 ERROR: Runtime error 18:18:36.230 ?:0: attempt to call a nil value 18:18:36.230 stack traceback: 18:18:36.230 ?: in function 'require'

function DidReceiveRemoteNotification(message, additionalData, isActive) if (additionalData) then if (additionalData.discount) then native.showAlert( "Discount!", message, { "OK" } ) -- Take user to your app store elseif (additionalData.actionSelected) then -- Interactive notification button pressed native.showAlert("Button Pressed!", "ButtonID:" .. additionalData.actionSelected, { "OK"} ) end else native.showAlert("OneSignal Message", message, { "OK" } ) end end local OneSignal = require("plugin.OneSignal") -- Uncomment SetLogLevel to debug issues. -- OneSignal.SetLogLevel(4, 4) OneSignal.Init("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "############", DidReceiveRemoteNotification)

@rhaineyensid What version of Corona are you using?

This code:

 ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true }, },

absolutly should be removed from build.settings. This is a very, very old and broken plugin and no modern plugin depends on it any more.

Rob