With the new migration to androidx instead of android.v4 or other support libraries I'm having a tough time figuring out how to get the GoogleApiClient.Builder() to work. I currently have this setup:
mGoogleApiClient = new GoogleApiClient.Builder(SomeActivity.this)
.addApi(Places.GEO_DATA_API)
.enableAutoManage(this, GOOGLE_API_CLIENT_ID, this)
.addConnectionCallbacks(this)
.build();
Where SomeActivity already extends AppCompatActivity. However, due to a recent migration to androidx libraries the .enableAutoManage() function states that I have the wrong argument type as I'm using the androidx version of AppCompatActivity import androidx.appcompat.app.AppCompatActivity instead of android.support.v4.app.FragmentActivity. Are there any workarounds to this?