安装软件包并运行react-native链接后。当我尝试在Xcode上启动模拟器时,我在exp start的日志中收到以下错误消息:
构建JavaScript包失败。
有0个附加信息并且我的项目运行但是这个错误出现在终端中并且让模拟器停留在0%......
我不知道如何解决此问题,因为我无法获得任何其他错误或信息,只有这条******错误消息。
答案 0 :(得分:0)
通过 namespace RabbitMQ.ServiceModel
{
internal sealed class RabbitMQInputChannel : RabbitMQInputChannelBase // Implement interface IChannel and IInputChannel
{
[...]
public override void Open(TimeSpan timeout)
{
try
{
if (State != CommunicationState.Created && State != CommunicationState.Closed)
{
this.Close();
throw new InvalidOperationException(string.Format("Cannot open the channel from the {0} state.", base.State));
}
OnOpening();
string queueName = m_bindingElement.QueueName;
string key = m_bindingElement.RoutingKey == null ? string.Empty : m_bindingElement.RoutingKey;
string exchange = m_bindingElement.ExchangeName;
if (m_bindingElement.QueueDeclare)
{
try
{
m_model.QueueDeclare(queueName, true, false, false, null);
}
catch (Exception ex)
{
}
}
//Listen to the queue
m_consumer = new EventingBasicConsumer(m_model);
m_consumer.ConsumerCancelled += OnConsumerCancelled;
m_consumer.Received += (sender, args) => m_queue.Add(args);
m_model.BasicConsume(queueName, false, m_consumer);
OnOpened();
}
catch(Exception ex)
{
EventLogHelper.WriteError(ex.Message);
this.Close();
}
}
private void OnConsumerCancelled(object sender, ConsumerEventArgs e)
{
// HERE I WANT TO DISABLE MY RECEIVE LOCATION
}
}
}
清除缓存,并按Hameed的建议在终端中按R键重新启动捆绑器
答案 1 :(得分:0)
就我而言,我试图在Android模拟器上启动一个应用程序。在服务器控制台上将连接模式更改为从LAN隧道传输可以允许应用程序构建。