rusel1989 / react-native-bluetooth-serial

Port of https://github.com/don/BluetoothSerial for react native
476 stars 291 forks source link

Execution failed for task ':react-native-bluetooth-serial:verifyReleaseResources'. #102

Open ghost opened 5 years ago

ghost commented 5 years ago

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed Output: error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found. error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found. /Users/huidongche/Documents/sz/workflow/workflow-mobile/node_modules/react-native-bluetooth-serial/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:7: error: resource android:attr/colorError not found. /Users/huidongche/Documents/sz/workflow/workflow-mobile/node_modules/react-native-bluetooth-serial/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:11: error: resource android:attr/colorError not found. /Users/huidongche/Documents/sz/workflow/workflow-mobile/node_modules/react-native-bluetooth-serial/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: style attribute 'android:attr/keyboardNavigationCluster' not found. /Users/huidongche/Documents/sz/workflow/workflow-mobile/node_modules/react-native-bluetooth-serial/android/build/intermediates/res/merged/release/values/values.xml:226: error: resource android:attr/fontStyle not found. /Users/huidongche/Documents/sz/workflow/workflow-mobile/node_modules/react-native-bluetooth-serial/android/build/intermediates/res/merged/release/values/values.xml:226: error: resource android:attr/font not found. /Users/huidongche/Documents/sz/workflow/workflow-mobile/node_modules/react-native-bluetooth-serial/android/build/intermediates/res/merged/release/values/values.xml:226: error: resource android:attr/fontWeight not found. error: failed linking references.

Command: /Users/huidongche/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-4818971-osx.jar/35e5db7c76f122562c5cd109f87be003/aapt2-3.2.0-4818971-osx/aapt2 link -I\

ext { buildToolsVersion = "27.0.3" minSdkVersion = 19 compileSdkVersion = 27 targetSdkVersion = 26 supportLibVersion = "27.1.1" }

pawelqs commented 5 years ago

Got the same problem. Did you resolve it anyway?

ghost commented 5 years ago

Got the same problem. Did you resolve it anyway?

no

pawelqs commented 5 years ago

I finally did. This solution helped me: https://github.com/facebook/react-native/issues/19239#issuecomment-439232501 I have also installed this libs before: libncurses5:i386 libstdc++6:i386 zlib1g:i386 (suggested somewhere in linked topic) but without an effect, so I suppose that adding to android/build.gradle subprojects code was the solution.

hariom1995 commented 4 years ago

Task :react-native-bluetooth-serial:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

buildscript { ext { buildToolsVersion = "29.0.2" minSdkVersion = 28 compileSdkVersion = 29 targetSdkVersion = 29 } repositories { google() jcenter() } dependencies { classpath("com.android.tools.build:gradle:3.5.3") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }

Facing the same issue..

Viral-Gajera commented 1 year ago

I was having the same issue

Task :react-native-bluetooth-serial:verifyReleaseResources FAILED

with this project configuration

image

But this work for me...