0 Replies Latest reply on Mar 6, 2019 2:32 AM by PK Phoo Phoo

    Error in EMDK android

    PK Phoo Phoo

        Caused by: java.lang.RuntimeException: stub

              at com.symbol.emdk.EMDKManager.getEMDKManager(Unknown Source)

      how can I solved this

      my manifest file is

      <?xml version="1.0" encoding="utf-8"?>
      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
         package="com.example.tesingphootc55">
        <uses-permission android:name="com.symbol.emdk.permission.EMDK" />
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

        <application

         android:allowBackup="true"
         android:icon="@drawable/icon"
         android:label="@string/app_name"
         android:roundIcon="@mipmap/ic_launcher_round"
         android:supportsRtl="true"
         android:name="android.support.multidex.MultiDexApplication"
         android:theme="@style/AppTheme">
        <uses-library android:name="com.symbol.emdk" android:required="false" />
        <activity android:name="com.example.tesingphootc55.login" >
        <intent-filter>
        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        </activity>
        <activity
         android:name="com.example.tesingphootc55.MainActivity"
         android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize">
        <intent-filter>
        <action android:name="android.intent.action.MainActivity" />

        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        </activity>
        <activity android:name="com.example.tesingphootc55.MainMenu">

        <intent-filter>
        <action android:name="android.intent.action.MainMenu" />

        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

        </activity>
        <activity android:name="com.example.tesingphootc55.appendix9" />
        <activity android:name="com.example.tesingphootc55.Appendix9_1" />
        <activity android:name="com.example.tesingphootc55.Appendix10_RC_1" />
        <activity android:name="com.example.tesingphootc55.Appendix10_RC_2">

        </activity>
        <activity android:name="com.example.tesingphootc55.Appendix10_ST_1" />
        <activity android:name="com.example.tesingphootc55.Appendix10_ST_2"></activity>
        </application>

      </manifest>

       

      and my app.gradle file is

      dependencies {

        androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.2', {

        exclude group: 'com.android.support', module: 'support-annotations'
         })

       

        implementation 'com.android.support:appcompat-v7:28.0.0'

         implementation fileTree(dir: 'libs', include: ['*.jar'], exclude: ['com.symbol.emdk.jar'])

         //implementation 'com.symbol:emdk:+'
         testImplementation fileTree(include: ['com.symbol.emdk.jar'], dir: 'C:\\Users\\Sabai Phoo\\AppData\\Local\\Android\\sdk\\add-ons\\addon-symbol_emdk-symbol-19\\libs')

        implementation fileTree(exclude: ['com.symbol.emdk.jar'], dir: 'libs')

        api files('./libs/com.symbol.emdk.jar')

        implementation 'com.android.support:design:28.0.0'
         implementation 'com.android.support.constraint:constraint-layout:1.1.3'
         implementation fileTree(dir: 'libs',include: ['*.jar'])

        implementation files('libs/jtds-1.2.7.jar')

        testImplementation  'junit:junit:4.12'
         //st
         implementation 'com.android.support:multidex:1.0.3'
         implementation files ('libs/org.apache.http.legacy.jar')

        implementation 'net.zetetic:android-database-sqlcipher:3.5.1@aar'
         androidTestImplementation 'com.android.support.test:runner:1.0.2'
         androidTestImplementation 'com.android.support.test:rules:1.0.2'

      }