The invention discloses universal environment-friendly building glue which comprises the following raw materials in parts by weight: 30-60 parts of an epoxy resin, 30-60 parts of an acrylic resin, 6-14 parts of aluminum hydroxide gel, 5-12 parts of xanthan gum, 10-16 parts of glycerin, 5-10 parts of polyethylene glycol, 3-6 parts of sodium dodecyl benzene sulfonate, 6-12 parts of sodium carboxymethylcellulose, 2-4 parts of dibenzylidene sorbitol, 0.5-2 parts of an antioxidant, 1-4 parts of a water retaining agent, 2-8 parts of a stabilizer, 3-5 parts of a nucleating agent, 2-6 parts of an anti-mold agent, 32-56 parts of ethanol and 16-28 parts of water. A preparation method of the universal environment-friendly building glue comprises the following steps: preparing a resin solution, preparing an ethanol-water mixed solution, and mixing with other materials. The building glue disclosed by the invention is reasonable in formula, low in cost, good in transparency, good in adhesive property, good in peaceability, good in environmental-friendliness, short in curing time, simple in preparation method, low in equipment requirement, high in production speed and high in raw material utilization rate.