React Native Build Error Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'











up vote
1
down vote

favorite












I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.



This is the complete error :



> Task :app:processReleaseGoogleServices
Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json

error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.

C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.

error: failed linking references.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 54s
203 actionable tasks: 4 executed, 199 up-to-date


Please anyone help me to solve this problem.



Thanks.










share|improve this question


























    up vote
    1
    down vote

    favorite












    I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.



    This is the complete error :



    > Task :app:processReleaseGoogleServices
    Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json

    error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
    error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
    C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

    C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

    C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

    C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

    C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.

    C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.

    error: failed linking references.

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
    > com.android.ide.common.process.ProcessException: Failed to execute aapt

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 3m 54s
    203 actionable tasks: 4 executed, 199 up-to-date


    Please anyone help me to solve this problem.



    Thanks.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.



      This is the complete error :



      > Task :app:processReleaseGoogleServices
      Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json

      error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
      error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.

      error: failed linking references.

      FAILURE: Build failed with an exception.

      * What went wrong:
      Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
      > com.android.ide.common.process.ProcessException: Failed to execute aapt

      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

      * Get more help at https://help.gradle.org

      BUILD FAILED in 3m 54s
      203 actionable tasks: 4 executed, 199 up-to-date


      Please anyone help me to solve this problem.



      Thanks.










      share|improve this question













      I get a problem to build react native after install 'react-native-get-sms-android', you can find here https://www.npmjs.com/package/react-native-get-sms-android, I don't know why, I try to look for similar error but fail all.



      This is the complete error :



      > Task :app:processReleaseGoogleServices
      Parsing json file: D:ProjectReact NativemyProjectandroidappgoogle-services.json

      error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
      error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvalues-v26values-v26.xml:17:5-93: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/font not found.

      C:Usersfrank.gradlecachestransforms-1files-1.1appcompat-v7-27.1.1.aar226ef6010c3c969192062affc53f6ce6resvaluesvalues.xml:251:5-69: AAPT: error: resource android:attr/fontWeight not found.

      error: failed linking references.

      FAILURE: Build failed with an exception.

      * What went wrong:
      Execution failed for task ':react-native-get-sms-android:verifyReleaseResources'.
      > com.android.ide.common.process.ProcessException: Failed to execute aapt

      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

      * Get more help at https://help.gradle.org

      BUILD FAILED in 3m 54s
      203 actionable tasks: 4 executed, 199 up-to-date


      Please anyone help me to solve this problem.



      Thanks.







      android reactjs react-native gradle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 19 at 8:39









      Frank Andrew

      388




      388
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          You need to update your android build tools version.
          The following worked for me.
          In android/build.gradle change ext to look like this:



          ext {
          buildToolsVersion = "28.0.0"
          minSdkVersion = ... // your min SDK
          compileSdkVersion = 28
          targetSdkVersion = ...// your target SDK
          supportLibVersion = "28.0.0"
          }


          and put this at the end of your file:



          subprojects {
          project.configurations.all {
          resolutionStrategy.eachDependency { details ->
          if (details.requested.group == 'com.android.support'
          && !details.requested.name.contains('multidex') ) {
          details.useVersion "28.0.0"
          }
          }
          }
          afterEvaluate {
          project -> if (project.hasProperty("android")) {
          android {
          compileSdkVersion 28
          buildToolsVersion '28.0.0'
          }
          }
          }
          }


          In android/app/build.gradle change this: "com.android.support:appcompat-v7:27.1.1" to this: "com.android.support:appcompat-v7:28.0.0"






          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%2f53370968%2freact-native-build-error-execution-failed-for-task-react-native-get-sms-androi%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








            up vote
            2
            down vote



            accepted










            You need to update your android build tools version.
            The following worked for me.
            In android/build.gradle change ext to look like this:



            ext {
            buildToolsVersion = "28.0.0"
            minSdkVersion = ... // your min SDK
            compileSdkVersion = 28
            targetSdkVersion = ...// your target SDK
            supportLibVersion = "28.0.0"
            }


            and put this at the end of your file:



            subprojects {
            project.configurations.all {
            resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
            && !details.requested.name.contains('multidex') ) {
            details.useVersion "28.0.0"
            }
            }
            }
            afterEvaluate {
            project -> if (project.hasProperty("android")) {
            android {
            compileSdkVersion 28
            buildToolsVersion '28.0.0'
            }
            }
            }
            }


            In android/app/build.gradle change this: "com.android.support:appcompat-v7:27.1.1" to this: "com.android.support:appcompat-v7:28.0.0"






            share|improve this answer

























              up vote
              2
              down vote



              accepted










              You need to update your android build tools version.
              The following worked for me.
              In android/build.gradle change ext to look like this:



              ext {
              buildToolsVersion = "28.0.0"
              minSdkVersion = ... // your min SDK
              compileSdkVersion = 28
              targetSdkVersion = ...// your target SDK
              supportLibVersion = "28.0.0"
              }


              and put this at the end of your file:



              subprojects {
              project.configurations.all {
              resolutionStrategy.eachDependency { details ->
              if (details.requested.group == 'com.android.support'
              && !details.requested.name.contains('multidex') ) {
              details.useVersion "28.0.0"
              }
              }
              }
              afterEvaluate {
              project -> if (project.hasProperty("android")) {
              android {
              compileSdkVersion 28
              buildToolsVersion '28.0.0'
              }
              }
              }
              }


              In android/app/build.gradle change this: "com.android.support:appcompat-v7:27.1.1" to this: "com.android.support:appcompat-v7:28.0.0"






              share|improve this answer























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                You need to update your android build tools version.
                The following worked for me.
                In android/build.gradle change ext to look like this:



                ext {
                buildToolsVersion = "28.0.0"
                minSdkVersion = ... // your min SDK
                compileSdkVersion = 28
                targetSdkVersion = ...// your target SDK
                supportLibVersion = "28.0.0"
                }


                and put this at the end of your file:



                subprojects {
                project.configurations.all {
                resolutionStrategy.eachDependency { details ->
                if (details.requested.group == 'com.android.support'
                && !details.requested.name.contains('multidex') ) {
                details.useVersion "28.0.0"
                }
                }
                }
                afterEvaluate {
                project -> if (project.hasProperty("android")) {
                android {
                compileSdkVersion 28
                buildToolsVersion '28.0.0'
                }
                }
                }
                }


                In android/app/build.gradle change this: "com.android.support:appcompat-v7:27.1.1" to this: "com.android.support:appcompat-v7:28.0.0"






                share|improve this answer












                You need to update your android build tools version.
                The following worked for me.
                In android/build.gradle change ext to look like this:



                ext {
                buildToolsVersion = "28.0.0"
                minSdkVersion = ... // your min SDK
                compileSdkVersion = 28
                targetSdkVersion = ...// your target SDK
                supportLibVersion = "28.0.0"
                }


                and put this at the end of your file:



                subprojects {
                project.configurations.all {
                resolutionStrategy.eachDependency { details ->
                if (details.requested.group == 'com.android.support'
                && !details.requested.name.contains('multidex') ) {
                details.useVersion "28.0.0"
                }
                }
                }
                afterEvaluate {
                project -> if (project.hasProperty("android")) {
                android {
                compileSdkVersion 28
                buildToolsVersion '28.0.0'
                }
                }
                }
                }


                In android/app/build.gradle change this: "com.android.support:appcompat-v7:27.1.1" to this: "com.android.support:appcompat-v7:28.0.0"







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 at 9:12









                nikos fotiadis

                584414




                584414






























                    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%2f53370968%2freact-native-build-error-execution-failed-for-task-react-native-get-sms-androi%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

                    "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                    Alcedinidae

                    RAC Tourist Trophy