분류 전체보기238 You need to use a Theme.AppCompat theme (or descendant) with this activity. 수정 You need to use a Theme.AppCompat theme (or descendant) with this activity. 라며.. AlertDialog를 띄울 때 앱이 죽는 현상이 있었다. val builder = AlertDialog.Builder(applicationContext) // 이러면 에러 발생 val builder = AlertDialog.Builder(this) // 이러면 정상 동작 위 처럼 this로 변경해주면 잘 동작한다. 2022. 8. 8. Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug 무슨 버그인지는 모르겠으나.. 저렇게 뜨면서 run이 안되거나 수정한 내용이 반영이 안되는 현상이 있는데.. 이때는 Android studio의 file -> invalid caches 하면 된다. Check out 할때 발생하는 듯.. 왜 그런지는 모르겠다.. 2022. 8. 3. Override한 메소드에서 overrides nothing 에러가 날 때 그럴땐 Parameter의 Null check를 지워주면 된다. 2022. 7. 31. companion object에 있는 상수 값 접근 안될 때 이런 애가 있는데.. 다른 자바 클래스에서 접근이 안될 때가 있다.. companion object { val title: String = "ㅇㅇ" } 그럴 땐 이렇게 해주면된다. companion object { @JvmField val mTabTitle: String = "ㅇㅇ" } 찾아보니 @JvmField 하면 getter와 setter 없이 접근이 되게 하는거라고 한다. 2022. 7. 27. 이전 1 ··· 4 5 6 7 8 9 10 ··· 60 다음