How to get rid of error messages in Android when I run my updated NS 5.0 app?












2















I am trying to include all the angular features that speeds up the app for Android and iOS. The app compiles fine but when it boots, the app crashes. I recently updated my apps to Nativescript 5.0, once I run the app for debug mode for android,



tns run android --bundle --env.uglify --env.aot --env.snapshot


I see some Java/Android errors when the app loads:



11-15 11:49:53.578 20598 20598 I art     :   at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.579 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)


Same errors shows up when I try to run the Hello World app just created from scratch for production with the new tns create command in Nativescript 5.0.



I have the Android SDK up-to-date.



Any tips? Thanks!










share|improve this question























  • what android sdk version are you using?

    – itaintme
    Nov 16 '18 at 7:31
















2















I am trying to include all the angular features that speeds up the app for Android and iOS. The app compiles fine but when it boots, the app crashes. I recently updated my apps to Nativescript 5.0, once I run the app for debug mode for android,



tns run android --bundle --env.uglify --env.aot --env.snapshot


I see some Java/Android errors when the app loads:



11-15 11:49:53.578 20598 20598 I art     :   at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.579 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)


Same errors shows up when I try to run the Hello World app just created from scratch for production with the new tns create command in Nativescript 5.0.



I have the Android SDK up-to-date.



Any tips? Thanks!










share|improve this question























  • what android sdk version are you using?

    – itaintme
    Nov 16 '18 at 7:31














2












2








2


1






I am trying to include all the angular features that speeds up the app for Android and iOS. The app compiles fine but when it boots, the app crashes. I recently updated my apps to Nativescript 5.0, once I run the app for debug mode for android,



tns run android --bundle --env.uglify --env.aot --env.snapshot


I see some Java/Android errors when the app loads:



11-15 11:49:53.578 20598 20598 I art     :   at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.579 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)


Same errors shows up when I try to run the Hello World app just created from scratch for production with the new tns create command in Nativescript 5.0.



I have the Android SDK up-to-date.



Any tips? Thanks!










share|improve this question














I am trying to include all the angular features that speeds up the app for Android and iOS. The app compiles fine but when it boots, the app crashes. I recently updated my apps to Nativescript 5.0, once I run the app for debug mode for android,



tns run android --bundle --env.uglify --env.aot --env.snapshot


I see some Java/Android errors when the app loads:



11-15 11:49:53.578 20598 20598 I art     :   at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodNative(int, int, java.lang.String, int, boolean, java.lang.Object) (Runtime.java:-2)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.dispatchCallJSMethodNative(int, java.lang.String, boolean, long, java.lang.Class, java.lang.Object) (Runtime.java:1116)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethodImpl(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:996)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, long, java.lang.Object) (Runtime.java:983)
11-15 11:49:53.578 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, boolean, java.lang.Object) (Runtime.java:967)
11-15 11:49:53.579 20598 20598 I art : at java.lang.Object com.tns.Runtime.callJSMethod(java.lang.Object, java.lang.String, java.lang.Class, java.lang.Object) (Runtime.java:959)


Same errors shows up when I try to run the Hello World app just created from scratch for production with the new tns create command in Nativescript 5.0.



I have the Android SDK up-to-date.



Any tips? Thanks!







nativescript angular2-nativescript






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 16 '18 at 1:47









relezrelez

3521323




3521323













  • what android sdk version are you using?

    – itaintme
    Nov 16 '18 at 7:31



















  • what android sdk version are you using?

    – itaintme
    Nov 16 '18 at 7:31

















what android sdk version are you using?

– itaintme
Nov 16 '18 at 7:31





what android sdk version are you using?

– itaintme
Nov 16 '18 at 7:31












1 Answer
1






active

oldest

votes


















0














I had the same problem, a few things to check:




  • run "tns docter"

  • is everything fine? If not, solve the issues and/or try the steps below:


For me, it did not show any issues, still: next step is to make sure you have the right android sdk, android sdk build tools and android support repository installed:



I have the Android SDK installed with Eclipse, so I just launch the Android SDK Manager from there and installed:




  • Android SDK Platform-tools 28.0.1

  • Android SDK Build-tools 28.0.1 (THIS IS IMPORTANT, make sure it is exactly the same as the platform tools)


  • Android 9 (28) / SDK Platform


  • Extras / Android Support Repo

  • Extras / Android Support Library


After this, I way able to built/run the app everytime (without --clean):




  • tns platform remove android

  • tns platform add android

  • tns run android --bundle






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53330318%2fhow-to-get-rid-of-error-messages-in-android-when-i-run-my-updated-ns-5-0-app%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I had the same problem, a few things to check:




    • run "tns docter"

    • is everything fine? If not, solve the issues and/or try the steps below:


    For me, it did not show any issues, still: next step is to make sure you have the right android sdk, android sdk build tools and android support repository installed:



    I have the Android SDK installed with Eclipse, so I just launch the Android SDK Manager from there and installed:




    • Android SDK Platform-tools 28.0.1

    • Android SDK Build-tools 28.0.1 (THIS IS IMPORTANT, make sure it is exactly the same as the platform tools)


    • Android 9 (28) / SDK Platform


    • Extras / Android Support Repo

    • Extras / Android Support Library


    After this, I way able to built/run the app everytime (without --clean):




    • tns platform remove android

    • tns platform add android

    • tns run android --bundle






    share|improve this answer




























      0














      I had the same problem, a few things to check:




      • run "tns docter"

      • is everything fine? If not, solve the issues and/or try the steps below:


      For me, it did not show any issues, still: next step is to make sure you have the right android sdk, android sdk build tools and android support repository installed:



      I have the Android SDK installed with Eclipse, so I just launch the Android SDK Manager from there and installed:




      • Android SDK Platform-tools 28.0.1

      • Android SDK Build-tools 28.0.1 (THIS IS IMPORTANT, make sure it is exactly the same as the platform tools)


      • Android 9 (28) / SDK Platform


      • Extras / Android Support Repo

      • Extras / Android Support Library


      After this, I way able to built/run the app everytime (without --clean):




      • tns platform remove android

      • tns platform add android

      • tns run android --bundle






      share|improve this answer


























        0












        0








        0







        I had the same problem, a few things to check:




        • run "tns docter"

        • is everything fine? If not, solve the issues and/or try the steps below:


        For me, it did not show any issues, still: next step is to make sure you have the right android sdk, android sdk build tools and android support repository installed:



        I have the Android SDK installed with Eclipse, so I just launch the Android SDK Manager from there and installed:




        • Android SDK Platform-tools 28.0.1

        • Android SDK Build-tools 28.0.1 (THIS IS IMPORTANT, make sure it is exactly the same as the platform tools)


        • Android 9 (28) / SDK Platform


        • Extras / Android Support Repo

        • Extras / Android Support Library


        After this, I way able to built/run the app everytime (without --clean):




        • tns platform remove android

        • tns platform add android

        • tns run android --bundle






        share|improve this answer













        I had the same problem, a few things to check:




        • run "tns docter"

        • is everything fine? If not, solve the issues and/or try the steps below:


        For me, it did not show any issues, still: next step is to make sure you have the right android sdk, android sdk build tools and android support repository installed:



        I have the Android SDK installed with Eclipse, so I just launch the Android SDK Manager from there and installed:




        • Android SDK Platform-tools 28.0.1

        • Android SDK Build-tools 28.0.1 (THIS IS IMPORTANT, make sure it is exactly the same as the platform tools)


        • Android 9 (28) / SDK Platform


        • Extras / Android Support Repo

        • Extras / Android Support Library


        After this, I way able to built/run the app everytime (without --clean):




        • tns platform remove android

        • tns platform add android

        • tns run android --bundle







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 14 '18 at 16:08









        wolfgangstawolfgangsta

        1815




        1815
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53330318%2fhow-to-get-rid-of-error-messages-in-android-when-i-run-my-updated-ns-5-0-app%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Florida Star v. B. J. F.

            Danny Elfman

            Lugert, Oklahoma