Braintree - Error Setting Up Advanced Fraud Tools On Android - android

We're already setup with Braintree, I'm having issues setting up our Android project with Braintree's Advanced Fraud Tools. We’ve followed all of the instructions here
I'm getting the following error message when we run the app after the library is imported through Gradle.
Error:Execution failed for task ':App:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: com/devicecollector/AbstractCollectorProcess.class

Related

Alexa-Auto-SDK cannot find autovoicechrome.aar

I am trying to build sample app (apk) for alexa-auto-sdk. I am facing issues when building. the error i'm getting is.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':alexa-auto-app:dataBindingMergeDependencyArtifactsLocalRelease'.
> Could not resolve all task dependencies for configuration ':alexa-auto-app:localReleaseRuntimeClasspath'.
> Could not find :autovoicechrome:.
Searched in the following locations:
- file:/home/chetan/Projects/Amazon_Alexa/alexa-auto-sdk/aacs/android/sample-app/alexa-auto-app/libs/autovoicechrome.aar
- file:/home/chetan/Projects/Amazon_Alexa/alexa-auto-sdk/aacs/android/app-components/alexa-auto-voice-ui/libs/autovoicechrome.aar
- file:/home/chetan/Projects/Amazon_Alexa/alexa-auto-sdk/aacs/android/app-components/alexa-auto-voice-interaction/libs/autovoicechrome.aar
Required by:
project :alexa-auto-app > project :alexa-auto-voice-ui
I cloned in version 4.0 as I was facing issues when building with 4.1.
This is the README.md for sample app
https://github.com/alexa/alexa-auto-sdk/blob/4.0/aacs/android/sample-app/README.md
Please help with any information that you might have related to this.
You should request this aar from Amazone support.

Error when I add webview_flutter : Execution failed for task ':app:transformClassesWithMultidexlistForDebug'

I am getting the following Error When I run the flutter project only after installed webview_flutter plugin.
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'
> com.android.build.api.transform.TransformException: Error while generating the main dex list.
I am already using firebase in the app. some searches saying this is the problem related to the firebase. Searches are giving following solutions. I have tried all of them. but still getting the same.
Migrating to Android X, Making multiDexEnabled true in android build.gradle,

Error:Execution failed for task ':transformClassesWithJarMergingForRelease'

I am implementing facebook native ads in unity that needs gradle build from unity. After importing to Android Studio and gradle sync it runs well but during signed APK it produces the error which is.
Error:Execution failed for task ':transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/unity3d/ads/android/BuildConfig.class
This error means you have duplicate class definition for:
com.unity3d.ads.android.BuildConfig
Try look into your jar/aar to see if the class is present at multiple places.
I like to use grep (linux/osx) or 7-Zip to quickly explores my jar/aar files

java.util.zip.ZipException: duplicate entry: com/localytics/android/BuildConfig.class

I'm having this error when integrating Adobe Creative SDK. The problem seems to come from Localytics library inside the Creative SDK.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/localytics/android/BuildConfig.class
This seems to happen because we are also using Localytics in our project but I found out that the one in the Creative SDK is older version (Ver. 2) than the one in our project (Ver. 4)
You can use this command at the Android Studio Terminal:
1
./gradlew :app:dependencies
2
./gradlew clean (Android ---> Clean the Project)
3
./gradlew clean assembleDebug | ./gradlew clean:assembleDebug
Let me know if this works! I fixed my project or if you need something more clear.

TransformException after updating gradle version

Am using the following library Autobahn for web sockets usage in my Android project.
When am using the old gradle version 1.3.0, am not encountering any issues in building & running the app, whereas
when i update the gradle version to 1.5.0, am encountering the following issue.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: de/tavendo/autobahn/ByteBufferInputStream.class
I have tried the below options already
1. multiDexEnabled is set to true in gradle file.
2. gradlew clean is also done, along with clean build.
Any other suggestions to resolve this issue would be great.
Regards,
Dinesh Kumar G
Here is a interesting way to add Autoban build to gradle. Try to remove your jar and add this in your build file.

Categories

Resources