- Home /
Analytics not found when building from command line
So I get this error when trying to launch my build from from command line:
"C:\Program Files\Unity\Editor\unity.exe" -batchmode -quit --build_path= -projectPath C:\BuildAgent\work\83f46aa43071d679 -executeMethod AutoBuilder.PerformPCBuild -cleanedLogFile C:\BuildAgent\temp\buildTmp\cleaned-1704.log -username "username@example.com" -password "password"
and it exits with following error:
error CS0103: The name `Analytics' does not exist in the current context
The Analytics comes from UnityAnalytics custom event.
From what I can tell the issue is that the services are connected, even though the files are commited since when I open the project manually on the build agent it works properly.
I'm on Unity version 5.3.
Answer by WLMaggie · Jan 17, 2017 at 12:30 PM
Turns out that the problem was in the deprecated file in project settings: UnityAnalyticsManager. Removing this filed resolved the issue.
Your answer
Follow this Question
Related Questions
Class could not be found when executing method from command line (-executeMethod) 0 Answers
How to export a Scene as Asset-bundle [Through Command-line args] 0 Answers
sign apk from jenkins/commandline,how to sign android apk through jenkins/command line 0 Answers
Build a console similar to minecraft 1 Answer
Building UWP/WSA from Command Line with Non-Test Certificate 1 Answer