Category: Android

안드로이드 개발 관련 카테고리입니다.

Android

[안드로이드]Fatal Exception: java.lang.NoSuchMethodError: No static method metafactory(n class Ljava/lang/invoke/LambdaMetafactory….오류 해결 방법

안드로이드 12를 타겟팅하면 발생된 오류이다. Fatal Exception: cr) at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:138) at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:103) at androidx.appcompat.app.AppCompatActivity.<init>(AppCompatActivity.java:94) at ddolcat.daily.budget.BaseActivity.<init>(BaseActivity.java:30) at ddolcat.daily.budget.MainActivity.<init>(MainActivity.java:62) at java.lang.Class.newInstance(Class.java) at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95) at androidx.core.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:45) at...
Android

[안드로이드] Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 오류 해결 방법

targetSdkVersion 31로 상향 조정하면서 여기저기서 오류가 튀어 나온다. 오류 내용은 다음과 같다. 2022-10-02 12:29:09.109 6268-6309/com.test E/AndroidRuntime: FATAL EXCEPTION: pool-9-thread-1 Process: com.test, PID: 6268 java.lang.IllegalArgumentException: com.test: Targeting...
Android

[안드로이드 오류 처리] Caused by: com.android.builder.merge.DuplicateRelativeFileException: More than one file was found with OS independent path ‘META-INF/com.android.tools/proguard/coroutines.pro

targetSdkVersion을 31로 상향 후 발생된 오류이다. Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > More than one file was found with OS independent path 'META-INF/com.android.tools/proguard/coroutines.pro' * Try:...
error: Content is protected !!