Loading dependency graph, done.
Scanning folders for symlinks in /Users/javiercastro/git/iResucito/node_modules (17ms)
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Incremental java compilation is an incubating feature.
:app:deleteAssets UP-TO-DATE
:app:copyToAssets UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:react-native-contacts:preBuild UP-TO-DATE
:react-native-contacts:preReleaseBuild UP-TO-DATE
:react-native-contacts:checkReleaseManifest
:react-native-contacts:preDebugAndroidTestBuild UP-TO-DATE
:react-native-contacts:preDebugBuild UP-TO-DATE
:react-native-contacts:preDebugUnitTestBuild UP-TO-DATE
:react-native-contacts:preReleaseUnitTestBuild UP-TO-DATE
:react-native-contacts:prepareAndroidArchLifecycleRuntime100Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportAnimatedVectorDrawable2610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportAppcompatV72610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportCompat2610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportCoreUi2610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportCoreUtils2610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportFragment2610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportMediaCompat2610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportV42610Library UP-TO-DATE
:react-native-contacts:prepareComAndroidSupportSupportVectorDrawable2610Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFrescoDrawee190Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFrescoFbcore190Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFrescoFresco190Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFrescoImagepipeline190Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFrescoImagepipelineBase190Library UP-TO-DATE
:react-native-contacts:prepareComFacebookFrescoImagepipelineOkhttp3190Library UP-TO-DATE
:react-native-contacts:prepareComFacebookReactReactNative0560Library UP-TO-DATE
:react-native-contacts:prepareComFacebookSoloaderSoloader030Library UP-TO-DATE
:react-native-contacts:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE
:react-native-contacts:prepareReleaseDependencies
:react-native-contacts:compileReleaseAidl UP-TO-DATE
:react-native-contacts:compileReleaseNdk UP-TO-DATE
:react-native-contacts:compileLint UP-TO-DATE
:react-native-contacts:copyReleaseLint UP-TO-DATE
:react-native-contacts:compileReleaseRenderscript UP-TO-DATE
:react-native-contacts:generateReleaseBuildConfig UP-TO-DATE
:react-native-contacts:generateReleaseResValues UP-TO-DATE
:react-native-contacts:generateReleaseResources UP-TO-DATE
:react-native-contacts:mergeReleaseResources UP-TO-DATE
:react-native-contacts:processReleaseManifest UP-TO-DATE
:react-native-contacts:processReleaseResources
/Users/javiercastro/git/iResucito/node_modules/react-native-contacts/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
/Users/javiercastro/git/iResucito/node_modules/react-native-contacts/android/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
:react-native-contacts:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-contacts:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 10.638 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
Any advice?
react-native: 0.56
Solved! The better way I've found is to use the same compileSdkVersion and buildToolsVersion for EVERY react-native plugin I have on my app. Like this:
//Adding this to the root build.gradle solved my problem, thanks @Yalamber
subprojects {
afterEvaluate { project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
}
}
}
}
Most helpful comment
Solved! The better way I've found is to use the same compileSdkVersion and buildToolsVersion for EVERY react-native plugin I have on my app. Like this: