【问题标题】:react native android error unable to resolve module `AccessibilityInfo` from...module `AccessibilityInfo` does not exist反应原生 android 错误无法从...解析模块 `AccessibilityInfo` 模块`AccessibilityInfo` 不存在
【发布时间】:2018-08-31 14:28:27
【问题描述】:

每次我尝试跑步时:

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

我得到错误:

Unable to resolve module `AccessibilityInfo` from `\fcm\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map

我需要运行这个命令来避免错误:

Unable to load script from assets 'index.android.bundle'...

我几乎关注了所有关于这个问题的帖子,但都没有成功 (Unable to resolve module 'AccessibilityInfo', when trying to create release bundle) 发生了什么??。感谢您的帮助。

【问题讨论】:

    标签: android react-native android-assets


    【解决方案1】:

    试试这个 react-native init Projectname --version 0.55.4

    这对我有用,因为我也面临这个问题

    【讨论】:

      猜你喜欢
      • 2019-01-05
      • 2018-07-23
      • 2020-08-26
      • 1970-01-01
      • 2019-10-29
      • 2020-06-19
      • 1970-01-01
      • 2020-01-07
      • 1970-01-01
      相关资源
      最近更新 更多