An adiabatic invariant, which is a conserved quantity, is useful for studying quantum and classical properties of dynamical systems. Adiabatic invariants for time-dependent superconducting qubit-oscillator systems and resonators are investigated using the Liouville-von Neumann equation. At first, we derive an invariant for a simple superconducting qubit-oscillator through the introduction of its reduced Hamiltonian. Afterwards, an adiabatic invariant for a nanomechanical resonator linearly interfaced with a superconducting circuit, via a coupling with a time-dependent strength, is evaluated using the technique of unitary transformation. The accuracy of conservation for such invariant quantities is represented in detail. Based on the results of our developments in this paper, perturbation theory is applicable to the research of quantum characteristics of more complicated qubit systems that are described by a time-dependent Hamiltonian involving nonlinear terms.