maxs15 / react-native-spinkit

A collection of animated loading indicators for React Native
MIT License
2.36k stars 300 forks source link

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

Open mjm918 opened 6 years ago

mjm918 commented 6 years ago

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

viv3kk commented 6 years ago

Me too facing this issue..

sunny635533 commented 5 years ago

me too!

pnthach95 commented 5 years ago

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

youngjuning commented 5 years ago

Any Solution??

mjm918 commented 5 years ago

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"
            }
        }
    }
}