Current behavior
The build fails because callbackContext and runsub should be declared with final. Adding final to those variables makes the build succeed.
Steps to reproduce
Run ionic cordova build android
What is the current bug behavior?
Build failure
What is the expected correct behavior?
Build successful
Relevant logs and/or screenshots
BUILD FAILED in 6s
38 actionable tasks: 38 executed
(node:20320) UnhandledPromiseRejectionWarning: Error:
/platforms/android/gradlew: Command failed with exit code 1 Error output:
/platforms/android/src/com/tokbox/cordova/OpenTokAndroidPlugin.java:674: error: local variable callbackContext is accessed from within inner class; needs to be declared final
myPublisher.getImgData(callbackContext);
^
/platforms/android/src/com/tokbox/cordova/OpenTokAndroidPlugin.java:683: error: local variable runsub is accessed from within inner class; needs to be declared final
runsub.getImgData(callbackContext);
^
/platforms/android/src/com/tokbox/cordova/OpenTokAndroidPlugin.java:683: error: local variable callbackContext is accessed from within inner class; needs to be declared final
runsub.getImgData(callbackContext);
^
Bug Report
Current behavior The build fails because callbackContext and runsub should be declared with final. Adding final to those variables makes the build succeed.
Steps to reproduce Run ionic cordova build android
What is the current bug behavior? Build failure
What is the expected correct behavior? Build successful
Relevant logs and/or screenshots
Ionic Info