Exception on Android when not using gradle

Gold Contributor
Gold Contributor



our developers are trying to add the Tealium SDK 5.0.4 for Android on a project that is not using gradle.


They extracted the .aar contents and tried to add the library manually.


An exception is raised on the following line:


Tealium.Config config = Tealium.Config.create(this, TEALIUM_ACCOUNT, TEALIUM_PROFILE, TEALIUM_ENVIRONMENT);


The exception is:


Method threw 'java.lang.NoClassDefFoundError' exception. Cannot evaluate com.tealium.library.Tealium$Config$2.toString()


Is there a recommended way to add the Tealium SDK in a project that is not using gradle?


Best regards,



Exception on Android when not using gradle

Employee Emeritus

Hi @giacomo_ritucci,



We conform to the official library creation paradigm as described by https://developer.android.com/studio/projects/android-library.html


We unfortunately do not have the capacity to support unconventional use of our library and we wouldn't recommend extracting the .aar contents.


If you decide to implement the library as recommended in our documentation and are still having issues, please reach out to your account manager to have an enginneer assigned to assist you with your implementation. Thanks!