Software Archive
Read-only legacy content
17061 Discussions

plugin install failed construct 2

Alon_I_
Beginner
2,684 Views

hello

I am building an app and when i build it i get plugin install failed for several apps. This app have exactly the same plugins as my other apps but from some reason it didnt work

 

Error: Plugin "https://github.com/AppsFlyerSDK/PhoneGap#4b1e4449c596924f1b002651ef934fbe6c6e1c3c" failed to install.
Error: Plugin "https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.iap#4306f62a0d9683eca8d8be135533dd92f6a446c1" failed to install.
Error: Plugin "https://github.com/cranberrygame/com.cranberrygame.phonegap.plugin.screenorientation.landscape#bdaeed56012bdc2f9c39dff56308fc6a1c8bf53d" failed to install.
Error: Plugin "https://github.com/danwilson/google-analytics-plugin#c13ad4bb9d165b0036f2a6f7f10aeeda48f9f72b" failed to install.

 

when i tried to add manually the plugins via the xdk console. plugins do install however i get a build failed error 

 

the log is attched

thank you

0 Kudos
16 Replies
John_H_Intel2
Employee
2,684 Views

I see you have completed several successful builds.

Did you get your issue resolved? What was the problem?

0 Kudos
Alon_I_
Beginner
2,684 Views

Hi John,

The problem is that some of the third party plugins you need to use with construct do not work on cordova 5

when i switched back to 4.1.2 it worked fine.

Long term i am not sure how this will work

 

0 Kudos
John_H_Intel2
Employee
2,684 Views

Not all plugins are compatible with Cordova 5. Its up to you the developer to read the documentation on the plugin to determine if the plugin will work for your needs.

0 Kudos
James_W_3
Beginner
2,684 Views

 

 

Hi,  i'm having a similar issue with in app purchases , IAP

 

I have completed a build a few months ago and used a google plugin for  IAP   "works fine"

I build another one, "Kids Burger" same cordova plugin,  got a "must be logged in error from the playstore" 

I gave up on it and just left it alone thinking the problem would be fixed in a future build.

Now I have another app I want to use IAP in and again I get a error from the playstore telling me " I must be logged in? "

for this build... I used the cordova plugin for "google play services" that was listed in the drop down menu inside XDK

I am logged in and have no problem with IAP in other apps   

  • Intel XDK version (2611).
  • Clear explanation of your issue.
  • How to reproduce your problem.
  • Platform ANDROID
  • Construct 2 Latest Stable Release

The exact message is...  

_____________________________________________________________________

ERROR

Authentication is required. you need to sign into your Google Account.

_________________________________________________________________

Thanks for any help.

James Weatherford

0 Kudos
PaulF_IntelCorp
Employee
2,684 Views

James, is this app an exported app from Construct2? I'm assuming the error message you are referring to is coming when you run the app, which implies that the app has not completed a login into Google, from the device. Is this correct?

Can you provide a simple project that duplicates the problem? ZIP the entire project directory and attach it to this thread, or provide via a private message, with instructions on how to reproduce the issue using that simple app.

0 Kudos
James_W_3
Beginner
2,684 Views

ok Paul I sent you a PM

 

Thanks, 

0 Kudos
PaulF_IntelCorp
Employee
2,684 Views

James, please provide a ZIP of the entire XDK project directory used to create your app, I need to see project settings, etc. Your app in the store doesn't include all this information. I can't work with that.

0 Kudos
Alon_I_
Beginner
2,684 Views

hello in the new xdk the build default ids corodva 5. you need to swithch back to 4.1.2 to make it running well.

 

Alon

0 Kudos
James_W_3
Beginner
2,684 Views

Paul F. (Intel) wrote:

James, please provide a ZIP of the entire XDK project directory used to create your app, I need to see project settings, etc. Your app in the store doesn't include all this information. I can't work with that.

 

OK,  sorry ...  I sent the folder.   

Was thinking you could figure it out by seeing the error message.  

0 Kudos
James_W_3
Beginner
2,684 Views

Hi @Alon I

 

Thanks,  I had some help from the other guys that told me to do that also,   I did.

But I seem to still be getting errors...    what plugins are you using?    The cordova plugin and the default IAP in construct 2... or cranberry plugins ...  ?  if cranberry ,  what versions are working for you?

 

thanks.  

 

 

 

0 Kudos
Alon_I_
Beginner
2,684 Views

i use cranberry. i coitacted him and he has on his g+ some explanation that i never used. I dont remember where :) sorry.

0 Kudos
James_W_3
Beginner
2,684 Views

Paul F. (Intel) wrote:

James, please provide a ZIP of the entire XDK project directory used to create your app, I need to see project settings, etc. Your app in the store doesn't include all this information. I can't work with that.

 

Just checking in Paul... did you figure anything out?

0 Kudos
PaulF_IntelCorp
Employee
2,684 Views

Sorry, James, have not had time to look into the issue. Hope to look this week. Paul

0 Kudos
James_W_3
Beginner
2,684 Views

Thank you.  

0 Kudos
Renato_B_
Beginner
2,684 Views

I have the same Alon's issue. Any news about this error? I try to downgrade but the problem still happens.

0 Kudos
PaulF_IntelCorp
Employee
2,684 Views

Hi James, sorry, I've been overwhelmed with lots of priority issues and am just now getting a chance to get back to the forum. I just downloaded the project you sent me to take a look, but the project is incomplete. It does not contain the key file, which would be the  <project-name>.xdk file. I need that file in order to reproduce your situation.

One thing I do notice in your project is that there is an additions.xml file that specifies three plugins. I believe Construct2 created that file when you exported it, is that correct? If so, this is going to now cause havoc with our latest versions of the XDK and build system. That method worked with past versions of the XDK and build system and, theoretically, still works, but it proved to be a very inconsistent and unreliable way to deal with plugins. We now ask that you specify all plugins via the plugin manager on the Projects tab. You can use the IDs that are in that additions.xml file, or the ones in the config.xml file that looks like it was made for PhoneGap Build, to retrieve those plugins into your XDK project.

0 Kudos
Reply