Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program type already present #161

Open
MuhammedAlmaz opened this issue Feb 14, 2022 · 2 comments
Open

Program type already present #161

MuhammedAlmaz opened this issue Feb 14, 2022 · 2 comments

Comments

@MuhammedAlmaz
Copy link

I checked all dependency on my packages but there is not any package which using react-native-adjust. I tried force only one time implement the dependency with this code block but it doesn't work already.

Force implementation code;

    configurations.all {
        resolutionStrategy {
            force  group: 'com.adjust.sdk', name: 'adjust-android', version: '4.29.1'
        }
    }
AGPBI: {"kind":"error","text":"Program type already present: com.adjust.sdk.ActivityHandler$10","sources":[{}],"tool":"D8"}
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: com.adjust.sdk.ActivityHandler$10
	at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:131)
	at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:118)
	at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:102)
	at com.android.build.gradle.internal.tasks.DexMergingTaskRunnable.run(DexMergingTask.kt:444)
@uerceg
Copy link
Contributor

uerceg commented Feb 14, 2022

Hi @MuhammedAlmaz,

In current state of things, our React Native SDK contains our native Android SDK added as a JAR dependency. So there is no need to have any other reference to it in your Gradle file. Are you still facing the same issue if you remove all native Adjust Android SDK references from Gradle file?

@MuhammedAlmaz
Copy link
Author

MuhammedAlmaz commented Feb 14, 2022

Hi @uerceg ,

I checked all gradle files there is not any adjust sdk. I removed all but i guess this error again. Idk why. I clear gradle files, caches etc.

I could run this app 1 month ago. After i update android studio, it stopped working .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants