본문 바로가기
반응형

Development/Error25

[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.
[Error] entries cannot be protected with passwords 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. java.security.KeyStoreException: entries cannot be protected with passwords at android.security.keystore.AndroidKeyStoreSpi.engineSetKeyEntry(AndroidKeyStoreSpi.java:308) at java.security.KeyStore.setKeyEntry(KeyStore.java:1179) setKeyEntry method가 분명히 존재하고 passwords 매개 변수를 사용한다는 사실에도 불구하고 AndroidKeystore 구현은 이를 지원하지 않습니다.어떤 경우든 장.. 2019. 8. 27.
[Error] Unable to add window -- token null is not valid; is your activity running? 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. Unable to add window -- token null is not valid; is your activity running? 1. Dialog 생성 시 applicationContext를 사용하여 발생하는 오류로 특정 Activity 의 Context를 호출하여 build 하시면 됩니다. (Before)val builder = AlertDialog.Builder(ContextThemeWrapper(applicationContext , R.style.AppTheme)) (After)val builder = AlertDialog.Builder(ContextThemeWrapper(Ma.. 2019. 8. 26.
[Error] You need to use a Theme.AppCompat theme (or descendant) with this activity. 이번 포스팅은 Android Build 오류에 대하여 알아보도록 하겠습니다. java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. 1. AppCompat 테마를 사용해야 합니다.2. AlertDialog. Builder로 Instance를 생성 시 AppCompat Library가 적용된 테마를 호출하여 build를 합니다. (declaration)val builder = AlertDialog.Builder(ContextThemeWrapper(MainActivity@this , R.style.AppTheme)) (style... 2019. 8. 26.
반응형