Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

error when gradlew assembleRelease #285

Open
kenphil opened this issue Sep 25, 2018 · 4 comments
Open

error when gradlew assembleRelease #285

kenphil opened this issue Sep 25, 2018 · 4 comments

Comments

@kenphil
Copy link

kenphil commented Sep 25, 2018

Version

buildToolsVersion : 27.0.3
compileSdkVersion : 27
react-native-audio : 4.1.3
using react-native-sound ? Yes

Actual behaviour

react-native run-android SUCCESSFUL
cd android && ./gradlew assembleRelease BUILD FAILD

details as follow:
Execution failed for task ':react-native-audio:verifyReleaseResources'
com.android.ide.common.process.ProcessException: Failed to execute aapt

@andre-reis
Copy link

andre-reis commented Oct 9, 2018

I have the same problem. Any news @kenphil ?

I get the following while building release

> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
bundle: Writing bundle output to: C:\ReactApp\android\app\build\generated\assets\react\release\index.android.bundle
bundle: Done writing bundle output
bundle: Copying 9 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.
C:\Users\andre\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\eabb8abce8f71bffa85e11b18295d2d5\res\values-v26\values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.

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

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

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

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

C:\Users\andre\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\eabb8abce8f71bffa85e11b18295d2d5\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-audio:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

@andre-reis
Copy link

andre-reis commented Oct 10, 2018

I don't know if it is exactly the same problem, but for me the solution was this:
oblador/react-native-keychain#68 (comment)

@fhammerschmidt
Copy link

fhammerschmidt commented Oct 10, 2018

I got it working by using the same compileSdkVersion, buildToolsVersion and support lib as in my project.

See PR!

@nouha18
Copy link

nouha18 commented May 7, 2019

Hi, I have the same problem but with this module :
React-native-sound-player VerifyRelease failed when I try to build apk releaSe even if it works correctly with simulation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants