Android Build Error

there is no error for build and run on android emulator both debug and release modes.
but when using assembleRelease to generate APK, the following errors will appear:
> Task :@astrocoders_react-native-selectable-text:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':@astrocoders_react-native-selectable-text:verifyReleaseResources'.
> 1 exception was raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
  error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2711: error: resource android:attr/fontStyle not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2712: error: resource android:attr/font not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2713: error: resource android:attr/fontWeight not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2714: error: resource android:attr/fontVariationSettings not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2715: error: resource android:attr/ttcIndex not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2796: error: resource android:attr/startX not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2799: error: resource android:attr/startY not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2802: error: resource android:attr/endX not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2805: error: resource android:attr/endY not found.
  /home/tornado/Desktop/bookapo/node_modules/@astrocoders/react-native-selectable-text/android/build/intermediates/res/merged/release/values/values.xml:2813: error: resource android:attr/offset not found.
  error: failed linking references.

What's your build tools version? And gradle?
We are using it with
buildscript {
  ext {
      googlePlayServicesVersion = "4.0.1"
      firebaseVersion = "16.1.0"

      buildToolsVersion = "28.0.3"
      minSdkVersion = 18
      compileSdkVersion = 28
      targetSdkVersion = 28
      supportLibVersion = "28.0.0"
  }
  repositories {
      google()
      jcenter()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:3.3.1'
      classpath 'com.google.gms:google-services:4.2.0'
  }
}

@fakenickels there is mine:
buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }
    repositories {
        google()
        jcenter()
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
        classpath("com.android.tools.build:gradle:3.4.1")
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.28.1'
    }
}

Hmm not sure if it's because we are missing layout props, looks like it's during the merge process of gradle. Could you try running cd ./android && ./gradlew clean and try again to see if the error still occurs?

didn't work :(

this only happens in your project or if you try to run our demo it also happens as well? 🤔

finally, I found the solution!!!
I searched this line in google:
error: resource android:attr/colorError not found.
and I faced to this issue:
https://github.com/luggit/react-native-config/issues/299
based on this comment I add this part of configs to my **android/build.gradle**
subprojects {
    afterEvaluate {
        project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = 28
                    buildToolsVersion = "28.0.3"
                }
            }
    }
}

Amazing!
Thanks for providing the solution for others to see

@ammoradi Thanks

Should compileSdkVersion and buildToolsVersion be bumped in https://github.com/Astrocoders/react-native-selectable-text/blob/master/android/build.gradle ? I recently ran into this too.
Solution for RN 0.63.1 was to add this to my build.gradle. But I feel this would be better fixed here.
    afterEvaluate {
        project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion = 29
                    buildToolsVersion = "29.0.2"
                }
            }
    }


Submitting transaction doesn't work

Since about 15 Dec can't submit any transactions, getting this:
error:  ReferenceError: BigInt is not defined
    at Client.<anonymous> (/home/xxx/node_modules/@kinecosystem/kin-sdk-v2/dist/client/client.js:490:51)
    at Generator.next (<anonymous>)
    at /home/xxx/node_modules/@kinecosystem/kin-sdk-v2/dist/client/client.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/xxx/node_modules/@kinecosystem/kin-sdk-v2/dist/client/client.js:4:12)
    at Client.submitSolanaPayment (/home/xxx/node_modules/@kinecosystem/kin-sdk-v2/dist/client/client.js:452:16)
    at Client.<anonymous> (/home/xxx/node_modules/@kinecosystem/kin-sdk-v2/dist/client/client.js:426:37)
    at Generator.next (<anonymous>)
    at fulfilled (/home/xxx/node_modules/@kinecosystem/kin-sdk-v2/dist/client/client.js:5:58)
    at <anonymous>

Tried updating to the latest version 0.3.10, it's the same.

Any news regarding this?

BigInt is built-in to Node v10+ so make sure your Node is relatively up to date.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt

BigInt is built-in to Node v10+ so make sure your Node is relatively up to date.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt