Android-runtime: Android Build faild

Created on 5 Jul 2016  路  2Comments  路  Source: NativeScript/android-runtime

Please, provide the details below:

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

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Yes

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.0.0
  • Cross-platform modules: 2.1.0
  • Runtime(s): 2.0.0
  • bug

    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?

    All 2 comments

    @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?

    Was this page helpful?
    0 / 5 - 0 ratings