public static void BuildAndroid() { //Android配置 PlayerSettings.Android.keystoreName = Application.dataPath.Replace("/Assets", "") + "/user.keystore"; PlayerSettings.Android.keyaliasName = "cc"; PlayerSettings.Android.keystorePass = "******"; PlayerSettings.Android.keyaliasPass = "******"; BuildSetting buildSetting = GetAndoridBuildSetting(); string suffix = SetAndroidSetting(buildSetting); string productName = Utility.Text.Format("{0}\\{1}_{2}_{3}.apk", AndroidDir, PlayerSettings.productName, suffix, DateTime.Now.ToString("yyyyMMddHHmm")); CreateBuildText(productName); string path = Utility.Text.Format("{0}/{1}", BuildPath, productName).Replace("\\", "/"); BuildPipeline.BuildPlayer(FindEnableEditorrScenes(), path, BuildTarget.Android, BuildOptions.None); }