Exporting to Eclipse project from script

I’ve been trying to get Unity to export to Eclipse Project (‘Google Android Project’) from script (or command-line), but can’t find anything that does this. BuildSettings, EditorBuildSettings, BuildPlayer…

I need to be able to execute builds from command-line arguments, and up until this point have been running Unity.exe in batch-mode to compile the Android project to APK. But now we’ve got a new SDK that requires post-build integration into the Eclipse project.

Is there any way to do this?

Try using BuildOptions.AcceptExternalModificationsToPlayer. This should create a new Eclipse Project.

BuildPipeline.BuildPlayer(LevelArray, "AndroidBuild", BuildTarget.Android, BuildOptions.AcceptExternalModificationsToPlayer);