- Home /
WWW UnknownHostException
![alt text][2]
You are trying to load data from a www stream which has the following error when downloading.
java.net.UnknownHostException: Host is unresolved: www.j3gaming.com:80
UnityEngine.WWW:get_assestBundle()
This code works on the editor, but will not work when built to Android. I have a feeling I need to give the android app permissions so the app can access the internet. (android.permission.INTERNET), how can I do that from within unity?]
WWW www = new WWW("http://www.j3gaming.com/Downloads/" + objectname + ".unity3d");
yield return www;
currentObject = (GameObject)Instantiate(www.assetBundle.mainAsset);
[2]: http://www.j3gaming.com/Imgs/wwwError.png
Answer by J3-Gaming · Sep 01, 2011 at 09:16 PM
haha, fixed my own problem:
Make sure the android phone has wifi turned on (lol)
Assets/Plugins/Android/AndroidManifest.xml is used exactly the same way as a Java/Eclipse project.
Handle this exception for if the user has wifi turned off or your host server is down.
Your answer
Follow this Question
Related Questions
assetBundle.mainAsset exception 0 Answers
How to import the object from server to unity 2 Answers
Asset bundle memory leak and exception 1 Answer