mixpanel-android | Official Android Tracking Library for Mixpanel Analytics | Plugin library

 by   mixpanel Java Version: 7.4.1 License: Apache-2.0

kandi X-RAY | mixpanel-android Summary

kandi X-RAY | mixpanel-android Summary

mixpanel-android is a Java library typically used in Plugin, Gradle applications. mixpanel-android has build file available, it has a Permissive License and it has medium support. However mixpanel-android has 83 bugs and it has 1 vulnerabilities. You can download it from GitHub, Maven.

You will need your project token for initializing your library. You can get your project token from project settings. Step 1 - Add the mixpanel-android library as a gradle dependency: We publish builds of our library to the Maven central repository as an .aar file. This file contains all of the classes, resources, and configurations that you'll need to use the library. To install the library inside Android Studio, you can simply declare it as dependency in your build.gradle file. Add the following lines to the dependencies section in app/build.gradle. On Jan 1, 2022, we’ll remove the Messages & Experiments feature from Mixpanel. For now, you can choose to opt in to our beta version without the Messages & Experiments feature support. Once you've updated your build.gradle file, you can force Android Studio to sync with your new configuration by clicking the Sync Project with Gradle Files icon at the top of the window. This should download the .aar dependency at which point you'll have access to the Mixpanel library API calls. If it cannot find the dependency, you should make sure you've specified mavenCentral() as a repository in your build.gradle.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mixpanel-android has a medium active ecosystem.
              It has 982 star(s) with 357 fork(s). There are 113 watchers for this library.
              There were 3 major release(s) in the last 12 months.
              There are 7 open issues and 454 have been closed. On average issues are closed in 167 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of mixpanel-android is 7.4.1

            kandi-Quality Quality

              OutlinedDot
              mixpanel-android has 83 bugs (3 blocker, 0 critical, 65 major, 15 minor) and 1275 code smells.

            kandi-Security Security

              mixpanel-android has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              mixpanel-android code analysis shows 1 unresolved vulnerabilities (0 blocker, 0 critical, 1 major, 0 minor).
              There are 13 security hotspots that need review.

            kandi-License License

              mixpanel-android is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              mixpanel-android releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              mixpanel-android saves you 11569 person hours of effort in developing the same functionality from scratch.
              It has 23395 lines of code, 1807 functions and 157 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed mixpanel-android and discovered the below as its top functions. This is intended to give you an instant insight into mixpanel-android implemented functionality, and help decide if they suit your requirements.
            • Send http event
            • Store super properties
            • Read super properties
            • Add super properties to this JSONObject
            • Check to see if we are online
            • Helper method to check if the offline mode is offline
            • Perform a HTTP request
            • Creates a byte array from the input stream
            • Removes events before a given table
            • Removes events from the table
            • Returns a group object for the specified group key
            • Optimization of user
            • Called when an activity is resumed
            • Gets the time events
            • Returns true if Bluetooth is enabled
            • Remove opt - out flag
            • Indicates if the database is first launched
            • Remove a group from the user s membership
            • Generates and returns the data string that will be sent to the Mixpanel
            • Copies anonymous people updates to people db
            • Adds a JSON string to the database
            • Called when the activity is paused
            • Determines if the given version code is newer or not
            • Pushes anonymous updates to people db
            • Initializes the map
            • Creates a unique_id alias
            Get all kandi verified functions for this library.

            mixpanel-android Key Features

            No Key Features are available at this moment for mixpanel-android.

            mixpanel-android Examples and Code Snippets

            No Code Snippets are available at this moment for mixpanel-android.

            Community Discussions

            QUESTION

            Supertypes of the following classes cannot be resolved. on BaseQuickAdapter from BRVAH
            Asked 2020-Oct-16 at 08:39

            My Project suddenly cannot build APK, with error e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.chad.library.adapter.base.BaseQuickAdapter, unresolved supertypes: androidx.recyclerview.widget.RecyclerView.Adapter class com.chad.library.adapter.base.BaseViewHolder, unresolved supertypes: androidx.recyclerview.widget.RecyclerView.ViewHolder

            the project is running fine when running or build on debug, but error occured when building android app bundle or APK.

            my app gradle

            ...

            ANSWER

            Answered 2020-Oct-15 at 17:09

            Add this line of code to your build.gradle file where you do have classpath:

            maven { url "https://jitpack.io" }

            so it'll look like this

            `allprojects {

            Source https://stackoverflow.com/questions/64317561

            QUESTION

            Could not find any version that matches com.google.android.gms:play-services-base:[15.0.1,16.0.0)
            Asked 2020-Feb-04 at 08:17

            I am using firebase for my android app and suddenly I am getting an error when I tried to run the app. Saturday it was working perfectly. I don't know how this error occurred and how to solve this. Please help me.

            dependencies in my build.gradle

            ...

            ANSWER

            Answered 2020-Feb-04 at 08:17

            Add this line in build.gradle

            Source https://stackoverflow.com/questions/50791632

            QUESTION

            Error: Program type already present: androidx.asynclayoutinflater.R
            Asked 2020-Jan-15 at 20:19

            I've tried upgrading my facebook sdk my app was using to the latest version (5.1.1), and it somehow took me down a rabbit hole of migrating my project to AndroidX. After doing the migration and ironing out some gradle issues, I now have a build issue Error: Program type already present: androidx.asynclayoutinflater.R

            I've been trying to resolve my problem using this answer and other variants of it but Im finding it difficult to find which libraries are using androidx.asynclayoutinflater.R

            when i dump out my dependancies i get this

            ...

            ANSWER

            Answered 2019-Jul-23 at 19:15

            So after days of suffering I finally found the issue

            i had to change

            Source https://stackoverflow.com/questions/57094328

            QUESTION

            build failing during merge resources with Android Gradle plugin 3.3.0
            Asked 2020-Jan-11 at 11:34

            I have a lot of different flavors for my build that have specific resources and I don't want to clutter my src directory in my project with a bunch of flavor-specific directories, so I add the source sets from another folder in my project prior to the mergeResources task (mergeResources.doFirst). This has always worked for the past several versions of the Android Gradle plug-in (3.1.0-3.2.0 and some of the 3.3.0-alpha versions), but at a certain point, the 3.3.0-alpha AGP started causing build failures during this mergeResources task.

            Now I keep getting:

            BUILD FAILED in 35s 16 actionable tasks: 15 executed, 1 up-to-date Exception in thread "ForkJoinPool.commonPool-worker-6" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96) at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61) at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96) at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

            My stacktrace is:

            Execution failed for task ':app:mergeMainReleaseResources'. java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.0-alpha13-5013011-windows Daemon #0: Unexpected error during compile 'C:\Users\Alex\Documents\Work\Android\project\app\productio n_resources\categories\fitness\res\drawable-xxxhdpi\background_4.png', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does.

            Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:mergeMainReleaseResources'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77) at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101) at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46) at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)

            Caused by: org.gradle.internal.UncheckedException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.0-alpha13-5013011-windows Daemon #0: Unexpected error during compile 'C:\Users\Alex \Documents\Work\Android\project\app\production_resources\categories\fitness\res\drawable-xxxhdpi\background_4.png', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:63) at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:40) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76) at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39) at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174) at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99) ... 31 more Caused by: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.0-alpha13-5013011-windows Daemon #0: Unexpected error during compile 'C:\Users\Alex\Documents\Work\Android\project\app\ production_resources\categories\fitness\res\drawable-xxxhdpi\background_4.png', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. at com.android.ide.common.workers.ExecutorServiceAdapter.close(ExecutorServiceAdapter.kt:56) at com.android.build.gradle.internal.aapt.WorkerExecutorResourceCompilationService.close(WorkerExecutorResourceCompilationService.kt:67) at com.android.build.gradle.tasks.MergeResources.doFullTaskAction(MergeResources.java:268) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:106) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) ... 42 more

            Caused by: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.0-alpha13-5013011-windows Daemon #0: Unexpected error during compile 'C:\Users\Alex\Documents\Work\Android\project\app\production_resources\categories\fitness\res\drawable-xxxhdpi\background_4.png', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. at com.android.builder.internal.aapt.v2.Aapt2Daemon.handleError(Aapt2Daemon.kt:148) at com.android.builder.internal.aapt.v2.Aapt2Daemon.compile(Aapt2Daemon.kt:88) at com.android.builder.internal.aapt.v2.Aapt2DaemonManager$LeasedAaptDaemon.compile(Aapt2DaemonManager.kt:170) at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:37) at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:28) at com.android.build.gradle.internal.res.namespaced.Aapt2DaemonManagerService.useAaptDaemon(Aapt2DaemonManagerService.kt:71) at com.android.build.gradle.internal.res.namespaced.Aapt2DaemonManagerService.useAaptDaemon$default(Aapt2DaemonManagerService.kt:69) at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable.run(Aapt2CompileWithBlameRunnable.kt:34) at com.android.ide.common.workers.ExecutorServiceAdapter$submit$submission$1.run(ExecutorServiceAdapter.kt:39)

            Caused by: java.io.IOException: AAPT2 process unexpectedly exit. Error output: at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl$WaitForTaskCompletion.err(Aapt2DaemonImpl.kt:309) at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl$processOutput$1.err(Aapt2DaemonImpl.kt:75) at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)

            I thought maybe the PNG file was corrupted or incorrectly labeled, but I've run it through a whole bunch of conversions and I get the same error.

            During testing, it works fine, but during the release builds is when I get this error. I've resorted to building using AS 3.2 and AGP 3.2.0 for my production builds, which works fine. Also, this is Windows only. It works fine on my Mac.

            My build.gradle is:

            ...

            ANSWER

            Answered 2018-Oct-10 at 05:09

            You need to clean up your older caches of gradle and maven dependencies. E.g, try to delete the files under .m2 and .gradle and then Invalidate Caches / Restart ...

            Also, can try to disable enableAapt2 by setting it to false inside gradle.properties

            Source https://stackoverflow.com/questions/52712063

            QUESTION

            Android build suddenly starts failing with : resource android:attr/fontVariationSettings not found
            Asked 2019-Nov-25 at 09:14

            Our android build started failing all on its own without a single line change for 2 days now.

            This is the error message:

            /Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/baa8b66e2e52a0a50719f014fc3f1c32/res/values/values.xml:40:5-54: AAPT: error: resource android:attr/fontVariationSettings not found.

            /Users/shroukkhan/.gradle/caches/transforms-1/files-1.1/ui-5.11.1.aar/baa8b66e2e52a0a50719f014fc3f1c32/res/values/values.xml:40:5-54: AAPT: error: resource android:attr/ttcIndex not found.

            As I understand this is related to android support library version mismatch, so i have forced using same library version . However, the problem has persisted. Here is the root level build.gradle:

            ...

            ANSWER

            Answered 2019-Jun-19 at 15:57

            The fontVariationSettings attribute was added in API Level 28.

            Set your compileSdkVersion to 28 or higher to be able to use libraries that reference this attribute.

            Source https://stackoverflow.com/questions/56671690

            QUESTION

            CMake add_subdirectory given source which is not an existing directory
            Asked 2019-Nov-11 at 21:43

            I'm following this tutorial in order to implement firebase in my android project using C++. I've followed all the steps as the tutorial shows, but when I run my project, I'm getting this error message:

            ...

            ANSWER

            Answered 2019-Nov-11 at 21:33

            You have to specify path to the "firebase sdk" before:

            Source https://stackoverflow.com/questions/58808530

            QUESTION

            Android: ERROR: A resolved Google Play services library dependency depends on another at an exact version
            Asked 2019-Jul-08 at 14:38

            I tried to add Stripe sdk to my Android project and I started getting this error

            FAILURE: Build failed with an exception.

            • What went wrong: Failed to capture snapshot of input files for task ':MyApp:checkDebugClasspath' property 'compileClasspath' during up-to-date check.

              In project 'MyApp' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[1. 3.1,2.3]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown. Dependency failing: com.nimbusds:nimbus-jose-jwt:7.2.1 -> net.minidev:json-smart@[1.3.1,2.3], but json-smart version was 2.3. The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'MyApp' depends onto com.stripe:stripe-android@9.3.5 For extended debugging info execute Gradle from the command line with ./gradlew --info :MyApp:assembleDebug to see the dependency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https
              ://github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to you r build.gradle file.

            I am not able to understand how to fix this especially since we aren't allowed to make changes in the support library versions unless absolutely required. I tried updating the google play libs to the latest but still got the error. These are my gradle dependencies.

            ...

            ANSWER

            Answered 2019-Jul-02 at 03:52

            It's not one of your play store dependencies. Your error message clearly is blaming the Stripe Payments library. That library has an internal reference to a specific play services version. Most likely solution is your play services are too new for it. I could check their download site for a new version at the least. It's a pretty common issue for programmers to forget that the version check they are doing should allow newer versions, and sometimes it's on purpose to force you to update just in case of incompatibilites.

            Source https://stackoverflow.com/questions/56844984

            QUESTION

            Ionic android build error after migrating to androidx
            Asked 2019-Jun-21 at 16:20

            I am working on an ionic 3 project.i had to migrate to androidx due to a sudden build issue. I created the android platform with cordova-android@8.0.0 version and i did the needful but now i'm getting some other errors while building the android platform

            I created the android platform with cordova-android version 8.0.0.

            Added below lines to gradle.properties file

            android.useAndroidX=true android.enableJetifier=true

            Updated the plugins to the latest

            this is my project.properties file

            ...

            ANSWER

            Answered 2019-Jun-21 at 16:20

            The errors are arising because your Android project contains Java source code (presumably in the form of Cordova plugins) which references the Android Support Library but you have enabled AndroidX in your project.
            AndroidX and the Android Support Library cannot live side-by-side in the same Android project - doing so will lead to build failures such as this.
            From your project.properties it can been seen that the Support Library is being pulled in as a Gradle dependency (e.g. cordova.system.library.3=com.android.support:support-v4:28.+).

            AndroidX (Jetpack) is the successor to the Android Support Library.
            Note that AndroidX is now used by the latest versions of Play Services & Firebase libraries.
            The Support library is used by many existing plugins such as cordova-plugin-firebase.

            To resolve this issue, add the following two plugins your Cordova project:

            • cordova-plugin-androidx to enable AndroidX in the Android project.
            • cordova-plugin-androidx-adapter to dynamically patch the source code of any plugins using the Support Library to use the AndroidX equivalents and to patch the Gradle config to replace Android Support Library references with AndroidX equivalents.

            For a working example of this in a test project, see my comment on this Github issue.

            Note: if you are using cordova-plugin-firebase and encountering errors, you can instead use my fork of that plugin which is published as cordova-plugin-firebasex and is fixed to resolve issues caused by the new Firebase SDK. Here's the safest way to migrate:

            Source https://stackoverflow.com/questions/56664901

            QUESTION

            Getting com.android.build.api.transform.TransformException: Error while generating the main dex list. on adding places sdk
            Asked 2019-Jun-13 at 13:10

            I started facing this error when I added the new google places sdk to my app. This is the full stack trace

            ...

            ANSWER

            Answered 2019-Jun-13 at 13:10

            You need to migrate your Places SDK to the new version, follow this migration guide: Migrating to the New Places SDK Client. In there is says that when adding:

            Source https://stackoverflow.com/questions/56559133

            QUESTION

            Execution failed for task app:transformClassesWithDesugarForDebug error on Android Studio 3.0 Beta 2
            Asked 2019-May-06 at 10:52

            I have migrated my project from Android Studio 2.3.3 to Android Studio 3.0 Beta 2 and now my project won't run.

            I get the following message in the console:

            Error:Execution failed for task ':app:transformClassesWithDesugarForDebug'.

            com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/pq/.gradle/caches/transforms-1/files-1.1/kerningview-1.0.0.aar/ac0f6c2213c36fdc32039f51a20bac89/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/38.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/support-core-utils-25.3.1.aar/56e47cfd160ed843d4216890e0682023/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/60.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-analytics-11.2.0.aar/61d81afc363bc8c865c16245e72c4d3e/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/52.jar --input /Users/pq/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.1/2a8e0aa38a2e21cb39e2f5a7d6704cbdc941da0/gson-2.8.1.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/25.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-iid-11.2.0.aar/9651e811bb6602fd5600e13c0f77df9f/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/54.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/mixpanel-android-5.0.2.aar/c5e3ba28099100a23d773854c2a084a0/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/41.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/support-media-compat-25.3.1.aar/0ce9f8c2bae8fd1a0c62c91b27e5dffc/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/66.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-common-11.2.0.aar/1331f5675014cd64782fd82fe1ba00a6/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/55.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/support-v4-25.3.1.aar/0b7bcfd4905c5ac50204aa5421a48426/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/58.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/support-core-ui-25.3.1.aar/2b962af6d4052d7dcf1fe7b4fecffac6/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/67.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-iid-11.0.4.aar/fe5d1cfe286ef2ff895cb2a8243612ed/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/49.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-auth-11.0.4.aar/1dc6d7b9b9e417c0c02beb44f1f6074d/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/48.jar --input /Users/pq/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.3.0/bcacde6a8ccedcc56c127403d26b76072fe6214d/retrofit-2.3.0.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/71.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/library-1.0.5.aar/b8951b6a291a5e6dcb10ad712260f63a/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/31.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/rxandroid-1.2.1.aar/5b18b7f07a2bab8a4a872f6e339e94a7/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/74.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/crashlytics-core-2.3.16.aar/d223925dea9b1eb279b3c2c1e6c1459c/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/6.jar --input /Users/pq/.gradle/caches/transforms-1/files-1.1/crashlytics-2.6.7.aar/547e70ef2f064a53ac01c4cfc61ec3ba/jars/classes.jar --output /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /Users/pq/Library/Android/sdk/build-tools/25.0.3/renderscript/lib/renderscript-v8.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/rag-sdk-0.0.59-SNAPSHOT.aar/96c4cb4a5e44efcc26c2770128372010/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/realm-android-library-3.5.0.aar/66a749eaa9802bd2a98835757e92bac1/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/io.realm/realm-annotations/3.5.0/1e4b144dd28b139ae890ce2868979b12e1f2d7c7/realm-annotations-3.5.0.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/crashlytics-2.6.7.aar/547e70ef2f064a53ac01c4cfc61ec3ba/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/beta-1.2.4.aar/6d4eef69ef44bed79d4fdd2247bdaae5/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/crashlytics-core-2.3.16.aar/d223925dea9b1eb279b3c2c1e6c1459c/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/answers-1.3.12.aar/89897d5535ea1b02a80e118a43258084/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/fabric-1.3.16.aar/b226cc1baee0201e5da67c74787af982/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.newrelic.agent.android/android-agent/5.9.0/723eac3b1ab0217e2cb04831ada6dcdb6182ea35/android-agent-5.9.0.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/multidex-1.0.2.aar/ab83d031af915067cc7a0c9ca075cb05/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/facebook-android-sdk-4.19.0.aar/7d4a78fd6e6d7cfc85dee6f3475508af/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/cardview-v7-25.3.1.aar/0502c0da0d735bd478f1167a4a6f704f/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/flexbox-0.3.0-alpha3.aar/39dfb9239b492f7099409b4793e918d6/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/materialdatetimepicker-3.1.3.aar/0ac5fa2cafae94963c888a03c2066d62/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/account-kit-sdk-4.13.2.aar/968ce87dabb0a8f5e2e9d45f071da1fd/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/design-25.3.1.aar/7d60cd51bf1b35f70790140c93c133d1/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/recyclerview-v7-25.3.1.aar/66d87d379811b0222f7d29e88d7ee4b4/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/palette-v7-25.3.1.aar/886a5a593100fca9ff7d285cebea9c43/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-location-11.0.4.aar/d6ab8ba223c68ddb65470db31d7257e4/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-android-sdk-pinpoint/2.3.9/2411e971f75652b978b550b7a8021af84e36d954/aws-android-sdk-pinpoint-2.3.9.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-android-sdk-sns/2.3.9/4a9c68c102c695a24eb9bba09f8a472e576614e5/aws-android-sdk-sns-2.3.9.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-android-sdk-sqs/2.3.9/a1278f3266ff8c936dd0de6485de8029a900091f/aws-android-sdk-sqs-2.3.9.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-android-sdk-core/2.3.9/2fa9ee0e95329912656c8ccd98991b195a3ea539/aws-android-sdk-core-2.3.9.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-gson/2.3.0/9e09011e9767bb76b5e27c9b8223476b93b14631/converter-gson-2.3.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.1/2a8e0aa38a2e21cb39e2f5a7d6704cbdc941da0/gson-2.8.1.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/glide-transformations-2.0.1.aar/b078f70cacc24be94b8b93325260dc09/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/glide/3.7.0/9e9eeaf9948ee4d6c3ab354e8dc14368f16994a4/glide-3.7.0.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/circleimageview-1.3.0.aar/de80af8de5f58d8c8d206f6a155983f9/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/exoplayer-r2.3.1.aar/d2ae88c982af4647796c9970fc6e1a7f/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/calligraphy-2.1.0.aar/d339434857786078a339f7bb8c6b1b89/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/library-1.0.5.aar/b8951b6a291a5e6dcb10ad712260f63a/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.nineoldandroids/library/2.4.0/e9b63380f3a242dbdbf103a2355ad7e43bad17cb/library-2.4.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.4/5fe28b9518e58819180a43a850fbc0dd24b7c050/commons-lang3-3.4.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-core-11.2.0.aar/6e48ed999582b07f13647c34ee52888a/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/android-adapters-2.1.0.aar/08d283ad9c4b052ffca9c687dc1e3b2b/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/org.parceler/parceler-api/1.1.6/2a06b6b1ecf5dadee8a874dfb51ad018fde3e6c5/parceler-api-1.1.6.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/butterknife-8.4.0.aar/05f8241e57862f51f79e0523d0e3d1bc/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/kerningview-1.0.0.aar/ac0f6c2213c36fdc32039f51a20bac89/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.flurry.android/analytics/6.4.2/4e6af3e20aff7888244687a9767b872e3881e822/analytics-6.4.2.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-gcm-11.0.4.aar/fad45efecbb74c6eff162197b1eb1fa4/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/mixpanel-android-5.0.2.aar/c5e3ba28099100a23d773854c2a084a0/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/ThinDownloadManager-1.3.0.aar/03e18d87a8d20f9b1944e3d16d68410e/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.airbnb/deeplinkdispatch/3.1.0/de0fff5510aa9b3e76e17c498f342b07577cb3fa/deeplinkdispatch-3.1.0.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/relinker-1.2.2.aar/80ef4959756399d4d7a9a9b9607b5521/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-v13-25.2.0.aar/458c952d56ef1958492460222a5c9ad4/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/appcompat-v7-25.3.1.aar/2b65524bb1dfaff43f55e61a19dff5cb/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/transition-25.3.1.aar/8839b5b51b1844f4f1e76b9bc7d7a829/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-auth-11.0.4.aar/1dc6d7b9b9e417c0c02beb44f1f6074d/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-iid-11.0.4.aar/fe5d1cfe286ef2ff895cb2a8243612ed/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-auth-base-11.0.4.aar/3aadee1c07f32f8fc543bb6a63735ca5/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-base-11.0.4.aar/7731a52a7fbaa035349a55580682b05a/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-analytics-11.2.0.aar/61d81afc363bc8c865c16245e72c4d3e/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-analytics-impl-11.2.0.aar/ad4e6f99304117dc73c1d3b3b05760c9/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-iid-11.2.0.aar/9651e811bb6602fd5600e13c0f77df9f/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/firebase-common-11.2.0.aar/1331f5675014cd64782fd82fe1ba00a6/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-tasks-11.2.0.aar/3e38d10ec79889323875e738fb65f287/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/play-services-basement-11.2.0.aar/e42f11c2ca206625f2890cd632bd6348/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-v4-25.3.1.aar/0b7bcfd4905c5ac50204aa5421a48426/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-fragment-25.3.1.aar/cd529e7062b915abaaddf7f4d73cfac9/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-core-utils-25.3.1.aar/56e47cfd160ed843d4216890e0682023/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.jakewharton/butterknife-annotations/8.4.0/ea392375cf9ff59234a82e7928a204215ccc98cd/butterknife-annotations-8.4.0.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/material-spinner-1.1.0.aar/a1910f9ec27381bd317b2a22c9a2854e/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/customtabs-25.0.0.aar/bacef9854d041e1a23293966aab92c92/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/animated-vector-drawable-25.3.1.aar/89ce02079a4f07a6e037eb99535be98c/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-vector-drawable-25.3.1.aar/8ff74f175af9b6abba76eb3fa140cc20/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-media-compat-25.3.1.aar/0ce9f8c2bae8fd1a0c62c91b27e5dffc/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-core-ui-25.3.1.aar/2b962af6d4052d7dcf1fe7b4fecffac6/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/support-compat-25.3.1.aar/3f45f1063eae680ce7cef7112056c988/jars/classes.jar --classpath_entry /Users/pq/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/25.3.1/support-annotations-25.3.1.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/adapter-rxjava/2.3.0/43e4ac24adc40a24c51b2d2a71a2483ef1b0ce9a/adapter-rxjava-2.3.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.3.0/bcacde6a8ccedcc56c127403d26b76072fe6214d/retrofit-2.3.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.8.1/4d060ca3190df0eda4dc13415532a12e15ca5f11/okhttp-3.8.1.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/org.greenrobot/eventbus/3.0.0/ddd99896e9569eaababbe81b35d80e1b91c4ad85/eventbus-3.0.0.jar --classpath_entry /Users/pq/.gradle/caches/transforms-1/files-1.1/rxandroid-1.2.1.aar/5b18b7f07a2bab8a4a872f6e339e94a7/jars/classes.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.3.0/af000bec2036a2a9d07197c4b03b8966bfc60b03/rxjava-1.3.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/3.0.1/f7be08ec23c21485b9b5a1cf1654c2ec8c58168d/jsr305-3.0.1.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.parse.bolts/bolts-android/1.4.0/cc174c559b5177982887bf6e1b76003aebad9516/bolts-android-1.4.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.parse.bolts/bolts-applinks/1.4.0/8ad21bf21784dacce5f2043afb97218cc377e835/bolts-applinks-1.4.0.jar --classpath_entry /Users/pq/.gradle/caches/modules-2/files-2.1/com.parse.bolts/bolts-tasks/1.4.0/d85884acf6810a3bbbecb587f239005cbc846dc4/bolts-tasks-1.4.0.jar --classpath_entry /Users/pq/Radio Africa/NakedGroove/app/build/intermediates/classes/debug --bootclasspath_entry /Users/pq/Library/Android/sdk/platforms/android-25/android.jar --bootclasspath_entry /Users/pq/Library/Android/sdk/platforms/android-25/optional/org.apache.http.legacy.jar --bootclasspath_entry /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/jre/lib/charsets.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}

            Is there anything I'm missing to make it run?

            My gradle file is as follows:

            ...

            ANSWER

            Answered 2017-Aug-23 at 09:08

            Error:Execution failed for task ':app:transformClassesWithDesugarForDebug'.

            com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments

            Open your build.gradle and use below

            Source https://stackoverflow.com/questions/45833937

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mixpanel-android

            Check out our official documentation for more in depth information on installing and using Mixpanel on Android.
            You will need your project token for initializing your library. You can get your project token from project settings. Step 1 - Add the mixpanel-android library as a gradle dependency: We publish builds of our library to the Maven central repository as an .aar file. This file contains all of the classes, resources, and configurations that you'll need to use the library. To install the library inside Android Studio, you can simply declare it as dependency in your build.gradle file. Add the following lines to the dependencies section in app/build.gradle. On Jan 1, 2022, we’ll remove the Messages & Experiments feature from Mixpanel. For now, you can choose to opt in to our beta version without the Messages & Experiments feature support. Once you've updated your build.gradle file, you can force Android Studio to sync with your new configuration by clicking the Sync Project with Gradle Files icon at the top of the window. This should download the .aar dependency at which point you'll have access to the Mixpanel library API calls. If it cannot find the dependency, you should make sure you've specified mavenCentral() as a repository in your build.gradle.

            Support

            The Mixpanel library for Android is an open source project, and we'd love to see your contributions! We'd also love for you to come and work with us! Check out our opening positions for details.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
            Maven
            Gradle
            CLONE
          • HTTPS

            https://github.com/mixpanel/mixpanel-android.git

          • CLI

            gh repo clone mixpanel/mixpanel-android

          • sshUrl

            git@github.com:mixpanel/mixpanel-android.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link