코드 다이어리
  • 홈
  • 태그
  • 방명록
    • 분류 전체보기 (321)
      • 임베디드 (0)
        • 임베디드 C (0)
        • 이론 (0)
        • 하드웨어 (0)
      • 영상처리 (0)
        • 이론 (0)
      • 알고리즘 (121)
        • 자료구조와 알고리즘 (0)
        • 문제풀이 - 백준 (106)
        • 문제풀이 - 프로그래머스 (15)
      • 언어, 라이브러리 (66)
        • C, C++ (11)
        • Python (1)
        • JAVA (0)
        • Android (23)
        • Kotlin (10)
        • Qt (17)
        • Tkinter (2)
        • OpenCV (1)
        • Flutter (0)
      • 운영체제 (7)
        • Linux (3)
        • Windows (4)
      • 도구 (38)
        • Git (3)
        • Visual Studio Code (7)
        • MS Office (19)
        • GIMP (2)
        • etc (7)
      • 디버깅 (55)
        • C, C++ (15)
        • Android (21)
        • Qt (2)
        • Python (7)
        • Tkinter (2)
        • Flutter (1)
        • OpenCV (2)
        • 기타 (4)
        • Java (1)
      • 용어 (1)
      • 책 (4)
      • 컴퓨터 (5)
      • 블로그 (9)
      • 기타 (0)
      • 프로젝트 (15)
        • 앱 (14)
        • PC (1)
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
디버깅/Android

[Android, Kotlin] error: package com.google.errorprone.annotations does not existimport com.google.errorprone.annotations.CanIgnoreReturnValue;

오류내용 네이티브 광고 템플릿을 사용하기 위해 nativetemplates 모듈 import 후 빌드시 아래 오류 발생 error: package com.google.errorprone.annotations does not exist import com.google.errorprone.annotations.CanIgnoreReturnValue; 해결방법 build.gradle에 아래 모듈 추가 implementation 'com.google.errorprone:error_prone_annotations:2.9.0' 이때 build.gradle은 nativetemplates 모듈이다..

2023. 1. 10. 18:56
디버깅/Android

[Android, Kotlin] Floating Action Button 아이콘 색상이 검은색에서 변경되지 않는 문제

Floating Action Button의 아이콘 색상이 변경되지 않는 문제 xml에서 android:tint="@color/white"를 설정해도 색상이 검은색에서 흰색으로 변경되지 않는다. 해결 방법 android:tint="@color/white"가 아닌 app:tint="@color/white"를 설정한다. android:tint="@color/white"

2022. 12. 25. 15:57
디버깅/Android

안드로이드 build.gradle에 repositories, buildscript, allprojects가 없는 경우

이슈 내용 구글 admob 가이드문서를 따르던 중 build.gradle 파일에 repositories, buildscript, allprojects가 없음. 이슈 원인 2022년 1월 배포한 7.1.0 버전에서 repositories가 build.gradle에서 settings.gradle로 위치 변경됨 참고 https://developers.google.com/admob/android/quick-start?hl=ko#import_the_mobile_ads_sdk https://developer.android.com/studio/releases/gradle-plugin?hl=ko

2022. 8. 31. 19:44
디버깅/Android

[Android, Kotlin] Cannot access database on the main thread since it may potentially lock the UI for a long period of time.

다른 글 2020.08.23 - [언어, 라이브러리/Android] - [Android, Kotlin] Room을 활용한 데이터베이스 구축 오류내용 Room으로 데이터베이스 구축 후 쿼리 사용 시 아래 오류 발생 Cannot access database on the main thread since it may potentially lock the UI for a long period of time. 원인 안드로이드는 데이터베이스 쿼리가 메인스레드를 점유할것을 염려하여 메인스레드가 아닌 다른 스레드에서 쿼리를 실행할 것을 강요한다. 해결 방법 방법1 : 메인스레드에서 강제 실행 방법2 : 새로운 스레드 생성 방법3 : 코루틴 사용 안드로이드가 권장하지 않는 방법1을 사용할 이유는 없으며 방법2의 컨텍스트스..

2022. 5. 5. 18:57
디버깅/Android

[Android, Kotlin] E/MediaPlayer: Error (-38,0)

오류 내용 안드로이드 내장 미디어 플레이어인 MediaPlayer사용 중, 미디어 실행 메서드인 start() 사용시 아래 오류 발생 E/MediaPlayerNative: start called in state 4, mPlayer(0x7d5ed0c41450) error (-38, 0) E/MediaPlayer: Error (-38,0) 오류 원인 아래 MediaPlayer의 생명주기에 따라 prepare()를 하고 start()를 진행하게 되는데, prepare가 완료되지 않은 상태에서 start를 수행했을 때 위와 같은 오류 발생 해결 방법 prepare가 완료되었을 떄 start를 수행하기 위해 prepare가 완료되었을 때 호출되는 setOnPreparedListener 내부로 start()를 옮긴..

2022. 4. 17. 20:32
디버깅/Android

[Android] 에뮬레이터 하단 뒤로가기 버튼 활성화(3 button navigation)

안드로이드 에뮬레이터 하단바 활성화 안드로이드 에뮬레이터의 하단바가 아래와같이 제스쳐방식으로 변했다. 예를들어 뒤로가기를 하고싶으면 화면 왼쪽에서 press하여 오른쪽으로 드래그하면 되는데, 마우스로 하자니 이게 상당히 불편했다. 에뮬레이터로 설정한 구글 픽셀4의 기본 옵션이거나 SDK 버전이 32라서 발생한 현상으로 보인다. 어쨌건 옵션 설정으로 이전과 같이 변경할 수 있다. 옵션 설정 settings에 들어간다. settings에서 Accessibility를 선택 Accessibility에서 System controls를 선택 System controls에서 System navigation을 선택 System navigation에서 3-button navigation을 선택하면 설정이 완료된다.

2022. 3. 9. 21:09
  • «
  • 1
  • 2
  • 3
  • 4
  • »

전체 카테고리

  • 분류 전체보기 (321)
    • 임베디드 (0)
      • 임베디드 C (0)
      • 이론 (0)
      • 하드웨어 (0)
    • 영상처리 (0)
      • 이론 (0)
    • 알고리즘 (121)
      • 자료구조와 알고리즘 (0)
      • 문제풀이 - 백준 (106)
      • 문제풀이 - 프로그래머스 (15)
    • 언어, 라이브러리 (66)
      • C, C++ (11)
      • Python (1)
      • JAVA (0)
      • Android (23)
      • Kotlin (10)
      • Qt (17)
      • Tkinter (2)
      • OpenCV (1)
      • Flutter (0)
    • 운영체제 (7)
      • Linux (3)
      • Windows (4)
    • 도구 (38)
      • Git (3)
      • Visual Studio Code (7)
      • MS Office (19)
      • GIMP (2)
      • etc (7)
    • 디버깅 (55)
      • C, C++ (15)
      • Android (21)
      • Qt (2)
      • Python (7)
      • Tkinter (2)
      • Flutter (1)
      • OpenCV (2)
      • 기타 (4)
      • Java (1)
    • 용어 (1)
    • 책 (4)
    • 컴퓨터 (5)
    • 블로그 (9)
    • 기타 (0)
    • 프로젝트 (15)
      • 앱 (14)
      • PC (1)
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

전체 방문자

오늘
어제
전체

태그

  • #엑셀
  • #c++
  • #cpp
  • #우선순위 큐
  • #큐
  • #코딩 테스트
  • #cout
  • #QT
  • #티스토리
  • #visual studio code
  • #c
  • #코틀린
  • #DP
  • #알고리즘
  • #백준
  • #안드로이드
  • #삼성
  • #git
  • #Kotlin
  • #stl
  • #파워포인트
  • #BFS
  • #완전탐색
  • #시뮬레이션
  • #DFS
  • #프로그래머스
  • #임베디드
  • #레벨3
  • #BOJ
  • #Android
더보기+
Powered by Privatenote/Lifekorea Copyright © 코드 다이어리 All rights reserved. TistoryWhaleSkin3.4

티스토리툴바