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.
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
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.
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
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
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
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
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.
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