snowdream / react_native_helloworld

helloworld with react native
0 stars 0 forks source link

Cannot find entry file index.android.js in any of the roots #4

Open snowdream opened 8 years ago

snowdream commented 8 years ago

http://localhost:8081/index.android.bundle?platform=android&dev=true

chrome

{
message: "Cannot find entry file index.android.js in any of the roots: ["D:\\workspace\\snowdream\\git\\react_native_helloworld"]",
name: "NotFoundError",
type: "NotFoundError",
status: 404,
errors: [
{ }
]
}
snowdream commented 8 years ago

adb logcat

W/unknown:React( 5229): Could not parse DebugServerException from: {"message":"Cannot find entry file index.android.js in any of the roots: [\"D:\\\\workspace\\\\snowdream\\\\git\\\\react_native_helloworld\"]","name":"NotFoundError","type":"NotFoundError","status":404,"errors":[{}]}
W/unknown:React( 5229): org.json.JSONException: No value for filename
W/unknown:React( 5229):         at org.json.JSONObject.get(JSONObject.java:389)
W/unknown:React( 5229):         at org.json.JSONObject.getString(JSONObject.java:550)
W/unknown:React( 5229):         at com.facebook.react.devsupport.DebugServerException.parse(DebugServerException.java:56)
W/unknown:React( 5229):         at com.facebook.react.devsupport.DevServerHelper$1.onResponse(DevServerHelper.java:187)
W/unknown:React( 5229):         at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:168)
W/unknown:React( 5229):         at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
W/unknown:React( 5229):         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/unknown:React( 5229):         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/unknown:React( 5229):         at java.lang.Thread.run(Thread.java:818)
E/unknown:React( 5229): Unable to download JS bundle
E/unknown:React( 5229): java.io.IOException: Unexpected response code: 404
E/unknown:React( 5229):         at com.facebook.react.devsupport.DevServerHelper$1.onResponse(DevServerHelper.java:191)
E/unknown:React( 5229):         at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:168)
E/unknown:React( 5229):         at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
E/unknown:React( 5229):         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/unknown:React( 5229):         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/unknown:React( 5229):         at java.lang.Thread.run(Thread.java:818)