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

run-android就会报这个错, 我的java版本是1.8.0_231, 模拟器是夜神. (在官网脚手架的demo中会自动打开as中的模拟器, 但是这里失效了) #92

Open
magicsli opened this issue Jul 2, 2020 · 0 comments

Comments

@magicsli
Copy link

magicsli commented Jul 2, 2020

(node:7416) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Starting JS server...
Running C:\Users\Administrator\AppData\Local\Android\Sdk/platform-tools/adb reverse tcp:8081 tcp:8081
adb.exe: error: no devices/emulators found
Could not run adb reverse: Command failed: C:\Users\Administrator\AppData\Local\Android\Sdk/platform-tools/adb reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && gradlew.bat installDebug...

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine java version from '12.0.2'.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant