- Home /
Onmouse event handlers preventing me from building an apk?
I'm trying to build a game for android but whenever I do no apk shows up in the destination folder. It used to work fine but now for some reason after updating the jdk and apk I'm getting all sorts of bugs. No errors show up but this is the only warning I can see that wasn't there before that might be causing this.
error?: Game scripts or other custom code contains OnMouse_ event handlers. Presence of such handlers might impact performance on handheld devices. UnityEditor.HostView:OnGUI()
Is there a way to fix this?
This does not look like the failure that's stopping your build. IS there anything else you're receiving?
Answer by Xtro · Jul 31, 2014 at 03:53 PM
It's a warning, not an error. You can just ignore it if your app is not so heavy.
Are you sure if it's really stopping the build process with a failure?
Found the cause, I had to copy paste a file from the jdk folder to another and it fixed the error. I think I'm using a jdk that's too current, I'm not sure. Thanks for the answer!
Hi gimoj, what file did you copy paste? because im having a trouble too.. i think i just installed jdk7 then jdk 8 after it.. and after that, when I run it in unity Editor it is running good. but when i run it in android.. my GUI button is not working properly ..THANS IN ADVANCE!
I am also interested in the fix for this. I have no mouse events whatsoever in $$anonymous$$y project, yet I get this warning...
$$anonymous$$aybe a 3rd party asset is using On$$anonymous$$ouse events? Can you strip down your project until you get rid of this warning? so you can find which file/asset is causing it.