Invalid incremental change record with Android Studio's Instant Run -


when building app error:

error:execution failed task ':app:transformclasses_enhancedwithinstant+reloaddexfordebug'. java.io.ioexception: invalid incremental change record : changed,c:\users\gingo\documents\dropbox (skoumal, s.r.o.)\work\myproject\myproject\app\build\intermediates\transforms\instantrun\debug\folders\4000\5\enhanced\com\android\tools\fd\runtime\apppatchesloaderimpl.class 

the way rid of build -> rebuild project.

the culprit , (comma) in project path. remove , go.

let me explain little bit deeply. reason found in changerecords.java file. in method load(file file) parses change records file , uses , (comma) divider line-fields. see whole code of method:

/**  * load change records persisted file.  */ @nonnull static changerecords load(file file) throws ioexception {     changerecords changerecords = new changerecords();     list<string> rawrecords = files.readlines(file, charsets.utf_8);     (string rawrecord : rawrecords) {         stringtokenizer st = new stringtokenizer(rawrecord, ",");         if (st.counttokens() != 2) {             throw new ioexception("invalid incremental change record : " + rawrecord);         }         changerecords.add(status.valueof(st.nexttoken()), st.nexttoken());     }     return changerecords; } 

Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -