목록안드로이드 개발/오류수정 (22)
일모도원(日暮途遠) 개발자
앱의 기능중 서버에서 데이타를 받아와서 앱 내에 있는 SQLite의 내용을 업데이트 하는 기능이 있다. 디버그 모드에서는 동작이 잘되나, 릴리즈 모드에서는 저 기능이 동작하지 않는다. 삽질 끝에 build.gradle의 minifyEnabled가 true일때 저 이슈가 나온다는것을 발견했다. (minifyEnabled가 true이면 shrinkResources도 true여야 한다.) buildTypes { debug { } release { debuggable false minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } minif..

타겟을 33으로 올리고 구글 플레이에 제출하니 아래와 같은 에러가 나온다. Your app targets Android 13 (API 33) or above. You must declare the use of advertising ID in Play Console. 만약 앱에 광고가 있으면 manifest에 아래를 추가하자.(광고가 없으면 추가하면 안됨) 구글 플레이에서 정책 및 프로그램 밑에 있는 앱 콘텐츠로 가서 "광고 ID"에 있는 시작을 클릭한다. 광고 ID 사용여부를 체크해준다.
타겟을 버전 31로 올리고 구글 플레이에 올리니 아래와 같은 에러가 나왔다. Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 기존에는 work-runtime버전이 2.1.0인데 implementation "androidx.work:work-runtime:2.1.0" 이걸 2.7.0으로 업그레이드하니 해결되었다. 되었는줄 알았다 // 자바를 쓰는 경우 implementation 'androidx.work:work-runtime:2.7.0' // 코틀린을 쓰는 경우 implementation 'androidx.work:wo..

Google Play에 앱을 올리니 아래와 같은 에러가 나왔다. You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported 에러 메시지를 읽어보면 intent filter를 쓰는 activity, activity alias, s..

잘되던 소스코드를 조금 수정하고 나니 아래와 같은 에러가 뜬다. 구글링 해보니 엑셀레이터 관련 오류라고 하는데, 난 다른 케이스 였다. A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x804 in tid 17153 (msoft.aradiceng), pid 17153 (msoft.aradiceng) 에러가 나는 지점은 이 코드인데, try로 감싼 코드인데도 catch가 잡아내지 못한다. (Speech To Text 오픈소스인 VOSK를 사용하는 코드임) Recognizer rec = new Recognizer(currentModel, 16000.0f); 수정할때 버그로 저 "currentModel"을 초기화를 못해서 null이 되..
반투명하게 되는 애니메이션동안은 클릭이 안되는 기존 코드 UIView.animate(withDuration: 1, animations: { //btn.alpha = 0 }, completion: { (_) in }) 투명해지는 동안에도 클릭이 되는 코드 : options:[.allowUserInteraction]를 추가한다. UIView.animate(withDuration: 1, delay: 0, options:[.allowUserInteraction], animations: { //btn.alpha = 0 }, completion: { (_) in }) 아래처럼 UIViewPropertyAnimator를 사용해도 된다. 참고 UIViewPropertyAnimator(duration: 1, curve:..

Glide문서에 있는 기본 예제를 실행해 봤는데 에러가 나고 이미지가 보이지 않는다. ImageView imageView = (ImageView) findViewById(R.id.my_image_view); Glide.with(this).load("http://goo.gl/gEgYUd").into(imageView); 에러 내용 W/Glide: Load failed for http://goo.gl/gEgYUd with size [131x131] class com.bumptech.glide.load.engine.GlideException: Failed to load resource There was 1 root cause: com.bumptech.glide.load.HttpException(Failed t..

앱을 테스트플라이트에 올릴때 아이콘에 알파값이 있거나 투명해서는 안된다는 오류를 만났다. 왜 이런 에러를 Arachive할때나, 미리 알려주지 않고, 맨 마지막 단계인 업로드할때 알려줄까? 사용자UX만 중요하고, 개발자UX는 이래도 되나 애플!!! Invalid App Store Icon. The App Store Icon in the asset catalog in 'AraPlayer_EnglishPro.app' can't be transparent nor contain an alpha channel. With error code STATE_ERROR.VALIDATION_ERROR.90717 for id e83fa5e6-b5b4-4dd1-b552-64c46c791f7f 앱 아이콘 이미지가 있는 Asset..