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. 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 3 months ago

Hi, Use this: implementation…

Hi,

Use this:

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

BR,
Mikko

altumerc

2 years 3 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 3 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin