본문 바로가기

Android

Failed to find byte code for $classPath

android level 28 대응 코딩을 하던 중..
생체 인증을 위해 안드로이드에서 제공하는 BiometricPrompt 로 변경하는 중에 x86 에뮬레이터(API LEVEL 28) 로는 이상없이 작동되던 코드가
실제 단말인 s6 (API LEVEL 24) 에서는 오류가 발생되었는데 아래와 같은 문구를 출력하며 시작도 안되었다.
Failed to find byte code for android/hardware/biometrics/BiometricPrompt$AuthenticationCallback

이상함에 adb install 로 했을때 apk 가 잘 설치되고 동작됨은 확인 하였는데 왜 이러나?를 알기위해 검색을 진행 했는데
https://stackoverflow.com/questions/49619910/android-compiling-error-failed-to-find-byte-code-for-java-util-function-functi

대략 android studio 의 버그라고 이야기들이 많으며 이 문제를 해결하기 위해서는 설정에서 instant run 체크를 꺼버리면 된다고 한다.

원래도 잘 안쓰긴 했지만 Instant run 은 정이 안가는 듯