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

Can't build after updating to RN 56 - Execution failed for task ':react-native-material-kit:verifyReleaseResources' #397

Open
ds8k opened this issue Jul 23, 2018 · 1 comment

Comments

@ds8k
Copy link

ds8k commented Jul 23, 2018

I'm unable to generate a release build after upgrading to React Native 56:

:react-native-material-kit:verifyReleaseResources/Users/user/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/d966a29d4964b9817b018d8a3a1d16a4/res/values-v26/values-v26.xml:13:5-16:13: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
    
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-material-kit:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

Looks like compileSdkVersion and buildToolsVersion in build.gradle need to be updated. They're pointing to old versions right now:

compileSdkVersion 24
buildToolsVersion '23.0.3'
@kientux
Copy link

kientux commented Sep 10, 2018

I managed to fix this by add below lines into project root's build.gradle that force subprojects to build using the same sdk:

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 27
                buildToolsVersion "27.0.3"
            }
        }
    }
}

Replace version with yours.

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

2 participants