When I open my file there is an error. I already cleaned, rebuild and invalidated caches. Is it possible to upgrade or downgrade my Android Studio?
2 Answers
Just open your Internet connection and it will automatically update your resources in Android Studio and it works.

- 30,738
- 21
- 105
- 131

- 15
- 8
With Android Studio 3.2 and higher, you can quickly migrate an existing project to use AndroidX by selecting Refactor > Migrate to AndroidX from the menu bar.
If you have any Maven dependencies that have not been migrated to the AndroidX namespace, the Android Studio build system also migrates those dependencies for you when you set the following two flags to true in your gradle.properties file:
android.useAndroidX=true android.enableJetifier=true To migrate an existing project that does not use any third-party libraries with dependencies that need converting, you can set the android.useAndroidX flag to true and the android.enableJetifier flag to false.

- 734
- 1
- 7
- 20
-
1This has been ***wholesale copied*** from somewhere. It is in [this Stack Overflow answer](https://stackoverflow.com/questions/53440108/how-can-i-fix-these-errors-about-not-being-able-to-find-dependencies-when-compil/53606070#53606070) (where it is properly quoted and with a source). It was likely from https://developer.android.com/jetpack/androidx/migrate, which has probably changed in the meantime. For example, the exact phrase starting with *"To migrate an existing project that does not use any third-party libraries with dependencies that need converting"* – Peter Mortensen Aug 11 '23 at 13:08