Difference between revisions of "MQTT: Android Simple Connect"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
==setting.gradle==
 +
 +
pluginManagement {
 +
    repositories {
 +
        gradlePluginPortal()
 +
        google()
 +
        mavenCentral()
 +
        maven {
 +
              url "https://repo.eclipse.org/content/repositories/paho-releases/"
 +
        }
 +
    }
 +
}
 +
dependencyResolutionManagement {
 +
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
 +
    repositories {
 +
        google()
 +
        mavenCentral()
 +
        maven {
 +
                url "https://repo.eclipse.org/content/repositories/paho-releases/"
 +
        }
 +
    }
 +
}
 +
 +
  
 
==build.gradle app==
 
==build.gradle app==
Line 4: Line 28:
  
 
  dependencies {
 
  dependencies {
    compile('org.eclipse.paho:org.eclipse.paho.android.service:1.0.2') {
+
    implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.0.2' exclude module: 'support-v4'
        exclude module: 'support-v4'
 
    }
 
 
  }
 
  }
 +
  
  

Revision as of 05:13, 26 March 2022

setting.gradle

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
        maven {
              url "https://repo.eclipse.org/content/repositories/paho-releases/"
        }
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
                url "https://repo.eclipse.org/content/repositories/paho-releases/"
        }
    }
}


build.gradle app

dependencies {
   implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.0.2' exclude module: 'support-v4'
}



Referensi