Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Node
  3. Issue To Add DLMS Library In My Android Project

Issue to add DLMS library in my android project

By altumerc , 24 April, 2024
Forums
Gurux.DLMS

I am adding 'com.github.gurux:gurux.dlms.android:-SNAPSHOT'

plugins {
alias(libs.plugins.androidApplication)
}

android {
namespace 'com.example.meterconnect'
compileSdk 34

defaultConfig {
applicationId "com.example.meterconnect"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {

implementation libs.appcompat
implementation libs.material
implementation 'com.github.gurux:gurux.dlms.android:-SNAPSHOT'
testImplementation libs.junit
androidTestImplementation libs.ext.junit
androidTestImplementation libs.espresso.core
}
to my build.gradle file but it shows an error
Failed to resolve: com.github.gurux:gurux.dlms.android:-SNAPSHOT

i want to use the gurux dlms library to make an application to connect to my smart meter

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, Use this: implementation…

Hi,

Use this:

implementation 'org.gurux:gurux.dlms.android:2.0.4'

BR,
Mikko

altumerc

2 years 4 months ago

Hi Miko thanks it works but…

Hi Miko thanks it works but now I am not finding any method which will help me to connect to my smart meter in the documentation can you help me with the issue
Thanks

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi, There is a lot that you…

Hi,

There is a lot that you need to do before you can establish the connection for DLMS meter. Check the Java example. It will do what you want to do.

https://github.com/Gurux/Gurux.DLMS.Android

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 08/26/2026 - 09:04
    Gurux.DLMS.Python 1.0.203
  • Mon, 08/17/2026 - 11:28
    Gurux.DLMS.Python 1.0.202
  • Mon, 08/17/2026 - 09:47
    gurux.dlms.cpp 9.0.2608.1701
  • Mon, 08/17/2026 - 09:25
    gurux.dlms.c 9.0.2608.1701
  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701

New forum topics

  • Security vulnerability report — request for a private contact (GuruxDLMS.c / ANSI C)
  • Topic: Insufficient Memory Error When Reading Class 7 Profile Generic Objects
  • SN ReadResponse returns all-null values when response spans multiple HDLC frames
  • Gurux.Serial.Android 3.0.6 – CH340 (HL-340) USB-Serial Adapter Not Working,
  • Trying to talk to a L&G E360 meter (Using Python Gurux)
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin