Android
[2일차]안드로이드 Tip
openDatabase
2016. 7. 11. 10:41
lint
자바문법적으로 문제가 없지만 구조적인 문제 때문에 빌드를 안해준다.
ex:) 객체지향인데 getter/setter를 안쓰고, 직접 접근할때, 빌드 안해줌.
File - setting - Editor - Inspections에 들어가서 이슈항목을 수정할 수있다.
자바 코드상에서 SuppressLint를 이용하여 이슈항목 체크를 제거 할 수있다.
App Ober 65K Method
메소드의 개수가 65K(65,000)를 넘어갈 수없다.
오픈소스 몇개 쓰다보면 넘어갈수있다.
이럴때,
build.gradle 안에 multiDexEnabled true
dependencies안에 compile 'com.android.support:multidex:1.0.0'
menifest안에 android:name="android.support.multidex.MultiDexApplication"
을 설정해주면 된다.
Debug
프로그램 배당 시간
설계 30~40% 코딩 20~30% 나머지 40%는 디버깅(에러 아니고, 원하지 않는 결과)