You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
[Android] Not support new arch react native 0.76.5 #2432
After assembleRelease and installing in real device and emulator with release.apk
I got the same error for every fresh installing
and when recieving notificaiton
What went wrong:
Execution failed for task ':app:checkUatDebugDuplicateClasses'.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.12.0-alpha05.aar -> core-1.12.0-alpha05-runtime (androidx.core:core:1.12.0-alpha05) and support-compat-27.1.1.aar -> support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
Environment:
React native: 0.76.5
OS: Windows
package version:^8.1.1
This is fixed by adding below line in gradle.properties file
Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
your problem is not related to mine.
I decided to change libary to @notifee/react-native
for whoever that is facing the same problem I encourage to change the library because this library is not being updated for long
Alternative way to fix problem Duplicate class android.support.v4.app.INotificationSideChannel is to go through all your deps and remove line staring with implementation "com.android.support... in their android/build.gradle dependencies like here and patch-package these changes to ensure that they persist across reinstalls
Activity
[-]Not support new arch react native 0.76.5[/-][+][Android] Not support new arch react native 0.76.5[/+]PawanYadav1996 commentedon Jan 2, 2025
Facing the same issue with below error
Execution failed for task ':app:checkUatDebugDuplicateClasses'.
Environment:
React native: 0.76.5
OS: Windows
package version:^8.1.1
PawanYadav1996 commentedon Jan 3, 2025
This is fixed by adding below line in gradle.properties file
Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
nazacity commentedon Jan 3, 2025
your problem is not related to mine.
I decided to change libary to @notifee/react-native
for whoever that is facing the same problem I encourage to change the library because this library is not being updated for long
jibeleck commentedon Jan 9, 2025
Alternative way to fix problem
Duplicate class android.support.v4.app.INotificationSideChannelis to go through all your deps and remove line staring withimplementation "com.android.support...in their android/build.gradle dependencies like here and patch-package these changes to ensure that they persist across reinstalls