JAVA无出错反应,E /未知:反应:本机调用中的异常

I run android app via emulator, but got some error like below.

Don't know how to fix it.

Is there someone who know the solution?

please help.

thanks.

E/unknown:React: Exception in native call

java.lang.RuntimeException: Unable to load script from assets 'index.android.bundle'. Make sure your bundle is packaged correctly or you're running a packager server.

at com.facebook.react.cxxbridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)

at com.facebook.react.cxxbridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:198)

at com.facebook.react.cxxbridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:33)

at com.facebook.react.cxxbridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:216)

at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:994)

at com.facebook.react.ReactInstanceManager.access$600(ReactInstanceManager.java:109)

at com.facebook.react.ReactInstanceManager$4.run(ReactInstanceManager.java:746)

at java.lang.Thread.run(Thread.java:818)

解决方案

I encountered the same problem.

I resolve this, by deleting the dependency in android\settings.gradle file. That not specified in the build.gradle file.

This fix my problem.

Hope this helps you.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值