When Einstein used GR with the Hubble constant, he found the age of the universe to be about 1.5e9 years, which at the time they thought was about the age of the Earth (Einstein, "The Meaning of Relativity", 1953, pg. 120). So this must be wrong. So the cosmo constant was introduced to get a better result [this is wrong it had already been introduced, but to fix this same issue].
Apparently now, theories consider a cosmological scalar, so it can vary over space-time.
Edit1: Maybe I'm misinterpreting his words? From page 120:
"From the measured value of $h$ [Hubble constant] we get for the time of the existence of the world [he means universe] up to now 1.5e9 years. This age is about the same as that which one has obtained from the disintegration of uranium for the firm crust of the earth. This is a paradoxical result, which for more than one reason has aroused doubts as to the validity of the theory."
This is taking the Hubble constant into account, even though, as pointed out on the bottom of page 127, the cosmo constant was introduced before the Hubble's expansion was discovered.
He then shows that a curvature can't fix the cosmological problem on page 127:
"One further obtains, for the time from the start of the expansion up to the present, a value of the order of magnitude of 10^9 years. The brevity of this time does not concur with the theories on the developments of fixed stars.
"(4) The latter result is not changed by the introduction of spatial curvature; nor is it changed by the consideration of the random motion of stars and systems of stars with respect to each other."
It's interesting how he points out The Big Bang, on page 129:
"The[se] theoretical doubts are based on the fact that for the time of the beginning of the expansion the metric becomes singular and the density, $\rho$, becomes infinite."
And Dark Matter, on page 130:
"This is the case because we can hardly form an opinion on how large a fraction of $\rho$ is given by astronomically unobservable (not radiating) masses."
I thought that the cosmo constant was introduced to fix the cosmological problem, that the theory predicts a very short lifetime for the universe comparable to the age of the earth, and way shorter than we think it takes to form stars. Seems he rejected the cosmo constant, page 127:
"The introduction of the "cosmological member" into the equations of gravity, though possible from the point of view of relativity, is to be rejected from the point of view of logical economy."
But then, from page 132 at the end of the appendix for the 2nd edition:
"In this case I see no reasonable solution."
My understanding is that not only is the cosmo constant back in vogue [dark energy], but that it has been upgraded to a cosmo scalar, providing even more degrees of freedom to match theory with observation. I could be wrong on many things here, but if so, I'd like to learn where.