This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.1.1 or newer.
안드로이드는 튜토리얼도 제대로 따라해본적이 없는 문외한이라 어찌 해줘야할지 막막하다 그냥 프로젝트 구성문제 이겠지 하고
프로젝트 자체를 새로 생성해서 소스를 옴겨 돌리자 생각했다.
그러자 아래와 같은 에러가 났다.
Could not find method dependencyResolutionManagement()
This will unstage all files you might have staged withgit add:
git reset
This will revert all local uncommitted changes (should be executed in repo root):You can also revert uncommitted changes only to particular file or directory:Yet another way to revert all uncommitted changes (longer to type, but works from any subdirectory):
git reset --hard HEAD
git checkout [some_dir|file.txt]
git checkout .
This will remove all local untracked files, soonlygit tracked files remain:WARNING:-xwill also remove all ignored files, including ones specified by.gitignore! You may want to use-nfor preview of files to be deleted.
git clean -fdx
To sum it up: executing commands below is basically equivalent to freshgit clonefrom original source (but it does not re-download anything, so is much faster):
git reset
git checkout .
git clean -fdx
Typical usage for this would be in build scripts, when you must make sure that your tree is absolutely clean - does not have any modifications or locally created object files or build artefacts, and you want to make it work very fast and to not re-clone whole repository every single time.