red question mark loading image as texture with WWW

Works fine in the editor but when i build for android it shows me a red question mark. Yes i’ve tried with other images, and yes i’ve tried with local images.

var url = "https://www.google.com/hangouts/img/desktop-gmail.jpg";
function Start () {
	 // Start a download of the given URL
	var www : WWW = new WWW (url);
	// Wait for download to complete
	yield www;
	// assign texture
	renderer.material.mainTexture = www.texture;
}

The red question mark means that the texture you’re requesting couldn’t be retrieved. In the past, I’ve seen this if the URL doesn’t actually point to an image.

Since your image is valid…maybe you can’t access the internet on the device? Have you added the INTERNET permission to your Android manifest?

List of android permissions: Manifest.permission  |  Android Developers

How to add permissions to the manifest: App manifest overview  |  Android Developers

If it’s not that…then I’m not totally sure. Have you tried connecting to ADB while making this request to see if any errors are generated in the device log?

Also if the image you’re getting is in CMYK it won’t load on Android. I had a problem with pulling images from a webpage being in CMYK.