전체 글238 please move or remove them before you merge 해결법 일단.. 나는 git을 잘 모르니... 따라하지 마시고... 그냥 내가 보기 위해서 작성함을 알려드리고... 오늘 아침에 merge를 하는데 please move or remove them before you merge라는 메세지가 나와서 좀 당황했다.. 아니 전부 깔끔하게 rollback 하고 merge하는데 이게 무슨 소리인가 싶었다... pull 하려고 보니 pull할 것도 없고.. 뭔가 잘못된거 같아서 검색해보니 아래와 같은 해결법이 나왔다.. git add -A git stash git pull 이 명령어 들을 순차적으로 입력하니 정상이 되었다.. 다행쓰.. 2021. 11. 15. 미사용 코드를 삭제해야 하는 이유 Here are some reasons why unused code should be removed: For anyone new working on a project, they not only have to understand the working code, they have to understand unused material also. This is wasted time and creates confusion. There is a danger that at sometime someone will make a change which inadvertently involve the 'dormant' code and can introduce bugs. I know it's happened on project.. 2021. 11. 8. Handler의 Deprecated 대응 Handler가 Deprecated되었다. 근데 뭐 해결방법은 간단하다. Handler mHandler = new Handler(Looper.getMainLooper()) { @Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case 0: // Do something! break; case 1: // Do something! break; } } }; 이렇게 생성자에 Looper.getMainLooper()를 넣어주면 잘 동작한다. 2021. 11. 8. getNetworkInfo deprecated 대응 (네트워크 연결상태 확인 구현) ConnectivityManager의 getNetworkInfo가 depreacted 되었다. 물론 좀 된 얘기지만.. 아무튼 그래서 네트워크 연결 상태를 확인하는 코드를 다음과 같이 구현하였다. public boolean isNetWorkAvailable(Context context) { try { ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(CONNECTIVITY_SERVICE); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { // Q 이상은 이렇게 대응 해야함 NetworkCapabilities networkType = connectiv.. 2021. 11. 5. 이전 1 ··· 12 13 14 15 16 17 18 ··· 60 다음