Uploaded image for project: 'Android Client'
  1. Android Client
  2. AC-602

Add Kotlin dependency to app level gradle file

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7.2
    • Labels:
      None
    • Complexity:
      Medium

      Description

      Kotlin wasn't implemented in the app level gradle file. 

      Therefore, on adding a Kotlin file and building the project, the build used to succeed but while executing the Kotlin code, crashes occured during runtine.

      The error is

      FATAL EXCEPTION: main
      Process: org.openmrs.mobile, PID: 21359
      java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;
      at org.openmrs.mobile.models.KotlinTest.<init>(Unknown Source:6)
      Caused by: java.lang.ClassNotFoundException: Didn't find class "kotlin.jvm.internal.Intrinsics" on path: DexPathList[[zip file "/data/app/org.openmrs.mobile-ZCRcUz9yYOc9-F18_qs99w==/base.apk"],nativeLibraryDirectories=[/data/app/org.openmrs.mobile-ZCRcUz9yYOc9-F18_qs99w==/lib/arm, /data/app/org.openmrs.mobile-ZCRcUz9yYOc9-F18_qs99w==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                deepak140596 Deepak Prasad
                Reporter:
                deepak140596 Deepak Prasad
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour
                    1h