Intel XDK build failed AdMob plugin failed to install

Get help using Construct 2

Post » Fri Dec 16, 2016 3:21 pm

Been trying to build my game with intermittent problems.

Sometimes it's one plugin, sometimes it's another. The latest build fail is because of AdMob. It shows the plugin in plugin management, but i get this error:

Build Log
Building a Cordova 6.2.0 application.

Using platform cordova-android 5.1.1.

The application name is "(omitted)"

The package name is "com.(omitted)"

Preference android-signed set to true. Application will be signed.

Using Crosswalk Embedded 19

Error: Unable to build; intelxdk.config.additions.xml file includes plugin tags, which are no longer supported. Use the Intel XDK plugin manager to resolve this issue. See https://software.intel.com/en-us/xdk/do ... lugin-tags

Error: Could not retrieve plugin dependencies for Cordova AdMob plugin'.

Error: Plugin Cordova AdMob plugin failed to install.


Plugin "cordova-plugin-device" (1.1.2) installed.

Plugin "cordova-plugin-statusbar" (2.1.3) installed.

Plugin "cordova-plugin-payment-iap" (2.0.52) installed.

Plugin "cordova-plugin-extras-google-play-services" (1.0.5) installed.

Plugin "cordova-plugin-game" (1.0.120) installed.

Plugin "cordova-plugin-whitelist" (1.2.2) installed.

Plugin "cordova-plugin-crosswalk-webview" (1.8.0) installed.



Why would the build fail if the plugin is currently in plugin management?

Any help is greatly appreciated.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Sat Dec 17, 2016 1:03 pm

You must delete the line of code inside additions xml file and add the needed plugin with the plugin management interface: https://github.com/cranberrygame/cordov ... n-ad-admob
B
19
S
6
G
2
Posts: 260
Reputation: 2,648

Post » Sun Dec 18, 2016 2:11 pm

Josek5494 wrote:You must delete the line of code inside additions xml file and add the needed plugin with the plugin management interface: https://github.com/cranberrygame/cordov ... n-ad-admob


He is right, you find a guide for that here.

https://www.youtube.com/watch?v=j74sjb36pJI

https://shatter-box.com/knowledgebase/i ... nstruct-2/
Image Image iTunes: Match3 | Google Play: Match3
B
100
S
35
G
30
Posts: 1,134
Reputation: 28,081

Post » Mon Dec 19, 2016 5:29 pm

@Josek5494 @AndreasR


Thanks for the reply. One problem is my additions.xml file looks different than the others that i have seen in posts/tutorials.

This is what mine looks like:

<!-- Change the debuggable preference to true to build a remote CDT debuggable app for -->
<!-- Crosswalk apps on Android 4.0+ devices and Cordova apps on Android 4.4+ devices. -->
<preference name="debuggable" value="false" />
<!-- IMPORTANT: set the debuggable preference to false before you build for the store! -->

<platform name="ios">
<!-- below requires the splash screen plugin, otherwise ignored -->
<!-- docs: https://github.com/apache/cordova-plugin-splashscreen -->
<preference name="AutoHideSplashScreen" value="true" />
<preference name="FadeSplashScreen" value="false"/>
<preference name="FadeSplashScreenDuration" value="2"/>
<preference name="ShowSplashScreenSpinner" value="false"/>

<!-- below requires the status bar plugin, otherwise ignored -->
<!-- docs: https://github.com/apache/cordova-plugin-statusbar -->
<!-- see http://devgirl.org/2014/07/31/phonegap-developers-guid -->
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#000000" />
<preference name="StatusBarStyle" value="lightcontent" />
</platform>

<platform name="android">
<!-- below requires the splash screen plugin, otherwise ignored -->
<!-- docs: https://github.com/apache/cordova-plugin-splashscreen -->
<!-- 'value' = number of milliseconds to display the splash screen in a Cordova build. -->
<!-- <preference name="SplashScreenDelay" value="0000" /> -->
<!-- <preference name="SplashMaintainAspectRatio" value="false" /> -->
</platform>

<!-- use this feature to add command-lines to be used by Crosswalk builds on device -->
<!-- see http://peter.sh/experiments/chromium-co ... -switches/ for complete list -->
<intelxdk:crosswalk xwalk-command-line="--disable-pull-to-refresh-effect" />
<!-- ignore gpu blacklist for larger collection of gpu accelerated devices -->
<intelxdk:crosswalk xwalk-command-line="--ignore-gpu-blacklist" />

<!-- controls configuration of Crosswalk-Android "SurfaceView" or "TextureView" -->
<!-- see Sep 15 comments in https://crosswalk-project.org/jira/browse/XWALK-2233 -->
<!-- default is SurfaceView if >= CW15 and TextureView if <= CW14 -->
<!-- option can only be used with Intel XDK CLI5+ build systems -->
<!-- SurfaceView is preferred, TextureView should only be used in special cases -->
<!-- enable Crosswalk-Android TextureView by setting option to true -->
<preference name="CrosswalkAnimatable" value="false" />


I am only building for Android at this time, and have these plugins installed under plugin management:

Device
InAppBrowser
Google Play Services
(Cranberrygame
Cordova IAP
Cordova AdMob
Cordova Game

)

Another problem i have is finding the correct url under the git repo tab. I tried a few, but they still would not install, or XDK says no longer supported.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Tue Dec 20, 2016 2:11 pm

Are you using the last version of Intel XDK, and NOT using the xdk project format when youre exporting from C2?
B
19
S
6
G
2
Posts: 260
Reputation: 2,648

Post » Tue Dec 20, 2016 4:29 pm

Josek5494 wrote:Are you using the last version of Intel XDK, and NOT using the xdk project format when youre exporting from C2?


Yes and Yes.

I actually got it working. Tested and ads show. My problem was (cause of my situation, being tired and in a rush) i saw the plugin already under plugin management after opening the intel xdk project, so i thought it was fine.

All you have to do, i found out, is to remove it from the plugin by clicking the minus sign to the left, then adding the git link under git repo. and voilà. No need to actually go in to the additions xml file. At least i didn't.


Thanks for the reply, though.
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Wed Dec 21, 2016 10:49 am

jeffige wrote:
Josek5494 wrote:Are you using the last version of Intel XDK, and NOT using the xdk project format when youre exporting from C2?


Yes and Yes.

I actually got it working. Tested and ads show. My problem was (cause of my situation, being tired and in a rush) i saw the plugin already under plugin management after opening the intel xdk project, so i thought it was fine.

All you have to do, i found out, is to remove it from the plugin by clicking the minus sign to the left, then adding the git link under git repo. and voilà. No need to actually go in to the additions xml file. At least i didn't.


Thanks for the reply, though.


Nice ^^
B
19
S
6
G
2
Posts: 260
Reputation: 2,648

Post » Mon Jan 09, 2017 4:45 am

I have this error when build IOS app with Intelxdk 3759:
CompileC build/Tom\ Cat\ Escape\ Run.build/Release-iphoneos/Tom\ Cat\ Escape\ Run.build/Objects-normal/armv7/AdMobPlugin.o Tom\ Cat\ Escape\ Run/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

I already added the cordova-plugin-ad-admob in padd 3rd party plugin section.
How to I solve this?
B
16
S
5
G
4
Posts: 36
Reputation: 3,124

Post » Mon Jan 09, 2017 4:52 am

Did you add the plugin with git repo and add the application ID in the variable?
B
38
S
18
G
19
Posts: 664
Reputation: 14,107


Return to How do I....?

Who is online

Users browsing this forum: mcscooter and 21 guests