Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Steps To Clone The Android Dlms Project and Build Apk

Steps to clone the android dlms project and build apk

By Windmill, 21 January, 2026
Forums
Gurux DLMS for Android

Hi sir,

I'm not able to generate apk file by clone the project. Please guide me to generate app by Android studio

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

Profile picture for user Kurumi

Kurumi

2 months 2 weeks ago

Hi, This is a normal Android…

Hi,

This is a normal Android project. Just make sure you are using the latest version of Android Studio.

BR,
Mikko

Windmill

2 months 2 weeks ago

Hi sir, I'm using latest…

Hi sir,
I'm using latest version
Android Studio Otter 2 Feature Drop | 2025.2.2 Patch 1
Build #AI-252.27397.103.2522.14617522, built on December 19, 2025
Runtime version: 21.0.8+-14196175-b1038.72 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 4
Registry:
ide.windowSystem.autoShowProcessPopup=true
ide.experimental.ui=true

Getting gradle sync issues

null cannot be cast to non-null type kotlin.String
null cannot be cast to non-null type kotlin.String

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

project image: https://ibb.co/Xftkq9VB

Windmill

2 months 2 weeks ago

Hi sir, I'm using latest…

The Folder i opened in android studio

C:\Users\Dell\AndroidStudioProjects\Gurux.DLMS.Android-master\Gurux.DLMS.Android-master\Java

Profile picture for user Kurumi

Kurumi

2 months 2 weeks ago

Hi, This is tested with…

Hi,

This is tested with Android Studio Otter 3 Feature Drop | 2025.2.3
The new PC was created, and the latest version from GitHub was used.
Everything works without problems.

Do you have any information on where this error occurs?
null cannot be cast to non-null type kotlin.String

BR,
Mikko

Windmill

2 months 2 weeks ago

No sir, I Tried fresh today…

No sir,

I Tried fresh today

Steps i followed to create android project

Step 1: Download the project from github in .zip
https://github.com/Gurux/Gurux.DLMS.Android

Step 2: Extracted zip file in C:\Users\Dell\AndroidStudioProjects\Gurux

Step 3: Onpen android studio > Closed the existing Project > Open the folder
C:\Users\Dell\AndroidStudioProjects\Gurux\Gurux.DLMS.Android-master\Java
in Android Studio

Step 4: While gradle build time it shows gradle sync issue

build log: null cannot be cast to non-null type kotlin.String
null cannot be cast to non-null type kotlin.String

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

Profile picture for user Kurumi

Kurumi

3 days 2 hours ago

Hi, I believe that you are…

Hi,

I believe that you are not using the latest Android Studio and that is causing this problem. Update Android Studio to the latest version.

BR,
Mikko

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 04/07/2026 - 17:17
    Gurux.DLMS.Python 1.0.197
  • Tue, 04/07/2026 - 15:03
    gurux.dlms.c 9.0.2604.0701
  • Tue, 04/07/2026 - 14:50
    gurux.dlms.java 4.0.91
  • Tue, 04/07/2026 - 14:00
    Gurux.DLMS.Net 9.0.2604.0701
  • Mon, 03/30/2026 - 15:39
    gurux.dlms.c 9.0.2603.3001

New forum topics

  • Issue when reading Itron Type620 meter
  • Handling Unexpected Disconnects
  • DLMS Communication Issue – No Response (L&T Meter via USB Probe)
  • Unable to cast object of type Gurux.DLMS.GXStructure to type Gurux.DLMS.GXArray
  • How to properly invoke KeyAgreement
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin