Cordova build failing

tjasd
Visitor
tjasd

Hi,

I'm using the Cordova v7 and the latest version of tealium-cordova-plugin. I get the following error when I try to make an android build:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find :tealium-5.2.0:.
  Searched in the following locations:
      file:/Users/tj/Library/Android/sdk/extras/m2repository//tealium-5.2.0//tealium-5.2.0-.pom
      file:/Users/tj/Library/Android/sdk/extras/m2repository//tealium-5.2.0//tealium-5.2.0-.aar
      file:/Users/tj/Library/Android/sdk/extras/google/m2repository//tealium-5.2.0//tealium-5.2.0-.pom
      file:/Users/tj/Library/Android/sdk/extras/google/m2repository//tealium-5.2.0//tealium-5.2.0-.aar
      file:/Users/tj/Library/Android/sdk/extras/android/m2repository//tealium-5.2.0//tealium-5.2.0-.pom
      file:/Users/tj/Library/Android/sdk/extras/android/m2repository//tealium-5.2.0//tealium-5.2.0-.aar
      https://jcenter.bintray.com//tealium-5.2.0//tealium-5.2.0-.pom
      https://jcenter.bintray.com//tealium-5.2.0//tealium-5.2.0-.aar
      https://maven.google.com//tealium-5.2.0//tealium-5.2.0-.pom
      https://maven.google.com//tealium-5.2.0//tealium-5.2.0-.aar
      https://repo1.maven.org/maven2//tealium-5.2.0//tealium-5.2.0-.pom
      https://repo1.maven.org/maven2//tealium-5.2.0//tealium-5.2.0-.aar
      file:/Users/tj/Documents/Github/cordova-plugin/tj/platforms/android/app/src/android/tealium-5.2.0-.aar
      file:/Users/tj/Documents/Github/cordova-plugin/tj/platforms/android/app/src/android/tealium-5.2.0.aar
  Required by:
      project :app
> Could not find :tealium.lifecycle-5.0.4:.
  Searched in the following locations:
      file:/Users/tj/Library/Android/sdk/extras/m2repository//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.pom
      file:/Users/tj/Library/Android/sdk/extras/m2repository//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.aar
      file:/Users/tj/Library/Android/sdk/extras/google/m2repository//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.pom
      file:/Users/tj/Library/Android/sdk/extras/google/m2repository//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.aar
      file:/Users/tj/Library/Android/sdk/extras/android/m2repository//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.pom
      file:/Users/tj/Library/Android/sdk/extras/android/m2repository//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.aar
      https://jcenter.bintray.com//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.pom
      https://jcenter.bintray.com//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.aar
      https://maven.google.com//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.pom
      https://maven.google.com//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.aar
      https://repo1.maven.org/maven2//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.pom
      https://repo1.maven.org/maven2//tealium.lifecycle-5.0.4//tealium.lifecycle-5.0.4-.aar
      file:/Users/tj/Documents/Github/cordova-plugin/tj/platforms/android/app/src/android/tealium.lifecycle-5.0.4-.aar
      file:/Users/tj/Documents/Github/cordova-plugin/tj/platforms/android/app/src/android/tealium.lifecycle-5.0.4.aar
  Required by:
      project :app

I tried building the Cordova sample app as well as a newly created app, but received the same error. Please help. 

3 REPLIES 3
Highlighted

Cordova build failing

Tealium Employee
@tjasd this looks like you don't have the plugin installed correctly. I would recommend re-downloading from Git or using the npm module. This indicates to me that the .aar files are not in the plugin directory. Maybe they've been deleted or removed by an overzealous .gitignore on your internal Git repo? Just an idea. I'm in the process of switching the plugin to use a Maven/CocoaPods repo, so the .aar and .framework files won't need to be manually included in the distribution, which will fix a lot of issues people have with remote build systems.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Cordova build failing

tjasd
Visitor
tjasd

@craig_rouse Downgrading from cordova android 7.x to android 6.x solved it

Cordova build failing

Tealium Employee
Interesting @tjasd. I have successfully built with Cordova Android 7.x. Glad you were able to resolve the problem anyway.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.