- Home /
Unity Analytics Compile Error on Android
Hi i wanted to try the new unity analytics beta but when i try to compile it for android it shows this error "Assets/Plugins/UnityAnalytics/AndroidWrapper.cs(9,41): error CS0246: The type or namespace name `BasePlatformWrapper' could not be found. Are you missing a using directive or an assembly reference?" ive tried searching but i cant seem to find an actual answer. ive already followed the instructions here http://www.infoq.com/news/2015/01/unity-analytics-launched that an initializer script should be attached to an object but it dosent seem to fixed the compile error
additionally the pop up window Unity Analytics SDK keeps on popping up even ive already integrated it on my project (i knew it was integrated already because it already detected my computer on unity analytics site)
ive already followede the tutorial from this site https://analytics.cloud.unity3d.com/docs still having issues like indicated above.
Answer by AxelMG · Jan 12, 2016 at 10:40 PM
You can go to PlatformWrapper.cs line 6 and add: || UNITY_5_3
This fixed the issue for me. Looks like they forgot to add 5.3 to the list.
This solved the issue for me. I immediately knew it would since the last version I used for my previous build was 5.1. I could say its a bit psychic that you knew the current version of Unity I was using.
Anyways just put the "|| WHATEVER UNITY VERSION" your using,. But really if anyone else finds this you should upgrade your Analytics following the doc, unless your only using a higher version like 5.2 and above temporarily.
same error came on 5.6.2 and added || UNITY_5_6 it worked thanks...
Answer by digifyph · Jul 01, 2015 at 10:43 AM
'BasePlatformWrapper' can be found inside PlatformWrapper.cs
I hope this helps.
Answer by sschan · Jul 07, 2015 at 05:11 PM
Please review/follow the upgrade instructions and it should resolve the issues you are experiencing - http://forum.unity3d.com/threads/upgrade-instructions-from-4-x-5-0-5-1.327433/
If you are still experiencing issues, please start a thread on Analytics Forum - http://forum.unity3d.com/forums/unity-analytics-beta.81/
Your answer
Follow this Question
Related Questions
Unity Android Inputs With Samsung Galaxy Ace 0 Answers
Connect Andorid Phone and get error 1 Answer
Make sphere shoot to Touch.position error 1 Answer
Unity Editor & iOS - Download MP4 to Streaming Assets Folder 0 Answers
errors building on android 0 Answers