maxs15/react-native-spinkit

No resource found that matches the given name: attr 'android:keyboardNavigationCluster'

Opened this issue · 5 comments

I am trying to run my app with react-native run-android but getting the following error

error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'
:react-native-spinkit:processReleaseResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-spinkit:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

I deleted node_modules, run npm install but still same. I tried clearing cache but error still exists

Any solution? I can't even run my project

Me too facing this issue..

me too!

Delete android and ios folder, run react-native eject, then react-native link. It worked for me.

Any Solution??

I fixed the issue long time ago but can't really remember how. In this kind of issues, i try to run the app with Android Studio first. If I'm not mistaken it was related to some SDK issue. Android studio is good to fix SDK related issues. Check whether it is mixing with different version of targetSDK version. If it's related to SDK, you can try as below to force every project to use same SDK:

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