AnsweredAssumed Answered

Unable to create xmpptcpconnection using Samck4.1.3 Android studio

Question asked by vk on Jul 15, 2015
Latest reply on Jun 21, 2016 by Amitoj

Hi,

 

I have developed xmpp chat application using aSmack library. As per the ignite realtime documentation aSmack is not longer use in future.

 

Now i am trying to implement Smack 4.1.2 and 4.1.3 library in Android studio. I am getting an error while adding smack library in Android studio in smack-android\build.gradle.

 

e.i

 

Error:(12, 0) Could not find property 'androidProjects' on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Dec orated@33a91d7a.

 

Error:(12) A problem occurred evaluating project ':smack-android'.

> Could not find property 'androidProjects' on org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Dec orated@dbf41c.

 

dependencies {

   // androidProjects lists all projects that are checked to compile against android.jar
  // Filter out the optional Smack dependencies from androidProjects
   androidProjects.findAll {

  ![':smack-tcp', ':smack-extensions', ':smack-experimental', ':smack-bosh'].contains(it.getPath())

  }.each { project ->

  compile project

  }

}

 

compileJava {

  options.bootClasspath = androidBootClasspath

}

 

 

Please help me guys for this.

Outcomes