MQTT: Android Simple Connect

From OnnoWiki
Revision as of 05:13, 26 March 2022 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

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