导航

    Taro 社区

    Taro

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 话题
    • 热门
    • 群组
    1. 主页
    2. 27831088-819072
    2
    • 资料
    • 关注
    • 粉丝
    • 主题
    • 帖子
    • 最佳
    • 群组

    27831088-819072

    @27831088-819072

    0
    声望
    2
    帖子
    105
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    27831088-819072 关注

    27831088-819072 发布的帖子

    • react-native run-android 报错 Task :app:installDebug FAILED

      Task :app:installDebug FAILED

      FAILURE: Build failed with an exception.

      • What went wrong:
        Execution failed for task ':app:installDebug'.

      com.android.builder.testing.api.DeviceException: No connected devices!

      • 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

      Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
      Use '--warning-mode all' to show the individual deprecation warnings.
      See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

      BUILD FAILED in 17s
      383 actionable tasks: 337 executed, 46 up-to-date
      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

      发布在 React Native
      2
      27831088-819072
    • taro 编译为 react-native 无法运行,使用 react-native start 编译不通过

      react-native start
      ┌──────────────────────────────────────────────────────────────────────────────┐
      │ │
      │ Running Metro Bundler on port 8081. │
      │ │
      │ Keep Metro running while developing on any JS projects. Feel free to │
      │ close this tab and run your own Metro instance if you prefer. │
      │ │
      │ https://github.com/facebook/react-native │
      │ │
      └──────────────────────────────────────────────────────────────────────────────┘

      Looking for JS files in
      D:\local\一些测试\myApp

      Loading dependency graph, done.
      error: bundling failed: Error: Unable to resolve module warnOnce from node_modules\react-native\Libraries\react-native\react-native-implementation.js: warnOnce could not be found within the project.

      If you are sure the module exists, try these steps:

      1. Clear watchman watches: watchman watch-del-all
      2. Delete node_modules: rm -rf node_modules and run yarn install
      3. Reset Metro's cache: yarn start --reset-cache
      4. Remove the cache: rm -rf /tmp/metro-*
        at ModuleResolver.resolveDependency (C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:186:15)
        at ResolutionRequest.resolveDependency (C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
        at DependencyGraph.resolveDependency (C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\node-haste\DependencyGraph.js:282:16)
        at Object.resolve (C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\lib\transformHelpers.js:267:42)
        at C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:426:31
        at Array.map (<anonymous>)
        at resolveDependencies (C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:423:18)
        at C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33
        at Generator.next (<anonymous>)
        at asyncGeneratorStep (C:\Users\xiao\AppData\Roaming\npm\node_modules\react-native\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)
        BUNDLE [ios, dev] rn_temp/index.js ░░░░░░░░░░░░░░░░ 1.2% (9/82), failed.

      ::ffff:127.0.0.1 - - [11/Jan/2020:18:40:15 +0000] "GET /rn_temp/index.bundle?platform=ios&dev=true HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"

      发布在 React Native
      2
      27831088-819072