Instead of disabling instant start, we can solve this problem using a synthetic modifier check. 'com.android.tools.fd.runtime.IncrementalChange' is synthetic, so we can check if the field is synthetic using the isSynthetc method.
Field[] fields = objClass.getFields(); for (Field field : fields) { String name = field.getName(); Object value; if(field.isSynthetic()){ continue; }
source share