It is recommended to turn off Instant Run in Android Studio. Instant Run uses portions of the SDK that might not be necessary for your integration and give you false error and warning messages.
Example stack trace when using Instant Run:
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.innoquant.moca.location.indoortracker.NaoClient>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/polestar/naosdk/api/external/NAOSyncListener;
I/art: at com.innoquant.moca.proximity.ProximityManager com.innoquant.moca.proximity.ProximityManager.getInstance(com.innoquant.moca.MOCA$LibContext) (ProximityManager.java:67)
I/art: at void com.innoquant.moca.MOCA$LibContext.initialize() (MOCA.java:853)
I/art: at void com.innoquant.moca.MOCA$LibContext.access$000(com.innoquant.moca.MOCA$LibContext) (MOCA.java:647)
I/art: at void com.innoquant.moca.MOCA.initializeSDK(android.app.Application, com.innoquant.moca.MOCAConfig) (MOCA.java:131)
I/art: at void com.innoquant.moca.phonegap.MOCAPlugin.initialize(org.apache.cordova.CordovaInterface, org.apache.cordova.CordovaWebView) (MOCAPlugin.java:103)
I/art: at void org.apache.cordova.CordovaPlugin.privateInitialize(java.lang.String, org.apache.cordova.CordovaInterface, org.apache.cordova.CordovaWebView, org.apache.cordova.CordovaPreferences) (CordovaPlugin.java:57)
Comments
0 comments
Article is closed for comments.