Nativescript webpack fails to build









up vote
0
down vote

favorite












Project was happily building with tns run android



To reduce startup time, I have installed



npm install --save-dev nativescript-dev-webpack



npm install



and then
tns run android --bundle



and getting below error.
.............
FAILURE: Build failed with an exception.



  • What went wrong:
    Could not dispatch a message to the daemon.
    .............

Here is the package.json




"nativescript":
"id": "com.business.bapp",
"tns-android":
"version": "4.2.0"
,
"tns-ios":
"version": "4.2.0"

,
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"repository": "<fill-your-repository-here>",
"dependencies":
"@angular/animations": "~6.1.0",
"@angular/common": "~6.1.0",
"@angular/compiler": "~6.1.0",
"@angular/core": "~6.1.0",
"@angular/forms": "~6.1.0",
"@angular/http": "~6.1.0",
"@angular/platform-browser": "~6.1.0",
"@angular/platform-browser-dynamic": "~6.1.0",
"@angular/router": "~6.1.0",
"nativescript-angular": "~6.1.0",
"nativescript-phone": "^1.4.0",
"nativescript-pro-ui": "^3.4.1",
"nativescript-theme-core": "~1.0.4",
"nativescript-ui-listview": "^3.7.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~6.2.0",
"tns-core-modules": "~4.2.0",
"zone.js": "^0.8.26"
,
"devDependencies":
"@angular/compiler-cli": "~6.1.0",
"@nativescript/schematics": "~0.3.0",
"@ngtools/webpack": "~6.2.0",
"mini-css-extract-plugin": "^0.4.4",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.17.0",
"typescript": "~2.7.2",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
,
"readme": "NativeScript Application"



more details about the error :



> :app:preDebugBuild > Resolve files of :app:debugCompileClasspathiptxxxxxxxnode_modulestns-core-modules-w
E:xxxxxxplatformsandroidappsrcmainjavacomtnsgencomtelerikwidgetlistListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter.java:41: error: getItemViewType(int) in ListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter cannot override getItemViewType(int) in ListViewDataSourceAdapter
public int getItemViewType(int param_0) {
^
overridden method is final
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.









share|improve this question



























    up vote
    0
    down vote

    favorite












    Project was happily building with tns run android



    To reduce startup time, I have installed



    npm install --save-dev nativescript-dev-webpack



    npm install



    and then
    tns run android --bundle



    and getting below error.
    .............
    FAILURE: Build failed with an exception.



    • What went wrong:
      Could not dispatch a message to the daemon.
      .............

    Here is the package.json




    "nativescript":
    "id": "com.business.bapp",
    "tns-android":
    "version": "4.2.0"
    ,
    "tns-ios":
    "version": "4.2.0"

    ,
    "description": "NativeScript Application",
    "license": "SEE LICENSE IN <your-license-filename>",
    "repository": "<fill-your-repository-here>",
    "dependencies":
    "@angular/animations": "~6.1.0",
    "@angular/common": "~6.1.0",
    "@angular/compiler": "~6.1.0",
    "@angular/core": "~6.1.0",
    "@angular/forms": "~6.1.0",
    "@angular/http": "~6.1.0",
    "@angular/platform-browser": "~6.1.0",
    "@angular/platform-browser-dynamic": "~6.1.0",
    "@angular/router": "~6.1.0",
    "nativescript-angular": "~6.1.0",
    "nativescript-phone": "^1.4.0",
    "nativescript-pro-ui": "^3.4.1",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-ui-listview": "^3.7.2",
    "reflect-metadata": "~0.1.8",
    "rxjs": "~6.2.0",
    "tns-core-modules": "~4.2.0",
    "zone.js": "^0.8.26"
    ,
    "devDependencies":
    "@angular/compiler-cli": "~6.1.0",
    "@nativescript/schematics": "~0.3.0",
    "@ngtools/webpack": "~6.2.0",
    "mini-css-extract-plugin": "^0.4.4",
    "nativescript-dev-typescript": "~0.7.0",
    "nativescript-dev-webpack": "^0.17.0",
    "typescript": "~2.7.2",
    "webpack": "^4.25.1",
    "webpack-cli": "^3.1.2"
    ,
    "readme": "NativeScript Application"



    more details about the error :



    > :app:preDebugBuild > Resolve files of :app:debugCompileClasspathiptxxxxxxxnode_modulestns-core-modules-w
    E:xxxxxxplatformsandroidappsrcmainjavacomtnsgencomtelerikwidgetlistListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter.java:41: error: getItemViewType(int) in ListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter cannot override getItemViewType(int) in ListViewDataSourceAdapter
    public int getItemViewType(int param_0) {
    ^
    overridden method is final
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Project was happily building with tns run android



      To reduce startup time, I have installed



      npm install --save-dev nativescript-dev-webpack



      npm install



      and then
      tns run android --bundle



      and getting below error.
      .............
      FAILURE: Build failed with an exception.



      • What went wrong:
        Could not dispatch a message to the daemon.
        .............

      Here is the package.json




      "nativescript":
      "id": "com.business.bapp",
      "tns-android":
      "version": "4.2.0"
      ,
      "tns-ios":
      "version": "4.2.0"

      ,
      "description": "NativeScript Application",
      "license": "SEE LICENSE IN <your-license-filename>",
      "repository": "<fill-your-repository-here>",
      "dependencies":
      "@angular/animations": "~6.1.0",
      "@angular/common": "~6.1.0",
      "@angular/compiler": "~6.1.0",
      "@angular/core": "~6.1.0",
      "@angular/forms": "~6.1.0",
      "@angular/http": "~6.1.0",
      "@angular/platform-browser": "~6.1.0",
      "@angular/platform-browser-dynamic": "~6.1.0",
      "@angular/router": "~6.1.0",
      "nativescript-angular": "~6.1.0",
      "nativescript-phone": "^1.4.0",
      "nativescript-pro-ui": "^3.4.1",
      "nativescript-theme-core": "~1.0.4",
      "nativescript-ui-listview": "^3.7.2",
      "reflect-metadata": "~0.1.8",
      "rxjs": "~6.2.0",
      "tns-core-modules": "~4.2.0",
      "zone.js": "^0.8.26"
      ,
      "devDependencies":
      "@angular/compiler-cli": "~6.1.0",
      "@nativescript/schematics": "~0.3.0",
      "@ngtools/webpack": "~6.2.0",
      "mini-css-extract-plugin": "^0.4.4",
      "nativescript-dev-typescript": "~0.7.0",
      "nativescript-dev-webpack": "^0.17.0",
      "typescript": "~2.7.2",
      "webpack": "^4.25.1",
      "webpack-cli": "^3.1.2"
      ,
      "readme": "NativeScript Application"



      more details about the error :



      > :app:preDebugBuild > Resolve files of :app:debugCompileClasspathiptxxxxxxxnode_modulestns-core-modules-w
      E:xxxxxxplatformsandroidappsrcmainjavacomtnsgencomtelerikwidgetlistListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter.java:41: error: getItemViewType(int) in ListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter cannot override getItemViewType(int) in ListViewDataSourceAdapter
      public int getItemViewType(int param_0) {
      ^
      overridden method is final
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      1 error

      FAILURE: Build failed with an exception.

      * What went wrong:
      Execution failed for task ':app:compileDebugJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.









      share|improve this question















      Project was happily building with tns run android



      To reduce startup time, I have installed



      npm install --save-dev nativescript-dev-webpack



      npm install



      and then
      tns run android --bundle



      and getting below error.
      .............
      FAILURE: Build failed with an exception.



      • What went wrong:
        Could not dispatch a message to the daemon.
        .............

      Here is the package.json




      "nativescript":
      "id": "com.business.bapp",
      "tns-android":
      "version": "4.2.0"
      ,
      "tns-ios":
      "version": "4.2.0"

      ,
      "description": "NativeScript Application",
      "license": "SEE LICENSE IN <your-license-filename>",
      "repository": "<fill-your-repository-here>",
      "dependencies":
      "@angular/animations": "~6.1.0",
      "@angular/common": "~6.1.0",
      "@angular/compiler": "~6.1.0",
      "@angular/core": "~6.1.0",
      "@angular/forms": "~6.1.0",
      "@angular/http": "~6.1.0",
      "@angular/platform-browser": "~6.1.0",
      "@angular/platform-browser-dynamic": "~6.1.0",
      "@angular/router": "~6.1.0",
      "nativescript-angular": "~6.1.0",
      "nativescript-phone": "^1.4.0",
      "nativescript-pro-ui": "^3.4.1",
      "nativescript-theme-core": "~1.0.4",
      "nativescript-ui-listview": "^3.7.2",
      "reflect-metadata": "~0.1.8",
      "rxjs": "~6.2.0",
      "tns-core-modules": "~4.2.0",
      "zone.js": "^0.8.26"
      ,
      "devDependencies":
      "@angular/compiler-cli": "~6.1.0",
      "@nativescript/schematics": "~0.3.0",
      "@ngtools/webpack": "~6.2.0",
      "mini-css-extract-plugin": "^0.4.4",
      "nativescript-dev-typescript": "~0.7.0",
      "nativescript-dev-webpack": "^0.17.0",
      "typescript": "~2.7.2",
      "webpack": "^4.25.1",
      "webpack-cli": "^3.1.2"
      ,
      "readme": "NativeScript Application"



      more details about the error :



      > :app:preDebugBuild > Resolve files of :app:debugCompileClasspathiptxxxxxxxnode_modulestns-core-modules-w
      E:xxxxxxplatformsandroidappsrcmainjavacomtnsgencomtelerikwidgetlistListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter.java:41: error: getItemViewType(int) in ListViewDataSourceAdapter_vendor_77572_32_ListViewDataSourceAdapter cannot override getItemViewType(int) in ListViewDataSourceAdapter
      public int getItemViewType(int param_0) {
      ^
      overridden method is final
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      1 error

      FAILURE: Build failed with an exception.

      * What went wrong:
      Execution failed for task ':app:compileDebugJavaWithJavac'.
      > Compilation failed; see the compiler error output for details.






      angular webpack nativescript






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 11 at 8:36

























      asked Nov 11 at 8:00









      Pratik

      144




      144






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          nativescript-pro-ui is deprecated, remove that and try again.






          share|improve this answer



























            up vote
            0
            down vote













            I could resolve this error by removing



            "nativescript-pro-ui": "^3.4.1",



            from package.json



            Thanks to this post. While I was reading this post, Manoj replied on the same lines. Thanks Manoj.



            But now other error related to android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
            has appeared, for which I might open another post.



            Solution for the Resources Error is here






            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',
              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%2f53246856%2fnativescript-webpack-fails-to-build%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              nativescript-pro-ui is deprecated, remove that and try again.






              share|improve this answer
























                up vote
                1
                down vote



                accepted










                nativescript-pro-ui is deprecated, remove that and try again.






                share|improve this answer






















                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  nativescript-pro-ui is deprecated, remove that and try again.






                  share|improve this answer












                  nativescript-pro-ui is deprecated, remove that and try again.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 11 at 10:25









                  Manoj

                  3,1581916




                  3,1581916






















                      up vote
                      0
                      down vote













                      I could resolve this error by removing



                      "nativescript-pro-ui": "^3.4.1",



                      from package.json



                      Thanks to this post. While I was reading this post, Manoj replied on the same lines. Thanks Manoj.



                      But now other error related to android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
                      has appeared, for which I might open another post.



                      Solution for the Resources Error is here






                      share|improve this answer


























                        up vote
                        0
                        down vote













                        I could resolve this error by removing



                        "nativescript-pro-ui": "^3.4.1",



                        from package.json



                        Thanks to this post. While I was reading this post, Manoj replied on the same lines. Thanks Manoj.



                        But now other error related to android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
                        has appeared, for which I might open another post.



                        Solution for the Resources Error is here






                        share|improve this answer
























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I could resolve this error by removing



                          "nativescript-pro-ui": "^3.4.1",



                          from package.json



                          Thanks to this post. While I was reading this post, Manoj replied on the same lines. Thanks Manoj.



                          But now other error related to android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
                          has appeared, for which I might open another post.



                          Solution for the Resources Error is here






                          share|improve this answer














                          I could resolve this error by removing



                          "nativescript-pro-ui": "^3.4.1",



                          from package.json



                          Thanks to this post. While I was reading this post, Manoj replied on the same lines. Thanks Manoj.



                          But now other error related to android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
                          has appeared, for which I might open another post.



                          Solution for the Resources Error is here







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 11 at 11:49

























                          answered Nov 11 at 11:26









                          Pratik

                          144




                          144



























                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2f53246856%2fnativescript-webpack-fails-to-build%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

                              Top Tejano songwriter Luis Silva dead of heart attack at 64

                              政党

                              天津地下鉄3号線