Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows---Reacr-native :Could not install the app on the device, read the error above for details. #14503

Closed
Xiao-HuangShu opened this issue Jun 14, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Xiao-HuangShu
Copy link

Xiao-HuangShu commented Jun 14, 2017

List of devices attached
30af2fe7 device

react-native run-android

Scanning 551 folders for symlinks in E:\gz\App\node_modules (19ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat installDebug)...

java.lang.NullPointerException

    at org.gradle.api.internal.classpath.DefaultModuleRegistry.getExternalModule(DefaultModuleRegistry.java:69)
    at org.gradle.api.internal.DefaultClassPathProvider.findClassPath(DefaultClassPathProvider.java:46)
    at org.gradle.api.internal.DefaultClassPathRegistry.getClassPath(DefaultClassPathRegistry.java:34)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:47)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

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/android-setup.html

@Xiao-HuangShu
Copy link
Author

This question has plagued me for a whole day, even if I make a new project

@Xiao-HuangShu Xiao-HuangShu changed the title Could not install the app on the device, read the error above for details. Reacr-native Could not install the app on the device, read the error above for details. Jun 14, 2017
@Xiao-HuangShu Xiao-HuangShu changed the title Reacr-native Could not install the app on the device, read the error above for details. Reacr-native :Could not install the app on the device, read the error above for details. Jun 14, 2017
@Xiao-HuangShu Xiao-HuangShu changed the title Reacr-native :Could not install the app on the device, read the error above for details. Windows---Reacr-native :Could not install the app on the device, read the error above for details. Jun 14, 2017
@hramos
Copy link
Contributor

hramos commented Jun 15, 2017

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

@hramos hramos closed this as completed Jun 15, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Jun 15, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants