kevinejohn/react-native-keyevent

build failed.

toneyavuz opened this issue · 1 comments

./gradlew assembleRelease

Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

Configure project :react-native-keyevent
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
bundle: Writing bundle output to: /Users/bhenav/workspace/bitbucket/haydigo/haydiGoScanSolution/android/app/build/generated/assets/react/release/index.android.bundle
bundle: Done writing bundle output
bundle: Copying 2613 asset files
bundle: Done copying assets

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

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

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

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

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

/Users/bhenav/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/3e6851486ec366e971e8e588d5ce594a/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-keyevent: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 18s
176 actionable tasks: 33 executed, 143 up-to-date

I opened my project in android studio and agreed to remove build tools version 23 from lib. Release build is working now.