Expo SDK需要运行Expo.似乎本地Expo模块不可用,并且此代码未在Expo上运行.我想生成apk [英] The Expo SDK requires Expo to run. It appears the native Expo modules are unavailable and this code is not running on Expo. I want to generate apk

查看:103
本文介绍了Expo SDK需要运行Expo.似乎本地Expo模块不可用,并且此代码未在Expo上运行.我想生成apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用expo-cli@3.0.10 此应用程序在设备中安装的客户端博览会中可以正常运行

I am using expo-cli@3.0.10 This app works fine in client expo which installed in device

推荐答案

好吧,我相信我找到了核心问题- DNS问题.

Ok I believe I found the core problem - DNS issue.

您的Android模拟器无法使用当前的DNS为Mac OS,Windows或Linux上的任何操作系统正确解析主机名.

Your Android simulator cannot properly resolve the hostname using your current DNS for whichever OS you are on be it Mac OS, Windows or Linux.

按照此链接将您的DNS地址设置为8.8.8.8或其他一些适用的DNS.

Follow this link to set your DNS address to 8.8.8.8 or some other applicable DNS.

一旦正确设置了DNS,它便会正常工作. 确保8.8.8.8是DNS地址列表中的第一个DNS地址,以便您的系统首先使用Google DNS解析主机名.

Once you set your DNS properly it should work. Make sure that 8.8.8.8 is the first DNS address in the list(?) of DNS addresses so that your system will resolve hostnames using the Google DNS first.

通过下面的链接重新发布有用的信息,

Reposting the useful information from that link below,

将网络的DNS地址更改为8.8.8.8:

MacOSX:

Open "System Preferences"
Click on "Network"
Select the network which your computer is connected and click on "Advanced"
Select "DNS", Select the "+" button, type "8.8.8.8"
Select "Ok" and "Apply"

Windows& Linux:

Windows & Linux:

https://developers.google.com/speed/public-dns /docs/using

此后,关闭仿真器,然后重新启动.

这篇关于Expo SDK需要运行Expo.似乎本地Expo模块不可用,并且此代码未在Expo上运行.我想生成apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆