The short-lived series you're recalling is almost certainly The New Adventures of Beans Baxter (1974). The premise: a family builds a functional spaceship in their backyard, leading to comedic sci-fi adventures. It aired for one season and had no connection to Andy Griffith—though memory sometimes conflates it with The Andy Griffith Show's rural charm or Griffith's later TV movies.
If you recall specific characters (a talking computer? a pet alien?), the father's profession, or the network (NBC), I can confirm or redirect. But Beans Baxter is the strongest match for "family + backyard spaceship + 1970s + cancelled quickly."