본문 바로가기

728x90

android error

(3)
java.lang.NoSuchMethodError / ClassNotFoundException / NoSuchFieldError 해결 방법 릴리즈 빌드에서만 터지는 ProGuard / R8 오류 완전 정리 안드로이드 앱을 개발할 때 디버그에서는 잘 동작하는데, 릴리즈 빌드로 올리면 갑자기 크래시가 나는 경우가 많다. 특히 minifyEnabled true 로 코드 난독화/최적화를 켜면 java.lang.NoSuchMethodError, ClassNotFoundException, NoSuchFieldError 같은 오류가 대표적이다. 이 글에서는 릴리즈에서 자주 터지는 ProGuard / R8 관련 오류가 언제/왜 발생하는지, 어떻게 해결/예방하는지를 실제 예제 코드와 함께 정리한다. 목차1. 릴리즈에서만 터지는 ProGuard / R8 오류는 왜 발생할까?2. 대표적인 오류 사례와 해결 방법3. 처음부터 예방하는 ProGuard / R8 ..
[안드로이드 에러 해결] SDK location not found [ SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/walkydoggy/git/dogmaster_app/android/local.properties'. ] 해당 에러는 안드로이드 스튜디오를 이용해서 시뮬레이터 및 기기를 연결해서 프로젝트를 실행할 때, 안드로이드 SDK 설정이 잘못되어있으면 발생하는 에러다 이번 포스팅에서는 해당 에러를 해결하는 방법을 포스팅한다 1 안드로이드 SDK 경로 확인 안드로이드 스튜디오 진입 페이지에서 [SDK Manager] 선..
[안드로이드 에러 해결방법]error Failed to install the app. Make sure you have an Android emulator running or a device connected. [ Task :app:installDebug FAILED Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings 684 actionable tasks: 9 executed, 675 up-to-date FAILURE: Build failed with an exception. * What went wrong:..

728x90