본문 바로가기

반응형

공부/안드로이드\Android

(5)
[Android/안드로이드] Android Studio 무선(WIFI) 디버깅 연결 에뮬레이터가 되기는 하지만, 노트북이 이륙 직전의 상태이고 USB선이 계속 인식되다가 안되는 경우 때문에 Android Studio에서 adb를 리모트로 연결하는 방법을 정리해보겠다. Android 11부터 무선 디버깅(wireless debugging)이 추가 되었다. 1. Android 11 이후 방법 Android 11에서는 무선디버깅을 메뉴에서 지원하며, 이전 버전과는 다르게 페어링이 완료한 후에 사용할 수 있다. 또한, 사용하는 포트도 매번 연결 시도시에 임의로 변경된다. 1) 개발자 옵션에서 무선 디버깅(Wireless Debugging) 클릭 2) WIFI 확인한 후, Allow 버튼 클릭한다. 3) 페어링 코드로 기기 페어링 클릭. 그러면 아래와 같은 화면이 뜰 것이다. 4) Android..
[안드로이드/Android] Go to the documentation to learn how to Fix dependency resolution errors. 해결 Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-25.1.1-runtime (com.android.support:support-compat:25.1.1) Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-25.1.1-runtime (com.android.support:suppor..
[안드로이드/Android] Unrecognized Android Studio (or Android Support plugin for IntelliJ IDEA) version , please retry with version 20XX.X.X or newer. 아래와 같이 뜨는 오류를 해결해보자 익명의 XXX고양이께서 안드로이드 스튜디오를 업데이트 하는 바람에 (안그래도 오류가 많았지만) 계속된 버전 문제에 굴복하였고, 안드로이드 스튜디오 업데이트를 하기로 힘들게 마음을 먹었다. Unrecognized Android Studio (or Android Support plugin for IntelliJ IDEA) version '202.7660.26.42.7486908', please retry with version 2020.3.1 or newer. 이 문제는 안드로이드 프로젝트를 같이하던 동료가 버전을 올려버려서 안맞을 때 발생하는 증상이다. build.gradle를 보면, 아래와 같이 바뀐 것을 확인할 수 있다. classpath "com.android.to..
[안드로이드/Android] Untracked Files Prevent Checkout Move or commit them before checkout 해결 아래와 같은 문제가 발생 시, 해결하는 방법이 두가지가 있다. Untracked Files Prevent Checkout Move or commit them before checkout 1. VCS에 파일을 추가한 후, 커밋을 한다. Add to VCS 를 클릭하면, Unversioned Files -> Default Changelist 로 옮겨진것을 확인할 수 있다. 그러고 나서 commit을 해주면 된다! 그러나, 파일이 본의 아니게 바뀌었고, 변경 사항을 반영하고 싶지 않을 경우가 있다. 2. "숨김" 처리 한다. Ctrl + Shift + a 를 하거나, VCS->Git->Stash Changes 를 클릭해준다. 작업명을 해주고 Create Stash 를 해주고 기존에 하던 작업을 하면 된다! (..
[안드로이드/Android] Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug 에러 해결 Unable to determine application id: com.android.tools.idea.run.ApkProvisionException: No outputs for the main artifact of variant: debug 이 에러가 발생해서 빌드가 안되는 경우가 있다. 해결방법 1. Build -> Clean project 2. Build -> Rebuild project 를 해주고 안될 경우 3. File -> Invalidate Caches / Restart -> Invalidate and restart 를 해주면 된다. https://stackoverflow.com/questions/56440572/how-to-fix-unable-to-determine-application-..

반응형