Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build failure -- in assembleRelease #87

Open
ayan-biswas0412 opened this issue Oct 8, 2020 · 5 comments
Open

Android build failure -- in assembleRelease #87

ayan-biswas0412 opened this issue Oct 8, 2020 · 5 comments

Comments

@ayan-biswas0412
Copy link

I am getting this error everytime when building release app but it works fine in debug app

> Task :react-native-dialogflow:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-dialogflow:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /home/ayan/.gradle/caches/transforms-2/files-2.1/a4aa75ad6ccbe3ab81ae94031ca63766/appcompat-1.0.2/res/values-v26/values-v26.xml:5:5-8:13: AAPT: error: resource android:attr/colorError not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/a4aa75ad6ccbe3ab81ae94031ca63766/appcompat-1.0.2/res/values-v26/values-v26.xml:9:5-12:13: AAPT: error: resource android:attr/colorError not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/a4aa75ad6ccbe3ab81ae94031ca63766/appcompat-1.0.2/res/values-v26/values-v26.xml:13:5-16:13: AAPT: error: style attribute 'android:attr/keyboardNavigationCluster' not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/a4aa75ad6ccbe3ab81ae94031ca63766/appcompat-1.0.2/res/values-v28/values-v28.xml:5:5-8:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/a4aa75ad6ccbe3ab81ae94031ca63766/appcompat-1.0.2/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/99e2c2cf9508116578d0bb5e82ff59c6/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontStyle not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/99e2c2cf9508116578d0bb5e82ff59c6/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/font not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/99e2c2cf9508116578d0bb5e82ff59c6/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontWeight not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/99e2c2cf9508116578d0bb5e82ff59c6/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.
         
     /home/ayan/.gradle/caches/transforms-2/files-2.1/99e2c2cf9508116578d0bb5e82ff59c6/core-1.0.1/res/values/values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.
         

* 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

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

BUILD FAILED in 4m 9s
471 actionable tasks: 401 executed, 70 up-to-date
@ayan-biswas0412 ayan-biswas0412 changed the title Android build failure Android build failure -- in assembleRelease Oct 8, 2020
@attachi20
Copy link

did you solve your probleme

@ayan-biswas0412
Copy link
Author

did you solve your problem

no still not

@attachi20
Copy link

I have the same problème like you

@tomslutsky
Copy link

same for me. any updates with this issue?

@bohdansushchak
Copy link

try add to android/build.gradle

subprojects { project ->
 afterEvaluate {
        if (project.name.contains('react-native-dialogflow')) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
                defaultConfig {
                    targetSdkVersion rootProject.ext.targetSdkVersion
                }
            }
        }
    }
}

That solved build issue for me.

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

No branches or pull requests

4 participants