androidandroid-studio-3.3

Please fix the 'sdk.dir' property in the local.properties file. Studio removed slashes in path. Import project error. How to solve, debug?


I am trying to import a project. It gives an error for local.properties Please fix the 'sdk.dir' property in the local.properties file.

Found one similar question here, but no solutions worked.

Error is:

The SDK directory C:\MyProject\C:AndroidSdk does not exists

I edit local.properties and set sdk.dir=C\:\\AndroidSdk and hit Try again, but it is showing the same error and also removed slashes and saved C:AndroidSdk as property value in newly generated local.properties.

I am Working on windows, Android Studio version : 3.3.1


Solution

  • Couldn't find what actual problem was. But upgrading Android Studio to 3.4 solved this problem.