React native with android project unable to build :react-native-share











up vote
-1
down vote

favorite












FPTECHS044s-MacBook-Pro:android prabhudas$ ./gradlew build --refresh-dependencies
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details



FAILURE: Build failed with an exception.





  • What went wrong:
    A problem occurred configuring project ':react-native-share'.




    Could not resolve all artifacts for configuration ':react-native-share:classpath'.
    Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
    Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
    Could not download protos.jar (com.android.tools.analytics-library:protos:26.1.2)
    Could not get resource 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'.
    Could not HEAD 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'. Received status code 502 from server: Bad Gateway




  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


  • Get more help at https://help.gradle.org



BUILD FAILED in 1m 11s






repositories {
// google()
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
maven { url 'https://maven.fabric.io/public' }
}




allprojects {
repositories {
// google()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
/*maven {
url "https://jitpack.io"
}*/
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url "/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/android"
url "$rootDir/../node_modules/react-native/android"
}
/*maven {
url 'https://maven.google.com'
}*/
}
}





Every time I run sudo react-native run-android






/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:90
throw err0;
^

Error: EACCES: permission denied, mkdir '/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/node_modules/.cache'
at Object.mkdirSync (fs.js:776:3)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:71:13)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at save (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/@babel/register/lib/cache.js:50:20)
at internalTickCallback (internal/process/next_tick.js:70:11)
at process._tickCallback (internal/process/next_tick.js:47:5)
at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
Process terminated. Press <enter> to close the window

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]












share|improve this question









New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Please add some context to explain the code sections.
    – Ebin Manuval
    Nov 21 at 5:43










  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
    – rvazquezglez
    Nov 21 at 6:12










  • Could you please check the content now.
    – Prabhudas kuppala
    Nov 21 at 8:18















up vote
-1
down vote

favorite












FPTECHS044s-MacBook-Pro:android prabhudas$ ./gradlew build --refresh-dependencies
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details



FAILURE: Build failed with an exception.





  • What went wrong:
    A problem occurred configuring project ':react-native-share'.




    Could not resolve all artifacts for configuration ':react-native-share:classpath'.
    Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
    Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
    Could not download protos.jar (com.android.tools.analytics-library:protos:26.1.2)
    Could not get resource 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'.
    Could not HEAD 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'. Received status code 502 from server: Bad Gateway




  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


  • Get more help at https://help.gradle.org



BUILD FAILED in 1m 11s






repositories {
// google()
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
maven { url 'https://maven.fabric.io/public' }
}




allprojects {
repositories {
// google()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
/*maven {
url "https://jitpack.io"
}*/
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url "/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/android"
url "$rootDir/../node_modules/react-native/android"
}
/*maven {
url 'https://maven.google.com'
}*/
}
}





Every time I run sudo react-native run-android






/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:90
throw err0;
^

Error: EACCES: permission denied, mkdir '/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/node_modules/.cache'
at Object.mkdirSync (fs.js:776:3)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:71:13)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at save (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/@babel/register/lib/cache.js:50:20)
at internalTickCallback (internal/process/next_tick.js:70:11)
at process._tickCallback (internal/process/next_tick.js:47:5)
at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
Process terminated. Press <enter> to close the window

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]












share|improve this question









New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Please add some context to explain the code sections.
    – Ebin Manuval
    Nov 21 at 5:43










  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
    – rvazquezglez
    Nov 21 at 6:12










  • Could you please check the content now.
    – Prabhudas kuppala
    Nov 21 at 8:18













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











FPTECHS044s-MacBook-Pro:android prabhudas$ ./gradlew build --refresh-dependencies
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details



FAILURE: Build failed with an exception.





  • What went wrong:
    A problem occurred configuring project ':react-native-share'.




    Could not resolve all artifacts for configuration ':react-native-share:classpath'.
    Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
    Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
    Could not download protos.jar (com.android.tools.analytics-library:protos:26.1.2)
    Could not get resource 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'.
    Could not HEAD 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'. Received status code 502 from server: Bad Gateway




  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


  • Get more help at https://help.gradle.org



BUILD FAILED in 1m 11s






repositories {
// google()
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
maven { url 'https://maven.fabric.io/public' }
}




allprojects {
repositories {
// google()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
/*maven {
url "https://jitpack.io"
}*/
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url "/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/android"
url "$rootDir/../node_modules/react-native/android"
}
/*maven {
url 'https://maven.google.com'
}*/
}
}





Every time I run sudo react-native run-android






/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:90
throw err0;
^

Error: EACCES: permission denied, mkdir '/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/node_modules/.cache'
at Object.mkdirSync (fs.js:776:3)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:71:13)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at save (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/@babel/register/lib/cache.js:50:20)
at internalTickCallback (internal/process/next_tick.js:70:11)
at process._tickCallback (internal/process/next_tick.js:47:5)
at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
Process terminated. Press <enter> to close the window

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]












share|improve this question









New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











FPTECHS044s-MacBook-Pro:android prabhudas$ ./gradlew build --refresh-dependencies
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details



FAILURE: Build failed with an exception.





  • What went wrong:
    A problem occurred configuring project ':react-native-share'.




    Could not resolve all artifacts for configuration ':react-native-share:classpath'.
    Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
    Searched in the following locations:
    https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
    Could not download protos.jar (com.android.tools.analytics-library:protos:26.1.2)
    Could not get resource 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'.
    Could not HEAD 'https://maven.google.com/com/android/tools/analytics-library/protos/26.1.2/protos-26.1.2.jar'. Received status code 502 from server: Bad Gateway




  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.


  • Get more help at https://help.gradle.org



BUILD FAILED in 1m 11s






repositories {
// google()
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
maven { url 'https://maven.fabric.io/public' }
}




allprojects {
repositories {
// google()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
/*maven {
url "https://jitpack.io"
}*/
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url "/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/android"
url "$rootDir/../node_modules/react-native/android"
}
/*maven {
url 'https://maven.google.com'
}*/
}
}





Every time I run sudo react-native run-android






/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:90
throw err0;
^

Error: EACCES: permission denied, mkdir '/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/node_modules/.cache'
at Object.mkdirSync (fs.js:776:3)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:71:13)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at save (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/@babel/register/lib/cache.js:50:20)
at internalTickCallback (internal/process/next_tick.js:70:11)
at process._tickCallback (internal/process/next_tick.js:47:5)
at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
Process terminated. Press <enter> to close the window

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]








repositories {
// google()
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
maven { url 'https://maven.fabric.io/public' }
}




allprojects {
repositories {
// google()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
/*maven {
url "https://jitpack.io"
}*/
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url "/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/android"
url "$rootDir/../node_modules/react-native/android"
}
/*maven {
url 'https://maven.google.com'
}*/
}
}





repositories {
// google()
jcenter()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
maven { url 'https://maven.fabric.io/public' }
}




allprojects {
repositories {
// google()
maven {
url 'https://dl.google.com/dl/android/maven2'
}
jcenter()
/*maven {
url "https://jitpack.io"
}*/
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
// url "/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/android"
url "$rootDir/../node_modules/react-native/android"
}
/*maven {
url 'https://maven.google.com'
}*/
}
}





/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:90
throw err0;
^

Error: EACCES: permission denied, mkdir '/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/node_modules/.cache'
at Object.mkdirSync (fs.js:776:3)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:71:13)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at save (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/@babel/register/lib/cache.js:50:20)
at internalTickCallback (internal/process/next_tick.js:70:11)
at process._tickCallback (internal/process/next_tick.js:47:5)
at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
Process terminated. Press <enter> to close the window

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]





/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:90
throw err0;
^

Error: EACCES: permission denied, mkdir '/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/react-native/node_modules/.cache'
at Object.mkdirSync (fs.js:776:3)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:71:13)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at sync (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/mkdirp/index.js:77:24)
at save (/Users/prabhudas/StudioProjects/TilaWithReactJS/node_modules/@babel/register/lib/cache.js:50:20)
at internalTickCallback (internal/process/next_tick.js:70:11)
at process._tickCallback (internal/process/next_tick.js:47:5)
at Function.Module.runMain (internal/modules/cjs/loader.js:778:11)
at startup (internal/bootstrap/node.js:300:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:826:3)
Process terminated. Press <enter> to close the window

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]






android react-native build.gradle






share|improve this question









New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 21 at 7:51





















New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 21 at 5:32









Prabhudas kuppala

83




83




New contributor




Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Prabhudas kuppala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Please add some context to explain the code sections.
    – Ebin Manuval
    Nov 21 at 5:43










  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
    – rvazquezglez
    Nov 21 at 6:12










  • Could you please check the content now.
    – Prabhudas kuppala
    Nov 21 at 8:18


















  • Please add some context to explain the code sections.
    – Ebin Manuval
    Nov 21 at 5:43










  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
    – rvazquezglez
    Nov 21 at 6:12










  • Could you please check the content now.
    – Prabhudas kuppala
    Nov 21 at 8:18
















Please add some context to explain the code sections.
– Ebin Manuval
Nov 21 at 5:43




Please add some context to explain the code sections.
– Ebin Manuval
Nov 21 at 5:43












Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
– rvazquezglez
Nov 21 at 6:12




Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
– rvazquezglez
Nov 21 at 6:12












Could you please check the content now.
– Prabhudas kuppala
Nov 21 at 8:18




Could you please check the content now.
– Prabhudas kuppala
Nov 21 at 8:18












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Do this Commands May Help You (Try it!) :



Step 1: npm uninstall react-native-share --save-dev

Step 2: npm install --save react-native-share

Step 3: npm link

Step 4: npm link react-native-share

Step 5: Killall node -9

Step 6: react-native run-android





share|improve this answer








New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • those it work ?
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • you just need to link your project
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • tell me when you done it
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • good luck my friend
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:17










  • > Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
    – Prabhudas kuppala
    Nov 21 at 7:00











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',
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
});


}
});






Prabhudas kuppala is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53405777%2freact-native-with-android-project-unable-to-build-react-native-share%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








up vote
0
down vote



accepted










Do this Commands May Help You (Try it!) :



Step 1: npm uninstall react-native-share --save-dev

Step 2: npm install --save react-native-share

Step 3: npm link

Step 4: npm link react-native-share

Step 5: Killall node -9

Step 6: react-native run-android





share|improve this answer








New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • those it work ?
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • you just need to link your project
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • tell me when you done it
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • good luck my friend
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:17










  • > Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
    – Prabhudas kuppala
    Nov 21 at 7:00















up vote
0
down vote



accepted










Do this Commands May Help You (Try it!) :



Step 1: npm uninstall react-native-share --save-dev

Step 2: npm install --save react-native-share

Step 3: npm link

Step 4: npm link react-native-share

Step 5: Killall node -9

Step 6: react-native run-android





share|improve this answer








New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • those it work ?
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • you just need to link your project
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • tell me when you done it
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • good luck my friend
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:17










  • > Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
    – Prabhudas kuppala
    Nov 21 at 7:00













up vote
0
down vote



accepted







up vote
0
down vote



accepted






Do this Commands May Help You (Try it!) :



Step 1: npm uninstall react-native-share --save-dev

Step 2: npm install --save react-native-share

Step 3: npm link

Step 4: npm link react-native-share

Step 5: Killall node -9

Step 6: react-native run-android





share|improve this answer








New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









Do this Commands May Help You (Try it!) :



Step 1: npm uninstall react-native-share --save-dev

Step 2: npm install --save react-native-share

Step 3: npm link

Step 4: npm link react-native-share

Step 5: Killall node -9

Step 6: react-native run-android






share|improve this answer








New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered Nov 21 at 5:50









MoHammaD ReZa DehGhani

389




389




New contributor




MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






MoHammaD ReZa DehGhani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • those it work ?
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • you just need to link your project
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • tell me when you done it
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • good luck my friend
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:17










  • > Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
    – Prabhudas kuppala
    Nov 21 at 7:00


















  • those it work ?
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • you just need to link your project
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • tell me when you done it
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:16










  • good luck my friend
    – MoHammaD ReZa DehGhani
    Nov 21 at 6:17










  • > Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
    – Prabhudas kuppala
    Nov 21 at 7:00
















those it work ?
– MoHammaD ReZa DehGhani
Nov 21 at 6:16




those it work ?
– MoHammaD ReZa DehGhani
Nov 21 at 6:16












you just need to link your project
– MoHammaD ReZa DehGhani
Nov 21 at 6:16




you just need to link your project
– MoHammaD ReZa DehGhani
Nov 21 at 6:16












tell me when you done it
– MoHammaD ReZa DehGhani
Nov 21 at 6:16




tell me when you done it
– MoHammaD ReZa DehGhani
Nov 21 at 6:16












good luck my friend
– MoHammaD ReZa DehGhani
Nov 21 at 6:17




good luck my friend
– MoHammaD ReZa DehGhani
Nov 21 at 6:17












> Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
– Prabhudas kuppala
Nov 21 at 7:00




> Task:react-native-share:compileDebugJavaWithJavacFAILED node_modules/react-native-share/android/src/main/java/cl/json/ShareFiles.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ /android/src/main/java/cl/json/ShareFile.java:10: error: package android.support.v4.content does not exist import android.support.v4.content.FileProvider; ^ android.support.annotation does not exist import android.support.annotation.Nullable; ^
– Prabhudas kuppala
Nov 21 at 7:00










Prabhudas kuppala is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















Prabhudas kuppala is a new contributor. Be nice, and check out our Code of Conduct.













Prabhudas kuppala is a new contributor. Be nice, and check out our Code of Conduct.












Prabhudas kuppala is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53405777%2freact-native-with-android-project-unable-to-build-react-native-share%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

Berounka

Sphinx de Gizeh

Different font size/position of beamer's navigation symbols template's content depending on regular/plain...