I am trying to build the android app though CLI but I am getting following issue
:compileF0DebugJavaWithJavacE:\App\Source Code\TeamRotation\platforms\android\src\main\java\com\tns\gen\android\content\ComponentC allbacks2_ftns_modules_application_application_l87_c30__.java:3: error: Componen tCallbacks2_ftns_modules_application_application_l87_c30__ is not abstract and d oes not override abstract method onLowMemory() in ComponentCallbacks
public class ComponentCallbacks2_ftns_modules_application_application_l87_c30__ implements android.content.ComponentCallbacks2 {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileF0DebugJavaWithJavac'.
> 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
I executed the following commands -
$ tns create my-app-name --template tns-template-hello-world-ts
$ tns run android
Yes
@mayureshjadhav at first glance the problem is occurring because there are inconsistencies between the CLI, the cross-platform modules, and platform versions.
Could you update your nativescript installation npm install -g nativescript and then tns platform remove android followed by tns platform add android
Hey @Pip3r4o , Thank you so much for taking some time to respond to my query. It works. is nativescript v2.1 released?
Most helpful comment
Hey @Pip3r4o , Thank you so much for taking some time to respond to my query. It works. is nativescript v2.1 released?