본문 바로가기
반응형

Development/Error22

[Error] Illegal character in query at index 50 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다.Intent 형태로 데이터를 전달받을 시 아래와 같은 오류가 발생하였습니다. java.net.URISyntaxException: Illegal character in query at index 50: androidData://androidScheme?requestCode=8&userAgent=function trim() { [native code] }&data=VEMgU2FtcGxlIFRleHQg7JuQ66y4IOuplOyLnOyngOyeheuLiOuLpC4= W/System.err: at java.net.URI$Parser.fail(URI.java:2892) W/System.err: at java.net.URI.. 2019. 9. 6.
[Error] Can only replace keys with same alias 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다.Keystore의 'ABC' 라는 alias를 가진 Key를 그대로 두고 그 키를 새로운 'DEF' 라는 alias에 Key를 저장을 하려고 하였습니다. java.security.KeyStoreException: Can only replace keys with same alias: ABC != DEF 1. Keystore의 setEntry 설명 문서를 살펴보니 동일한 Key를 새로 저장할 수 없고 만약 이미 등록된 alias가 있다면 동일한 alias로 조회시 새로운 Key로 대체가 된다고 설명이 되어 있었습니다. 2. 즉, Keystore에 동일한 Key를 그대로 두고 다른 alias로 .. 2019. 9. 1.
[Error] This Handler class should be static or leaks may occur (anonymous android.os.Handler) 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. This Handler class should be static or leaks may occur (anonymous android.os.Handler) 1. Handler class는 object가 아니라 static class로 선언이 되어야 하는데 그러지 않아서 오류가 발생하는 것입니다.2. 여기서 한 가지.... 나는 Handler를 아래와 같이 static 으로 선언하였는데 왜 이런 오류가 계속 뜨는 거지? public static final Handler myHandler = new Handler() { public void handleMessage(Message msg) { ... 2019. 8. 29.
[Error] API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()' 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced with 'variant.getMergeResourcesProvider()'.It will be removed at the end of 2019.For more information, see https://d.android.com/r/tools/task-configuration-avoidance.REASON: It is currently called from the following trace: 1. 'com.google.gms:google-service.. 2019. 8. 29.
[Error] Unsupported key algorithm: RSA. OnlyEC supported 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. java.security.InvalidKeyException: Unsupported key algorithm: RSA. OnlyEC supported 1. Android Keystore에 저장된 Key를 이용하여 Signature 생성 시 Key 알고리즘이 달라서 생기는 오류 (즉, RSA 알고리즘으로 생성된 Key를 EC 알고리즘 Key로 Signature 생성 시 오류가 발생) 2. Key 생성 알고리즘을 정확하게 아래와 같이 선언 Signature keystoreSignature = Signature.getInstance("SHA256withECDSA"); keystore.. 2019. 8. 28.
[Error] exposed beyond app through ClipData.Item.getUri() 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. android.os.FileUriExposedException: file:///storage/emulated/0/Download/viewData.pdf exposed beyond app through ClipData.Item.getUri() 1. Android 7.0 이상부터 파일 공유 시 API 정책 변경2. file:// URI 의 직접적인 노출이 아니라 content://URI 로 보내고 이에 대해서 임시 Access 권한을 부여하는 방식으로 변경이 되었습니다. 아래는 Google Android OS 7.0 공식 문서 입니다. (링크 : https://developer.android.c.. 2019. 8. 27.
반응형