- Home /
Could not get main asset from WWW object
We track every error for our Android game and sometimes we get that one:
> Could not get main asset from WWW object, jar:file:.....!
The assetbundle is definitely their and we get this error for random assetbundles (but no more than one per session).
My guess is that the user may not have enough disk space or memory left to correctly load the assetbundle.
Am I right or is there another reason why this error could get thrown.
Are you sure that the assetbundles are build with the exact same version of Unity and for the same platform? Assetbundles are not cross compatible as far as i know.
Yep,
this error is very rare (maybe 1 per 20.000 sessions). There's no way that the file isn't their or the assetbundle was built for a wrong platform or a wrong Unity version.
Well, maybe the "download" failed? Do you check if the WWW was successful?
Yes I do.
Ok, retrying to download WWWAssets that don't have an error works. But there're also WWWAssets with different errors such as this one:
"java.lang.SecurityException: $$anonymous$$ETA-INF/$$anonymous$$ANIFEST.$$anonymous$$F has invalid digest for xxx.assetbundle..."
Again, this is a very raw case but it happens sometimes for some users so please don't ask if the assetbundle is correct or exists etc.