- Home /
 
               Question by 
               roberto_sc · Jun 02, 2015 at 03:28 AM · 
                androidbuildandroid buildbuildpipeline  
              
 
              Is it possible to set android sdk path via script?
Sometimes in our company we install a new version of unity or set up a new build machine and forget to open unity and set the android sdk path. When that happens Unity never fails or complete the command line build, it keeps opened forever.
It would be nice if I could just update my build script to include the sdk path, is there a way to do it?
               Comment
              
 
               
              Answer by kork · Feb 11, 2016 at 08:59 PM
Actually, it is possible. I've written a short article on how to do it.
TL;DR: EditorPrefs.SetString("AndroidSdkRoot", "/path/to/sdk");
Thanks for the article, setting it from environment variable is really great when using a build slave :)
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                