Skip to Content
0

SMP Android Offline store in Release Mode

Feb 14, 2017 at 12:48 PM

29

avatar image

Hello Team,

I am facing problem in android when i generating apk for release mode ie progaurd enable.

Steps

1. Open Android Studio.

2. in build.gradle file add below statement

buildTypes {<br>    release {<br>        minifyEnabled true<br>        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'<br>  }<br>}

3. Click Build in tabs and select "Generate Signed Apk"
4. After successful generation , install the apk on device.
5. Login to app. Please find below log we are getting when offline store is getting open.

02-14 17:09:26.631 20941-21219/? A/art: sart/runtime/thread.cc:1105] No pending exception expected: java.lang.NoSuchMethodError: no non-static method "Lcom/sap/smp/client/odata/offline/lodata/Store;. (J)V" 02-14 17:09:26.631 20941-21219/? A/art: sart/runtime/ thread.cc:1105] at com.sap.smp.client.odata.offline.lodata.Store com.sap.smp.client.odata.offline.lodata.Manager.createStore() ((null):-2) 02-14 17:09:26.631 20941-21219/? A/art: sart/runtime/ thread.cc:1105] at void com.sap.smp.client.odata.offline.ODataOfflineStore.setupStoreWithOptions(com.sap.smp.client.odata.offline.ODataOfflineStoreOptions, com.sap.smp.client.odata.offline.lodata.StoreInfo) ((null):-1) 02-14 17:09:26.631 20941-21219/? A/art: sart/runtime/ thread.cc:1105] at void com.sap.smp.client.odata.offline.ODataOfflineStore.openStoreSync(com.sap.smp.client.odata.offline.ODataOfflineStoreOptions) ((null):-1) 02-14 17:09:26.631 20941-21219/? A/art: sart/runtime/ thread.cc:1105] at void com.sap.smp.client.odata.offline.ODataOfflineStore$OpenStoreWithOptionsThread.run() ((null):-1) 02-14 17:09:26.631 20941-21219/? A/art: sart/runtime/ thread.cc:1105] 02-14 17:09:26.746 20941-21219/? A/art: sart/runtime/ monitor.cc:993] Check failed: m != NULL 02-14 17:09:26.746 20941-21219/? A/art: sart/runtime/ runtime.cc:287] Runtime aborting --- recursively, so no thread-specific detail! 02-14 17:09:26.746 20941-21219/? A/art: sart/runtime/ runtime.cc:287] 02-14 17:09:26.746 20941-21219/? A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 21219 (Thread-14808)

Please let me know you feedback for the same.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers