React native Android Generate Signed APK giving Resource error












1















I have completed my android project on React Native and finding this error while compiling the project for Signed Apk.



> Task :react-native-video:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
/Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

/Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

/Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:17:5-93:AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

/Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

/Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/font not found.

/Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.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-keep-awake: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 2m 42s
132 actionable tasks: 100 executed, 32 up-to-date


These are the problems I am getting, these are about resources and I don't know how to resolve it. It seems like Version issue with targetSDK but can't figure out










share|improve this question



























    1















    I have completed my android project on React Native and finding this error while compiling the project for Signed Apk.



    > Task :react-native-video:compileReleaseJavaWithJavac
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.

    error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
    error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
    /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

    /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

    /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:17:5-93:AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

    /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

    /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/font not found.

    /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.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-keep-awake: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 2m 42s
    132 actionable tasks: 100 executed, 32 up-to-date


    These are the problems I am getting, these are about resources and I don't know how to resolve it. It seems like Version issue with targetSDK but can't figure out










    share|improve this question

























      1












      1








      1








      I have completed my android project on React Native and finding this error while compiling the project for Signed Apk.



      > Task :react-native-video:compileReleaseJavaWithJavac
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.

      error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
      error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:17:5-93:AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/font not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.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-keep-awake: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 2m 42s
      132 actionable tasks: 100 executed, 32 up-to-date


      These are the problems I am getting, these are about resources and I don't know how to resolve it. It seems like Version issue with targetSDK but can't figure out










      share|improve this question














      I have completed my android project on React Native and finding this error while compiling the project for Signed Apk.



      > Task :react-native-video:compileReleaseJavaWithJavac
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.

      error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
      error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: resource android:attr/colorError not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values-v26/values-v26.xml:17:5-93:AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontStyle not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/font not found.

      /Users/kedardave/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/e10f37597a16932be24db019d75c890a/res/values/values.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-keep-awake: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 2m 42s
      132 actionable tasks: 100 executed, 32 up-to-date


      These are the problems I am getting, these are about resources and I don't know how to resolve it. It seems like Version issue with targetSDK but can't figure out







      javascript android react-native react-native-video






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 17:38









      Kedar DaveKedar Dave

      152114




      152114
























          1 Answer
          1






          active

          oldest

          votes


















          1














          Change supportLibVersion of build.gradle of your project to 27.1.1



          Edit



          How about adding below code to build.gradle of project,



          subprojects {
          afterEvaluate {project ->
          if (project.hasProperty("android")) {
          android {
          compileSdkVersion 27
          buildToolsVersion "27.1.1"
          }
          }
          }
          }





          share|improve this answer


























          • I have changed the support library build.gradle to 27.1.1 but still not working

            – Kedar Dave
            Nov 23 '18 at 5:17











          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%2f53435970%2freact-native-android-generate-signed-apk-giving-resource-error%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









          1














          Change supportLibVersion of build.gradle of your project to 27.1.1



          Edit



          How about adding below code to build.gradle of project,



          subprojects {
          afterEvaluate {project ->
          if (project.hasProperty("android")) {
          android {
          compileSdkVersion 27
          buildToolsVersion "27.1.1"
          }
          }
          }
          }





          share|improve this answer


























          • I have changed the support library build.gradle to 27.1.1 but still not working

            – Kedar Dave
            Nov 23 '18 at 5:17
















          1














          Change supportLibVersion of build.gradle of your project to 27.1.1



          Edit



          How about adding below code to build.gradle of project,



          subprojects {
          afterEvaluate {project ->
          if (project.hasProperty("android")) {
          android {
          compileSdkVersion 27
          buildToolsVersion "27.1.1"
          }
          }
          }
          }





          share|improve this answer


























          • I have changed the support library build.gradle to 27.1.1 but still not working

            – Kedar Dave
            Nov 23 '18 at 5:17














          1












          1








          1







          Change supportLibVersion of build.gradle of your project to 27.1.1



          Edit



          How about adding below code to build.gradle of project,



          subprojects {
          afterEvaluate {project ->
          if (project.hasProperty("android")) {
          android {
          compileSdkVersion 27
          buildToolsVersion "27.1.1"
          }
          }
          }
          }





          share|improve this answer















          Change supportLibVersion of build.gradle of your project to 27.1.1



          Edit



          How about adding below code to build.gradle of project,



          subprojects {
          afterEvaluate {project ->
          if (project.hasProperty("android")) {
          android {
          compileSdkVersion 27
          buildToolsVersion "27.1.1"
          }
          }
          }
          }






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 '18 at 20:13

























          answered Nov 22 '18 at 19:41









          Ryan94Ryan94

          8919




          8919













          • I have changed the support library build.gradle to 27.1.1 but still not working

            – Kedar Dave
            Nov 23 '18 at 5:17



















          • I have changed the support library build.gradle to 27.1.1 but still not working

            – Kedar Dave
            Nov 23 '18 at 5:17

















          I have changed the support library build.gradle to 27.1.1 but still not working

          – Kedar Dave
          Nov 23 '18 at 5:17





          I have changed the support library build.gradle to 27.1.1 but still not working

          – Kedar Dave
          Nov 23 '18 at 5:17




















          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%2f53435970%2freact-native-android-generate-signed-apk-giving-resource-error%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