Admobpro Plugins doesn't work


#1

Looks like it can’t find version of google play service, I guess
Here are the error messages

Also anyone have the alternative?

COMPILER ERROR:

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/workspace/platforms/android/build.gradle’ line: 254

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not get unknown property ‘PLAY_SERVICES_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

CORDOVA LOG:

ewardBasedVideoAdNetworkAdapterProtocol.h
skipping existing file: GADMRewardBasedVideoAdNetworkConnectorProtocol.h
skipping existing file: GADMediatedNativeAd.h
skipping existing file: GADMediatedNativeAdDelegate.h
skipping existing file: GADMediatedNativeAdNotificationSource.h
skipping existing file: GADMediatedNativeAppInstallAd.h
skipping existing file: GADMediatedNativeContentAd.h
skipping existing file: GADMediatedUnifiedNativeAd.h
skipping existing file: GADMediatedUnifiedNativeAdNotificationSource.h
skipping existing file: GADMediationAdRequest.h
skipping existing file: module.modulemap
skipping existing file: AdMobOptions.cs
skipping existing file: AdMobPlugin.cs
skipping existing file: GoogleAds.XML
skipping existing file: GoogleAds.dll
skipping existing file: admob_simple.js
skipping existing file: index.html
skipping existing file: jquery-1.9.js
skipping existing file: AdMob.d.ts
skipping existing file: AdMob.js
e[36m20181021T050719 [DEBUG] AndroidBuilder -e[39m [build]
Warning: File /.android/repositories.cfg could not be loaded.
e[36m20181021T050721 [DEBUG] AndroidBuilder -e[39m [build] create certs folder
e[36m20181021T050721 [DEBUG] AndroidBuilder -e[39m [build] keystore
e[36m20181021T050721 [DEBUG] AndroidBuilder -e[39m [build] create build.json
e[36m20181021T050721 [DEBUG] AndroidBuilder -e[39m [build] call cordova
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/LICENSE

cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/README.md

skipping existing file: README.md
skipping existing file: README.zh_cn.md
skipping existing file: android.jpg
skipping existing file: android_interstitial.jpg
skipping existing file: good.png
skipping existing file: iphone.jpg
skipping existing file: iphone_interstitial.jpg
skipping existing file: trend.png
skipping existing file: warning.png
skipping existing file: youtube_video.jpg
skipping existing file: youtube_video0.jpg
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/package.json

cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/LICENSE
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/README.md
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/package.json
cp: dest file already exists: /workspace/plugins/cordova-plugin-admobpro/plugin.xml

skipping existing file: AdMobMediation.java
skipping existing file: AdMobPlugin.java
skipping existing file: AdMobMediation.h
skipping existing file: AdMobMediation.m
skipping existing file: CDVAdMobPlugin.h
skipping existing file: CDVAdMobPlugin.m
skipping existing file: GoogleMobileAds
skipping existing file: DFPBannerView.h
skipping existing file: DFPBannerViewOptions.h
skipping existing file: DFPCustomRenderedAd.h
skipping existing file: DFPCustomRenderedBannerViewDelegate.h
skipping existing file: DFPCustomRenderedInterstitialDelegate.h
skipping existing file: DFPInterstitial.h
skipping existing file: DFPRequest.h
skipping existing file: GADAdChoicesView.h
skipping existing file: GADAdLoader.h
skipping existing file: GADAdLoaderAdTypes.h
skipping existing file: GADAdLoaderDelegate.h
skipping existing file: GADAdNetworkExtras.h
skipping existing file: GADAdReward.h
skipping existing file: GADAdSize.h
skipping existing file: GADAdSizeDelegate.h
skipping existing file: GADAppEventDelegate.h
skipping existing file: GADAudioVideoManager.h
skipping existing file: GADAudioVideoManagerDelegate.h
skipping existing file: GADBannerView.h
skipping existing file: GADBannerViewDelegate.h
skipping existing file: GADCorrelator.h
skipping existing file: GADCorrelatorAdLoaderOptions.h
skipping existing file: GADCustomEventBanner.h
skipping existing file: GADCustomEventBannerDelegate.h
skipping existing file: GADCustomEventExtras.h
skipping existing file: GADCustomEventInterstitial.h
skipping existing file: GADCustomEventInterstitialDelegate.h
skipping existing file: GADCustomEventNativeAd.h
skipping existing file: GADCustomEventNativeAdDelegate.h
skipping existing file: GADCustomEventParameters.h
skipping existing file: GADCustomEventRequest.h
skipping existing file: GADDebugOptionsViewController.h
skipping existing file: GADDynamicHeightSearchRequest.h
skipping existing file: GADExtras.h
skipping existing file: GADInAppPurchase.h
skipping existing file: GADInAppPurchaseDelegate.h
skipping existing file: GADInterstitial.h
skipping existing file: GADInterstitialDelegate.h
skipping existing file: GADMediaView.h
skipping existing file: GADMobileAds.h
skipping existing file: GADMultipleAdsAdLoaderOptions.h
skipping existing file: GADNativeAd.h
skipping existing file: GADNativeAdDelegate.h
skipping existing file: GADNativeAdImage+Mediation.h
skipping existing file: GADNativeAdImage.h
skipping existing file: GADNativeAdImageAdLoaderOptions.h
skipping existing file: GADNativeAdViewAdOptions.h
skipping existing file: GADNativeAppInstallAd.h
skipping existing file: GADNativeAppInstallAdAssetIDs.h
skipping existing file: GADNativeContentAd.h
skipping existing file: GADNativeContentAdAssetIDs.h
skipping existing file: GADNativeCustomTemplateAd.h
skipping existing file: GADNativeExpressAdView.h
skipping existing file: GADNativeExpressAdViewDelegate.h
skipping existing file: GADRequest.h
skipping existing file: GADRequestError.h
skipping existing file: GADRewardBasedVideoAd.h
skipping existing file: GADRewardBasedVideoAdDelegate.h
skipping existing file: GADSearchBannerView.h
skipping existing file: GADSearchRequest.h
skipping existing file: GADUnifiedNativeAd+ConfirmationClick.h
skipping existing file: GADUnifiedNativeAd.h
skipping existing file: GADUnifiedNativeAdAssetIdentifiers.h
skipping existing file: GADUnifiedNativeAdDelegate.h
skipping existing file: GADUnifiedNativeAdUnconfirmedClickDelegate.h
skipping existing file: GADVideoController.h
skipping existing file: GADVideoControllerDelegate.h
skipping existing file: GADVideoOptions.h
skipping existing file: GoogleMobileAds.h
skipping existing file: GoogleMobileAdsDefines.h
skipping existing file: GADMAdNetworkAdapterProtocol.h
skipping existing file: GADMAdNetworkConnectorProtocol.h
skipping existing file: GADMEnums.h
skipping existing file: GADMRewardBasedVideoAdNetworkAdapterProtocol.h
skipping existing file: GADMRewardBasedVideoAdNetworkConnectorProtocol.h
skipping existing file: GADMediatedNativeAd.h
skipping existing file: GADMediatedNativeAdDelegate.h
skipping existing file: GADMediatedNativeAdNotificationSource.h
skipping existing file: GADMediatedNativeAppInstallAd.h
skipping existing file: GADMediatedNativeContentAd.h
skipping existing file: GADMediatedUnifiedNativeAd.h
skipping existing file: GADMediatedUnifiedNativeAdNotificationSource.h
skipping existing file: GADMediationAdRequest.h
skipping existing file: module.modulemap
skipping existing file: AdMobOptions.cs
skipping existing file: AdMobPlugin.cs
skipping existing file: GoogleAds.XML
skipping existing file: GoogleAds.dll
skipping existing file: admob_simple.js
skipping existing file: index.html
skipping existing file: jquery-1.9.js
skipping existing file: AdMob.d.ts
skipping existing file: AdMob.js
ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Subproject Path: CordovaLib
null
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_13vap03m76j0nhl749o2qgb8x.run(/workspace/platforms/android/build.gradle:139)

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/workspace/platforms/android/build.gradle’ line: 254

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not get unknown property ‘PLAY_SERVICES_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.161 secs
e[91m20181021T050730 [ERROR] AndroidBuilder -e[39m { Error: /workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/workspace/platforms/android/build.gradle’ line: 254

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not get unknown property ‘PLAY_SERVICES_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/workspace/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:961:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
    stderr:
    ‘\nFAILURE: Build failed with an exception.\n\n* Where:\nBuild file ‘/workspace/platforms/android/build.gradle’ line: 254\n\n* What went wrong:\nA problem occurred evaluating root project ‘android’.\n> Could not get unknown property ‘PLAY_SERVICES_VERSION’ for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\n’,
    stdout:
    ‘null\nThe Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.\n\tat build_13vap03m76j0nhl749o2qgb8x.run(/workspace/platforms/android/build.gradle:139)\n\nBUILD FAILED\n\nTotal time: 1.161 secs\n’,
    code: 1 }

#2

Its not just about admobpro plugin, i am not able to compile with webview+ even without admobpro wth same error as yours!


#3

Same. Maybe try the default admob plugins.
I didn’t try it yet but here is the tutorial
https://www.scirra.com/tutorials/9696/simple-construct-2-admob-ads-working


#4

try cocoon ads in versione 2.1.0


#5

follow the tutorial (In my reply) it successfully compiled but now I need to test the ads


#6

this work in cordova cli ?


#7

Cattura I can not make this plugin work you have any ideas?


#8

I have trouble installing this plugin on Cordova CLI do you have any idea of the cause of this error?


#9

does the simple construct 2 admob plugin work?


#10

Did it worked? it showed black screen after splash for me…


#11

no both the construct 2 plugin and the cordova plugin do not work the problem is due to this plugin Cranberrygame cordova-plugin-ad-admob


#12

do you know how to solve the problem of installing this plugin?


#13

hey this plugin work in phonegap