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

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

Closed
trustfall opened this issue Dec 6, 2017 · 7 comments

Comments

@trustfall
Copy link

trustfall commented Dec 6, 2017

Description

Just trying to run a build in Android Studio out of the box after ejecting to ExpoKit, and it errors out on me, with the following error: Error:(13, 5) No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

Expected Behavior

Expected it to build without errors, similar to iOS

Observed Behavior

/Users/kyle/Documents/Development/app-mobile/android/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/27.0.1/res/values-v26/values-v26.xml
`Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/kyle/Library/Android/sdk/build-tools/25.0.2/aapt'' finished with non-zero exit value 1`

Environment

expo - v21.0.0
react native - expo sdk 21 fork
android studio v3.0.1
gradle 2.10

@patilrevansidh
Copy link

patilrevansidh commented Dec 8, 2017

I also faced this issue you just need to make 2 chnages:
in android/build.gradle metion this below code
subprojects { afterEvaluate { project -> if (project.hasProperty("android")) { android { compileSdkVersion 26 buildToolsVersion '26.0.2' } } } }

android/app/build.gradle
change your compliesdk version and buildToolVersion like this:
compileSdkVersion 26 buildToolsVersion "26.0.2"
and in

dependencies {
compile 'com.android.support:appcompat-v7:26.0.2'
}

but this will work if you eject expo

@wmonecke
Copy link

wmonecke commented Jan 16, 2018

@patilrevansidh Could you be more explicit, to where exactly goes
subprojects { afterEvaluate { project -> if (project.hasProperty("android")) { android { compileSdkVersion 26 buildToolsVersion '26.0.2' } } } } ?

For example, inside allProjects { ... }?

@varun07j
Copy link

It worked for me by changing to "26.0.2" version in android>app>build.gradle
def computeBuildToolsVersion = { -> project.hasProperty("buildToolsVersion") ? buildToolsVersion : "26.0.2" }

@RayVaniya
Copy link

RayVaniya commented Feb 26, 2018

thax..It worked for me by changing to "26.0.2" version in android>app>build.gradle
you saved my day...

@Baburaomannepalli
Copy link

compileSdkVersion 26
buildToolsVersion "26.0.1"

@jh3141
Copy link

jh3141 commented Apr 21, 2018

I found changing the sdk/build tools versions in my own project didn't help, but following the instructions at oblador/react-native-keychain#68 (comment) allowed me to force the versions used by all dependencies of my project, and that fixed the issue.

@TheBlackHacker
Copy link

TheBlackHacker commented Jun 12, 2018

Change compileSdkVersion and buildToolsVersion in android/app/build.gradle is worse, fixed it just by add this to android/build.gradle:

subprojects { 
     afterEvaluate { 
         project -> if (project.hasProperty("android")) { 
             android { 
                 compileSdkVersion 26 
                buildToolsVersion '26.0.2' 
             } 
         } 
     } 
 }

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

9 participants