Hello everyone,
I recently updated my npm packages which where outdated to the ‘wanted’ version as shown by npm, and updated all cordova plugins with the npm package cordova-check-plugins.
It gave me all sort of errors, so I removed all traces of admobfree from my package.json, removed my package-lokc.json and node_modules. Then I reinstalled it using ionic-native documentation. I still get the errors:
:app:generateDebugSources UP-TO-DATE
:app:javaPreCompileDebug
UP-TO-DATE
:app:compileDebugJavaWithJavac
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:27: error: package name.ratson.cordova.admob.banner does not exist
import name.ratson.cordova.admob.banner.BannerExecutor;
^
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:28: error: package name.ratson.cordova.admob.interstitial does not exist
import name.ratson.cordova.admob.interstitial.InterstitialExecutor;
^
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:29: error: package name.ratson.cordova.admob.rewardvideo does not exist
import name.ratson.cordova.admob.rewardvideo.RewardVideoExecutor;
^
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:44: error: cannot find symbol
private BannerExecutor bannerExecutor = null;
^
symbol: class BannerExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:45: error: cannot find symbol
private InterstitialExecutor interstitialExecutor = null;
^
symbol: class InterstitialExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:46: error: cannot find symbol
private RewardVideoExecutor rewardVideoExecutor = null;
^
symbol: class RewardVideoExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:70: error: cannot find symbol
bannerExecutor = new BannerExecutor(this);
^
symbol: class BannerExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:73: error: cannot find symbol
interstitialExecutor = new InterstitialExecutor(this);
^
symbol: class InterstitialExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:76: error: cannot find symbol
rewardVideoExecutor = new RewardVideoExecutor(this);
^
symbol: class RewardVideoExecutor
location: class AdMob
Note: Some input files use or override a deprecated API.
FAILED
Note: Recompile with -Xlint:deprecation for details.
9 errors
27 actionable tasks: 1 executed, 26 up-to-date
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
(node:6892) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:27: error: package name.ratson.cordova.admob.banner does not exist
import name.ratson.cordova.admob.banner.BannerExecutor;
^
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:28: error: package name.ratson.cordova.admob.interstitial does not exist
import name.ratson.cordova.admob.interstitial.InterstitialExecutor;
^
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:29: error: package name.ratson.cordova.admob.rewardvideo does not exist
import name.ratson.cordova.admob.rewardvideo.RewardVideoExecutor;
^
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:44: error: cannot find symbol
private BannerExecutor bannerExecutor = null;
^
symbol: class BannerExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:45: error: cannot find symbol
private InterstitialExecutor interstitialExecutor = null;
^
symbol: class InterstitialExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:46: error: cannot find symbol
private RewardVideoExecutor rewardVideoExecutor = null;
^
symbol: class RewardVideoExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:70: error: cannot find symbol
bannerExecutor = new BannerExecutor(this);
^
symbol: class BannerExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:73: error: cannot find symbol
interstitialExecutor = new InterstitialExecutor(this);
^
symbol: class InterstitialExecutor
location: class AdMob
D:\Sync\Documents\projects\comfort\platforms\android\app\src\main\java\name\ratson\cordova\admob\AdMob.java:76: error: cannot find symbol
rewardVideoExecutor = new RewardVideoExecutor(this);
^
symbol: class RewardVideoExecutor
location: class AdMob
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
9 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app: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.
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
(node:6892) [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.
Anyone knows how to resolve, or should I open an issue on github, and if so, on ionic-native or the cordova plugin?