본문 바로가기 메뉴 바로가기

The world of Parkho

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

The world of Parkho

검색하기 폼
  • 분류 전체보기 (256)
    • Android (43)
      • BroadcastReceiver (5)
      • Database (12)
      • Intent (6)
      • Service (5)
      • Task (15)
      • Troubleshooting (17)
      • UI (58)
    • JAVA (12)
    • Lambda Expressions in Java (0)
    • VCS (1)
    • App Tech (76)
      • P2E (28)
    • Etc (6)
  • 방명록

Android/Troubleshooting (17)
Android Studio 에서 Gradle Sync 오류 시 해결 방법

자주 발생하는 오류는 아니지만 예전 소스를 import 하거나 Android studio version 을 update 하면서 종종 아래와 같은 Gradle sync 오류가 발생하곤 한다. Error:Unsupported method: BaseConfig.getApplicationIdSuffix(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information..

Android/Troubleshooting 2020. 4. 14. 13:53
[ADB] INSTALL_FAILED_ALREADY_EXISTS

앱을 업데이트 할때 adb 명령을 (adb install) 사용하면 아래와 같은 오류가 종종 나오기도 한다. - "Failure [INSTALL_FAILED_ALREADY_EXIST]" 동일한 패키지가 이미 존재하기 때문에 설치가 불가 하다는 메시지다. 이와 같은 오류가 발생할 때는 2 가지 방법으로 해결할 수 있다. 1. 기존 앱 제거 후 다시 설치 2. adb 에 "-r" option 으로 설치하기 (사용자 데이터는 유지하고 앱 다시 설치) - "adb install -r *.apk"

Android/Troubleshooting 2020. 3. 19. 09:17
getColor, getDrawable deprecated

Android 6(API 23) version 부터 resource 를 통한 getColor, getDrawable 이 deprecated 되었다. 이번 포스팅에서는 deprecated 된 getColor, getDrawable 에 대해 알아보자. Old (~Android API 22) ◼ Android 5.1(API 22) 까지는 하단과 같이 resource 를 통한 getColor, getDrawable 을 사용해 왔다. New (Android API23~) ◼ Android 6(API 23) 부터는 하단과 같이 ContextCompat 을 통하여 getColor, getDrawable 을 사용하면 된다. (com.android.support:support-appcompat 을 추가하면 Context..

Android/Troubleshooting 2020. 1. 30. 09:18
[ADB] error: more than one device/emulator

Android 로 개발을 하다보면 device(에뮬 포함) 가 여러개 연결된 상태가 종종 있다. 이때 adb 명령을 수행하면 "more than one device/emulator" error message 를 만날 수 있다. 가장 간단하게 타겟 device 를 빼고 나머지 연결을 끊으면 되지만 ^^; 하단과 같이 타겟 device 를 지정할 수 있다. - "adb devices" - "adb -s 디바이스 이름 sehll" (대상 타켓을 -s 옵션으로 지정한다.)

Android/Troubleshooting 2019. 5. 17. 09:19
This view is not constrained

ConstraintLayout 이 부모일 때 Button 이나 TextView widget 등을 drag and drop 으로 배치하면 아래와 같은 에러 메시지가 발생한다. This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints Why? 간단히 설명하면 추가된 Button or TextView widget 이 연결된 곳이 없으니 좌표를 0, 0 으로 강제 이동 시킨다는 말이다. 요건 ConstraintLayout 의 특성을 이해한다면 당연한 말이다. Solution 해당 widget 에 원하는 연결 관계를 만들어 주자! 그러기 위해서는 Constraint..

Android/Troubleshooting 2019. 1. 16. 10:25
AppWidgetProvider 의 onEnable/onDisabled 가 호출되지 않을 때

Android target SDK 를 Android O(API level 26) 이상으로 올린 후 기존에 잘 동작하던 widget 의 click event (pending intent) 가 동작하지 않았다. Android O 에서 암시적 브로드캐스트(Implicit broadcast) 인텐트 제한이 적용되었기 때문이다. 암시적 브로드캐스트(Implicit broadcast) 를 묵시적 브로드캐스(Explicit broadcast) 로 변경 후 동작을 확인해보니 AppWidgetProvider 의 onEnable / onDisabled 함수가 호출되지 않았다. onEnable : App widget 이 처음 생성될 때 불림. 같은 위젯을 여러개 띄어도 첫 번째 위젯을 띄울 때만 호출. onDisabled ..

Android/Troubleshooting 2019. 1. 11. 14:04
[Android O] Broadcast limitations for widget

Android target SDK 를 Android O(API level 26) 이상으로 하고 기존의 암시적 브로드캐스트(Implicit broadcast) 를 manifest 에 등록하여 이용한 widget 의 pending intent 를 처리하면 아래와 같은 warning 이 발생하면서 정상동작을 안 한다. W/BroadcastQueue: Background execution not allowed: receiving Intent ...... Android O 부터 암시적 브로드캐스트 인텐트 제한이 적용되었기 때문이다. 브로드캐스트 제한 | Android Developers 명시적 브로드캐스트 vs 암시적 브로드캐스트 명시적 브로드캐스트 (Explicit broadcast) 인텐트에 클랙스 객체나 컴..

Android/Troubleshooting 2019. 1. 10. 10:19
이전 1 2 다음
이전 다음
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 임이지의 블로그 - be the miracle!
TAG
  • 리워드 어플
  • StringUtils
  • 리워드앱
  • M2E
  • onContextItemSelected
  • 채굴앱
  • RoomDatabase
  • android intent
  • android task
  • task
  • BroadcastReceiver
  • 안드로이드 인텐트
  • WEMIX
  • 앱테크
  • Android Service
  • 무료 채굴
  • StartService
  • p2e
  • 안드로이드 서비스
  • onCreateContextMenu
  • 앱테크 추천
  • android activity flag
  • bindservice
  • mPANDO
  • android flag activity
  • Intent
  • notifyDataSetChanged
  • registerForContextMenu
  • 무료채굴
  • task 생성
more
«   2025/10   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바