AdMob Free build bugs

#1

Hello, I just added Admob free plugin to my application. in the IDE I have no problem, but when I try to build the Android application, I have 82 errors and I do not understand what is it?

here is my terminal:


C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AbstractExecutor.java:3: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;

  symbol:   variable AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:208: error: cannot find symbol
            return AdSize.SEARCH;
                   ^
  symbol:   variable AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:210: error: cannot find symbol
            return AdSize.FULL_BANNER;
                   ^
  symbol:   variable AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:212: error: cannot find symbol
            return AdSize.MEDIUM_RECTANGLE;
                   ^
  symbol:   variable AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:214: error: cannot find symbol
            return AdSize.LEADERBOARD;
                   ^
  symbol:   variable AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerExecutor.java:70: error: cannot find symbol
                    adView = new AdView(cordova.getActivity());
                                 ^
  symbol: class AdView
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialExecutor.java:44: error: cannot find symbol
                interstitialAd = new InterstitialAd(cordova.getActivity());
                                     ^
  symbol: class InterstitialAd
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialExecutor.java:80: error: cannot find symbol
                interstitialAd = new InterstitialAd(cordova.getActivity());
                                     ^
  symbol: class InterstitialAd
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:47: error: cannot find symbol
                rewardedVideoAd = MobileAds.getRewardedVideoAdInstance(cordova.getActivity());
                                  ^
  symbol: variable MobileAds
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:56: error: cannot find symbol
                        AdRequest adRequest = new AdRequest.Builder()
                        ^
  symbol: class AdRequest
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:57: error: cannot find symbol
                                .addNetworkExtrasBundle(AdMobAdapter.class, extras)
                                                        ^
  symbol: class AdMobAdapter
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:56: error: package AdRequest does not exist
                        AdRequest adRequest = new AdRequest.Builder()
                                                           ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:86: error: cannot find symbol
                if (rewardedVideoAd instanceof RewardedVideoAd) {
                                               ^
  symbol: class RewardedVideoAd
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:87: error: cannot find symbol
                    RewardedVideoAd rvad = rewardedVideoAd;
                    ^
  symbol: class RewardedVideoAd
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:20: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:34: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:46: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:56: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:62: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:19: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:33: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:45: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:56: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:62: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:20: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:37: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:48: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:61: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:66: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:71: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:77: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:compileDebugJavaWithJavac FAILED

82 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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: 13.102 secs
(node:10712) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AbstractExecutor.java:3: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:5: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:8: error: package com.google.ads.mediation.admob does not exist
import com.google.ads.mediation.admob.AdMobAdapter;
                                     ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:9: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:10: error: package com.google.android.gms.common does not exist
import com.google.android.gms.common.ConnectionResult;
                                    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:11: error: package com.google.android.gms.common does not exist
import com.google.android.gms.common.GoogleApiAvailability;
                                    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:6: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdSize;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerExecutor.java:9: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdView;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialExecutor.java:5: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.InterstitialAd;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:6: error: package com.google.ads.mediation.admob does not exist
import com.google.ads.mediation.admob.AdMobAdapter;
                                     ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:7: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdRequest;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:8: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.MobileAds;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:9: error: package com.google.android.gms.ads.reward does not exist
import com.google.android.gms.ads.reward.RewardedVideoAd;
                                        ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:151: error: cannot find symbol
    public AdRequest buildAdRequest() {
           ^
  symbol:   class AdRequest
  location: class AdMob
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:61: error: cannot find symbol
    public AdSize adSize = AdSize.SMART_BANNER;
           ^
  symbol:   class AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMobConfig.java:190: error: cannot find symbol
    private static AdSize adSizeFromString(String size) {
                   ^
  symbol:   class AdSize
  location: class AdMobConfig
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerExecutor.java:26: error: cannot find symbol
    private AdView adView;
            ^
  symbol:   class AdView
  location: class BannerExecutor
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialExecutor.java:20: error: cannot find symbol
    private InterstitialAd interstitialAd;
            ^
  symbol:   class InterstitialAd
  location: class InterstitialExecutor
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoExecutor.java:23: error: cannot find symbol
    private RewardedVideoAd rewardedVideoAd;
            ^
  symbol:   class RewardedVideoAd
  location: class RewardVideoExecutor
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:5: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdListener;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\banner\BannerListener.java:12: error: cannot find symbol
class BannerListener extends AdListener {
                             ^
  symbol: class AdListener
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:5: error: package com.google.android.gms.ads does not exist
import com.google.android.gms.ads.AdListener;
                                 ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\interstitial\InterstitialListener.java:12: error: cannot find symbol
class InterstitialListener extends AdListener {
                                   ^
  symbol: class AdListener
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:5: error: package com.google.android.gms.ads.reward does not exist
import com.google.android.gms.ads.reward.RewardItem;
                                        ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:6: error: package com.google.android.gms.ads.reward does not exist
import com.google.android.gms.ads.reward.RewardedVideoAdListener;
                                        ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:13: error: cannot find symbol
class RewardVideoListener implements RewardedVideoAdListener {
                                     ^
  symbol: class RewardedVideoAdListener
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:78: error: cannot find symbol
    public void onRewarded(RewardItem reward) {
                           ^
  symbol:   class RewardItem
  location: class RewardVideoListener
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AdMob.java:243: error: cannot find symbol
    @NonNull
     ^
  symbol:   class NonNull
  location: class AdMob
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AbstractExecutor.java:30: error: cannot find symbol
            case AdRequest.ERROR_CODE_INTERNAL_ERROR:
                 ^
  symbol:   variable AdRequest
  location: class AbstractExecutor
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\AbstractExecutor.java:33: error: cannot find symbol
            case AdRequest.ERROR_CODE_INVALID_REQUEST:
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:66: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:71: error: method does not override or implement a method from a supertype
    @Override
    ^
C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:77: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
82 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (C:\Users\twizy\Desktop\Development\Ionic\Benchtable App\benchtable\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:10712) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10712) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

All errors are not here because the topic is limit to 32000 characters!
and if somebody knows how to uninstall admob plugin thanks to tell me.
Thanks for your helping