{"action":"created","issue":{"url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/882","repository_url":"https://api.github.com/repos/react-community/react-native-image-picker","labels_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/882/labels{/name}","comments_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/882/comments","events_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/882/events","html_url":"https://github.com/react-community/react-native-image-picker/issues/882","id":338833471,"node_id":"MDU6SXNzdWUzMzg4MzM0NzE=","number":882,"title":"AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'","user":{"login":"huston007","id":4318513,"node_id":"MDQ6VXNlcjQzMTg1MTM=","avatar_url":"https://avatars2.githubusercontent.com/u/4318513?v=4","gravatar_id":"","url":"https://api.github.com/users/huston007","html_url":"https://github.com/huston007","followers_url":"https://api.github.com/users/huston007/followers","following_url":"https://api.github.com/users/huston007/following{/other_user}","gists_url":"https://api.github.com/users/huston007/gists{/gist_id}","starred_url":"https://api.github.com/users/huston007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huston007/subscriptions","organizations_url":"https://api.github.com/users/huston007/orgs","repos_url":"https://api.github.com/users/huston007/repos","events_url":"https://api.github.com/users/huston007/events{/privacy}","received_events_url":"https://api.github.com/users/huston007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-06T07:25:48Z","updated_at":"2018-08-14T18:38:52Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nI've upgraded to latest React Native 0.56.0 – It also brings updates of Android build tools versions. I use latest react-native-image-picker@0.26.10\r\nWhen I run android build (`react-native run-android`) it fails with this messages:\r\n\r\n```\r\n:react-native-image-picker:preBuild UP-TO-DATE\r\n:react-native-image-picker:preReleaseBuild UP-TO-DATE\r\n:react-native-image-picker:checkReleaseManifest\r\n:react-native-image-picker:preDebugAndroidTestBuild UP-TO-DATE\r\n:react-native-image-picker:preDebugBuild UP-TO-DATE\r\n:react-native-image-picker:preDebugUnitTestBuild UP-TO-DATE\r\n:react-native-image-picker:preReleaseUnitTestBuild UP-TO-DATE\r\n:react-native-image-picker:prepareAndroidArchLifecycleRuntime100Library\r\n:react-native-image-picker:prepareComAndroidSupportAnimatedVectorDrawable2610Library\r\n:react-native-image-picker:prepareComAndroidSupportAppcompatV72610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportCompat2610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportCoreUi2610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportCoreUtils2610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportFragment2610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportMediaCompat2610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportV42610Library\r\n:react-native-image-picker:prepareComAndroidSupportSupportVectorDrawable2610Library\r\n:react-native-image-picker:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library\r\n:react-native-image-picker:prepareComFacebookFrescoDrawee190Library\r\n:react-native-image-picker:prepareComFacebookFrescoFbcore190Library\r\n:react-native-image-picker:prepareComFacebookFrescoFresco190Library\r\n:react-native-image-picker:prepareComFacebookFrescoImagepipeline190Library\r\n:react-native-image-picker:prepareComFacebookFrescoImagepipelineBase190Library\r\n:react-native-image-picker:prepareComFacebookFrescoImagepipelineOkhttp3190Library\r\n:react-native-image-picker:prepareComFacebookReactReactNative0560Library\r\n:react-native-image-picker:prepareComFacebookSoloaderSoloader030Library\r\n:react-native-image-picker:prepareOrgWebkitAndroidJscR174650Library\r\n:react-native-image-picker:prepareReleaseDependencies\r\n:react-native-image-picker:compileReleaseAidl\r\n:react-native-image-picker:compileReleaseNdk NO-SOURCE\r\n:react-native-image-picker:compileLint\r\n:react-native-image-picker:copyReleaseLint NO-SOURCE\r\n:react-native-image-picker:compileReleaseRenderscript\r\n:react-native-image-picker:generateReleaseBuildConfig\r\n:react-native-image-picker:generateReleaseResValues\r\n:react-native-image-picker:generateReleaseResources\r\n:react-native-image-picker:mergeReleaseResources\r\n:react-native-image-picker:processReleaseManifest\r\n:react-native-image-picker:processReleaseResources\r\n/Users/.../Documents/work/.../node_modules/react-native-image-picker/android/build/intermediates/res/merged/release/values-v26/values-v\r\n26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.\r\n\r\n/Users/.../Documents/work/.../node_modules/react-native-image-picker/android/build/intermediates/res/merged/release/values-v26/values-v\r\n26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.\r\n\r\n\r\n:react-native-image-picker:processReleaseResources FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':react-native-image-picker:processReleaseResources'.\r\n> com.android.ide.common.process.ProcessException: Failed to execute aapt\r\n```\r\n\r\n### How to repeat issue and example\r\n\r\nJust try to use react-native-image-picker with latest React Native 0.56.0\r\n\r\n### Solution\r\n\r\nWhat needs to be done to address this issue? Ideally, provide a pull request with a fix.\r\n\r\n### Additional Information\r\n\r\n* React Native version: 0.56.0\r\n* Platform: Android\r\n* Development Operating System: macOS\r\n* Dev tools: \r\n```\r\n    buildToolsVersion = \"26.0.3\"\r\n    minSdkVersion = 16\r\n    compileSdkVersion = 26\r\n    targetSdkVersion = 26\r\n    supportLibVersion = \"26.1.0\"\r\n```\r\n\r\n### Solution\r\n\r\nBuilding react-native-image-picker on the same tools version as main project helps, so I suggest using general approach of supporting passing tools version from root project:\r\n```\r\ndef _ext = rootProject.ext;\r\n\r\ndef _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 25;\r\ndef _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '25.0.2';\r\ndef _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 16;\r\ndef _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 25;\r\n\r\nandroid {\r\n    compileSdkVersion _compileSdkVersion\r\n    buildToolsVersion _buildToolsVersion\r\n\r\n    defaultConfig {\r\n        minSdkVersion _minSdkVersion\r\n        targetSdkVersion _targetSdkVersion\r\n        versionCode 1\r\n        versionName computeVersionName()\r\n    }\r\n    lintOptions {\r\n        abortOnError false\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/comments/412973978","html_url":"https://github.com/react-community/react-native-image-picker/issues/882#issuecomment-412973978","issue_url":"https://api.github.com/repos/react-community/react-native-image-picker/issues/882","id":412973978,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjk3Mzk3OA==","user":{"login":"abartolo","id":5394228,"node_id":"MDQ6VXNlcjUzOTQyMjg=","avatar_url":"https://avatars0.githubusercontent.com/u/5394228?v=4","gravatar_id":"","url":"https://api.github.com/users/abartolo","html_url":"https://github.com/abartolo","followers_url":"https://api.github.com/users/abartolo/followers","following_url":"https://api.github.com/users/abartolo/following{/other_user}","gists_url":"https://api.github.com/users/abartolo/gists{/gist_id}","starred_url":"https://api.github.com/users/abartolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abartolo/subscriptions","organizations_url":"https://api.github.com/users/abartolo/orgs","repos_url":"https://api.github.com/users/abartolo/repos","events_url":"https://api.github.com/users/abartolo/events{/privacy}","received_events_url":"https://api.github.com/users/abartolo/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T18:38:52Z","updated_at":"2018-08-14T18:38:52Z","author_association":"NONE","body":"I created a pull request that fixes this issue so anyone migrated to React Native v56 should be good. This approach worked for me as @SumanthPuram method broke other dependencies that I am using.\r\n https://github.com/react-community/react-native-image-picker/pull/912"}}
{"actor":{"display_login":"abartolo"}}