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 it to build without errors, similar to iOS
/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
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
@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 { ... }?
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" }
thax..It worked for me by changing to "26.0.2" version in android>app>build.gradle
you saved my day...
compileSdkVersion 26
buildToolsVersion "26.0.1"
I found changing the sdk/build tools versions in my own project didn't help, but following the instructions at https://github.com/oblador/react-native-keychain/issues/68#issuecomment-304836725 allowed me to force the versions used by all dependencies of my project, and that fixed the issue.
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'
}
}
}
}
Most helpful comment
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
but this will work if you eject expo