Hi. I am using admob-free by ratson. 3 days ago, I was able to export to apk (–prod --release) without any problem. However, I encountered an error just this morning. It is weird because I just modified a part of my usual code. It has been 12 hours since I am trying to export to apk without success. I even tried to add the code below to the plugin without any success :
@Override
public void onRewardedVideoCompleted() {
executor.fireAdEvent("admob.rewardvideo.events.CLOSE");
}
I also created a backup of my code and tried to remove and add the admob plugin again but it still does not work. Do you have any idea? I hope someone could help. Thank you very much.
Below is the error from the command prompt :
error: RewardVideoListener is not abstract and does not override abstract method onRewardedVideoCompleted() in
RewardedVideoAdListener
class RewardVideoListener implements RewardedVideoAdListener {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: project_folder\platforms\android\src\org\apache\cordova\file\AssetFilesystem.java uses unchecked
or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> 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: 44.484 secs
Error: cmd: Command failed with exit code 1 Error output:
project_folder\platforms\android\src\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:13:
error: RewardVideoListener is not abstract and does not override abstract method onRewardedVideoCompleted() in
RewardedVideoAdListener
class RewardVideoListener implements RewardedVideoAdListener {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: project_folder\platforms\android\src\org\apache\cordova\file\AssetFilesystem.java uses unchecked
or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> 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.