Avoiding Memory Leaks 안드로이드 애플리케이션은, 적어도 T-Mobbile G1 에서는 16MB의 힙으로 제한된다. 그것은 전화를 위한 많은 메모리이고 개발자가 달성하기를 원하는것에는 거의 없다. 이 메모리를 모두 사용하지 않는 경우에도, 다른 응용프로그램을 죽이지 않고 실행할 수 있게 하려면 가능한 작게 사용해야 한다. Android가 메모리에 보관할 수 있는 응용프로그램이 많을수록 사용자가 응용프로그램을 전환하는 속도가 빨라진다. 내 작업중에 안드로이드 애플리케이션에서 메모리 누출 문제가 발생했고, 같은 실수로 대부분의 시간을 보냈다. ( Context에 대한 장기간의 레퍼런스를 유지) 안드로이드에서 Context는 많은 연산에 사용되지만 대부분은 리소스를 로드하고 액세스한다. 이것은..
failed to resolve : android.arch compile "android.arch.lifecycle:runtime:1.0.0-alpha1" compile "android.arch.lifecycle:extensions:1.0.0-alpha1" annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha1" 를 추가하는 중에 build 가 되지 않아 골머리 썪고 있었는 데 maven(){ url "https://maven.google.com" } 이것을 maven(){ url "https://dl.google.com/dl/android/maven2/" } 로 바꿔주어 빌드 성공
To gitlab.com:SmartSmart/TEAM_DOC.git ! [rejected] master -> master (fetch first)error: failed to push some refs to 'git@gitlab.com:SmartSmart/TEAM_DOC.git'hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first integrate the remote changeshint: (e.g., 'git pul..