본문 바로가기
개발자의삶/Android

Starting: Intent { act=android.intent.action.VIEW dat= cmp=com.android.chrome/com.google.android.apps.chrome.Main }Error type 3Error: Activity class {com.android.chrome/com.google.android.apps.chrome.Main} does not exist. 해결 법

by 트라네스 2023. 11. 16.
728x90
반응형

안드로이드 13으로 버전업 되면서 크롬의 base url 입력 실행 adb 명령 오류 발생 시(Error type 3Error)

 최근 안드로이드 13으로 버전 업그레이드가 되면서 이전에 작업해두었던 명령어 등이 실행이 안되는 현상이 발생했다. 그 중에 하나로 아래의 명령어가 에러가 나는 것이었다.

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main -a android.intent.action.VIEW -d www.naver.com

 

 그동안 문제 없이 사용했었던 내용이기에 큰 문제를 모르고 있었으나 이 내용은 기존에 이미 변경되었어야하는 것이었다. 이래서 변경 관련 내용을 숙지해야하나보다. 아래 링크를 참고하여 명령어를 수정하였더니 문제 없이 실행되었다. 여기서 중요한 포인트는 Main 에서 IntentDispatcher 로 변경해야 하며 -d 옵션의 url 에 반드시 http:// 나 https:// 를 붙여야 하는 것이었다.

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.IntentDispatcher -a android.intent.action.VIEW -d https://www.naver.com

 

참고 : https://automationchronicles.com/error-when-opening-chrome-on-android-13-via-adb/

 

Error when opening Chrome on Android 13 via adb - Test Automation Chronicles

Recently I’ve started adapting our test framework for new Android release, and encountered an unexpected error when opening Chrome on Android 13 via adb. Since solving this issue required some investigation and a knowledge of Android development, I’ve

automationchronicles.com

 

 아무튼 이런 기록을 남겨두는 습관을 기르도록 해야겠다.

 

728x90
반응형

댓글


TOP

TEL. 02.1234.5678 / 경기 성남시 분당구 판교역로