I'm using react-native-photo-upload library to upload profile pic but it's throwing build failed error












1















The libary I'm using is yarn add react-native-photo-upload from https://www.npmjs.com/package/react-native-photo-upload
and it's throwing the following error:



**/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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'.

/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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-image-picker:processReleaseResources FAILED

**FAILURE**: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-picker: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: 5.653 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**


i tried android.enableAapt2=false in gradle.properties of react-native-image-picker but no gain...same error



plz help to resolve it!










share|improve this question




















  • 1





    Welcome to Stack Overflow! Your problem looks like it will be difficult to reproduce without clarifying the question a little. Please could you try to create a Minimal, Complete and Verifiable example?

    – A Jar of Clay
    Jan 18 at 17:29













  • What is the sdk, build tools and support library version you have..

    – Ashwin Mothilal
    Jan 19 at 8:34











  • my gradle version:distributionUrl=https://services.gradle.org/distributions/gradle-3.5.1-all.zip

    – Haseeb Warriach
    Jan 20 at 9:12











  • uildToolsVersion = "26.0.3" minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = "26.1.0"

    – Haseeb Warriach
    Jan 20 at 9:13











  • dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

    – Haseeb Warriach
    Jan 21 at 11:01
















1















The libary I'm using is yarn add react-native-photo-upload from https://www.npmjs.com/package/react-native-photo-upload
and it's throwing the following error:



**/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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'.

/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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-image-picker:processReleaseResources FAILED

**FAILURE**: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-picker: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: 5.653 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**


i tried android.enableAapt2=false in gradle.properties of react-native-image-picker but no gain...same error



plz help to resolve it!










share|improve this question




















  • 1





    Welcome to Stack Overflow! Your problem looks like it will be difficult to reproduce without clarifying the question a little. Please could you try to create a Minimal, Complete and Verifiable example?

    – A Jar of Clay
    Jan 18 at 17:29













  • What is the sdk, build tools and support library version you have..

    – Ashwin Mothilal
    Jan 19 at 8:34











  • my gradle version:distributionUrl=https://services.gradle.org/distributions/gradle-3.5.1-all.zip

    – Haseeb Warriach
    Jan 20 at 9:12











  • uildToolsVersion = "26.0.3" minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = "26.1.0"

    – Haseeb Warriach
    Jan 20 at 9:13











  • dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

    – Haseeb Warriach
    Jan 21 at 11:01














1












1








1








The libary I'm using is yarn add react-native-photo-upload from https://www.npmjs.com/package/react-native-photo-upload
and it's throwing the following error:



**/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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'.

/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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-image-picker:processReleaseResources FAILED

**FAILURE**: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-picker: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: 5.653 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**


i tried android.enableAapt2=false in gradle.properties of react-native-image-picker but no gain...same error



plz help to resolve it!










share|improve this question
















The libary I'm using is yarn add react-native-photo-upload from https://www.npmjs.com/package/react-native-photo-upload
and it's throwing the following error:



**/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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'.

/home/haseeb/Desktop/RN/myProject/node_modules/react-native-image-picker/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-image-picker:processReleaseResources FAILED

**FAILURE**: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-image-picker: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: 5.653 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**


i tried android.enableAapt2=false in gradle.properties of react-native-image-picker but no gain...same error



plz help to resolve it!







javascript android reactjs react-native






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 23:59









Matt Holland

1,09021323




1,09021323










asked Jan 18 at 16:54









Haseeb WarriachHaseeb Warriach

1259




1259








  • 1





    Welcome to Stack Overflow! Your problem looks like it will be difficult to reproduce without clarifying the question a little. Please could you try to create a Minimal, Complete and Verifiable example?

    – A Jar of Clay
    Jan 18 at 17:29













  • What is the sdk, build tools and support library version you have..

    – Ashwin Mothilal
    Jan 19 at 8:34











  • my gradle version:distributionUrl=https://services.gradle.org/distributions/gradle-3.5.1-all.zip

    – Haseeb Warriach
    Jan 20 at 9:12











  • uildToolsVersion = "26.0.3" minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = "26.1.0"

    – Haseeb Warriach
    Jan 20 at 9:13











  • dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

    – Haseeb Warriach
    Jan 21 at 11:01














  • 1





    Welcome to Stack Overflow! Your problem looks like it will be difficult to reproduce without clarifying the question a little. Please could you try to create a Minimal, Complete and Verifiable example?

    – A Jar of Clay
    Jan 18 at 17:29













  • What is the sdk, build tools and support library version you have..

    – Ashwin Mothilal
    Jan 19 at 8:34











  • my gradle version:distributionUrl=https://services.gradle.org/distributions/gradle-3.5.1-all.zip

    – Haseeb Warriach
    Jan 20 at 9:12











  • uildToolsVersion = "26.0.3" minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = "26.1.0"

    – Haseeb Warriach
    Jan 20 at 9:13











  • dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

    – Haseeb Warriach
    Jan 21 at 11:01








1




1





Welcome to Stack Overflow! Your problem looks like it will be difficult to reproduce without clarifying the question a little. Please could you try to create a Minimal, Complete and Verifiable example?

– A Jar of Clay
Jan 18 at 17:29







Welcome to Stack Overflow! Your problem looks like it will be difficult to reproduce without clarifying the question a little. Please could you try to create a Minimal, Complete and Verifiable example?

– A Jar of Clay
Jan 18 at 17:29















What is the sdk, build tools and support library version you have..

– Ashwin Mothilal
Jan 19 at 8:34





What is the sdk, build tools and support library version you have..

– Ashwin Mothilal
Jan 19 at 8:34













my gradle version:distributionUrl=https://services.gradle.org/distributions/gradle-3.5.1-all.zip

– Haseeb Warriach
Jan 20 at 9:12





my gradle version:distributionUrl=https://services.gradle.org/distributions/gradle-3.5.1-all.zip

– Haseeb Warriach
Jan 20 at 9:12













uildToolsVersion = "26.0.3" minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = "26.1.0"

– Haseeb Warriach
Jan 20 at 9:13





uildToolsVersion = "26.0.3" minSdkVersion = 16 compileSdkVersion = 26 targetSdkVersion = 26 supportLibVersion = "26.1.0"

– Haseeb Warriach
Jan 20 at 9:13













dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

– Haseeb Warriach
Jan 21 at 11:01





dependencies { classpath 'com.android.tools.build:gradle:2.3.3'

– Haseeb Warriach
Jan 21 at 11:01












1 Answer
1






active

oldest

votes


















0














Be sure to follow the instructions of the library, after running yarn add react-native-photo-upload
, you need to make sure to link the package and build the project again:



react-native link react-native-image-picker
react-native link react-native-image-resizer
react-native link react-native-fs


After that, you can go to yourProject/android/settings.gradle and verify if all modules have been added. It may look like:



include ':module-name'
project(':module-name').projectDir = new File(rootProject.projectDir,
'../node_modules/module-name/android')


You may also go to yourProject/android/app/build.gradle to check if the modules are present on the dependencies:



dependencies {
compile project(':module-name')
}





share|improve this answer
























  • '../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

    – Haseeb Warriach
    Jan 20 at 9:15











  • modules have been added moreover also present in build,gradle

    – Haseeb Warriach
    Jan 20 at 9:16











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54258327%2fim-using-react-native-photo-upload-library-to-upload-profile-pic-but-its-throw%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Be sure to follow the instructions of the library, after running yarn add react-native-photo-upload
, you need to make sure to link the package and build the project again:



react-native link react-native-image-picker
react-native link react-native-image-resizer
react-native link react-native-fs


After that, you can go to yourProject/android/settings.gradle and verify if all modules have been added. It may look like:



include ':module-name'
project(':module-name').projectDir = new File(rootProject.projectDir,
'../node_modules/module-name/android')


You may also go to yourProject/android/app/build.gradle to check if the modules are present on the dependencies:



dependencies {
compile project(':module-name')
}





share|improve this answer
























  • '../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

    – Haseeb Warriach
    Jan 20 at 9:15











  • modules have been added moreover also present in build,gradle

    – Haseeb Warriach
    Jan 20 at 9:16
















0














Be sure to follow the instructions of the library, after running yarn add react-native-photo-upload
, you need to make sure to link the package and build the project again:



react-native link react-native-image-picker
react-native link react-native-image-resizer
react-native link react-native-fs


After that, you can go to yourProject/android/settings.gradle and verify if all modules have been added. It may look like:



include ':module-name'
project(':module-name').projectDir = new File(rootProject.projectDir,
'../node_modules/module-name/android')


You may also go to yourProject/android/app/build.gradle to check if the modules are present on the dependencies:



dependencies {
compile project(':module-name')
}





share|improve this answer
























  • '../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

    – Haseeb Warriach
    Jan 20 at 9:15











  • modules have been added moreover also present in build,gradle

    – Haseeb Warriach
    Jan 20 at 9:16














0












0








0







Be sure to follow the instructions of the library, after running yarn add react-native-photo-upload
, you need to make sure to link the package and build the project again:



react-native link react-native-image-picker
react-native link react-native-image-resizer
react-native link react-native-fs


After that, you can go to yourProject/android/settings.gradle and verify if all modules have been added. It may look like:



include ':module-name'
project(':module-name').projectDir = new File(rootProject.projectDir,
'../node_modules/module-name/android')


You may also go to yourProject/android/app/build.gradle to check if the modules are present on the dependencies:



dependencies {
compile project(':module-name')
}





share|improve this answer













Be sure to follow the instructions of the library, after running yarn add react-native-photo-upload
, you need to make sure to link the package and build the project again:



react-native link react-native-image-picker
react-native link react-native-image-resizer
react-native link react-native-fs


After that, you can go to yourProject/android/settings.gradle and verify if all modules have been added. It may look like:



include ':module-name'
project(':module-name').projectDir = new File(rootProject.projectDir,
'../node_modules/module-name/android')


You may also go to yourProject/android/app/build.gradle to check if the modules are present on the dependencies:



dependencies {
compile project(':module-name')
}






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 19 at 6:07









anonymanonym

164115




164115













  • '../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

    – Haseeb Warriach
    Jan 20 at 9:15











  • modules have been added moreover also present in build,gradle

    – Haseeb Warriach
    Jan 20 at 9:16



















  • '../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

    – Haseeb Warriach
    Jan 20 at 9:15











  • modules have been added moreover also present in build,gradle

    – Haseeb Warriach
    Jan 20 at 9:16

















'../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

– Haseeb Warriach
Jan 20 at 9:15





'../node_modules/react-native-fs/android') include ':react-native-image-resizer' project(':react-native-image-resizer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-resizer/android') include ':react-native-image-picker' project(':react-native-image-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-image-picker/android') include ':react-native-gesture-handler' project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android') include ':app'

– Haseeb Warriach
Jan 20 at 9:15













modules have been added moreover also present in build,gradle

– Haseeb Warriach
Jan 20 at 9:16





modules have been added moreover also present in build,gradle

– Haseeb Warriach
Jan 20 at 9:16


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54258327%2fim-using-react-native-photo-upload-library-to-upload-profile-pic-but-its-throw%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Liquibase includeAll doesn't find base path

How to use setInterval in EJS file?

Petrus Granier-Deferre