Status Update
Comments
je...@google.com <je...@google.com> #2
Does Studio display an error or give you a stacktrace? (check in the lower right corner for error icons)
[Deleted User] <[Deleted User]> #3
Yes. I did not notice that. every time i press CTRL-SPACE for autocomplete it gives me AssertionError (see image)
je...@google.com <je...@google.com> #4
It looks like something in the editor indexing code is tripping up on the presence of an HTML file (incognito_mode_start_page.html). Is this a file you have somewhere in your project? If so, where is it in the project? If not, is it in one of the libraries (if you're using open source libraries, would you mind telling me which projects you're using so I can try to reproduce it.)
[Deleted User] <[Deleted User]> #5
By the way, as a workaround, try File > Invalidate Caches / Restart
je...@google.com <je...@google.com> #6
No I do not have this file in my project. When I search for this file I can see that this file is part of Android API 19 (see image). If it helps here is a list of libraries in my project (I use only open source libraries, no extra libraries):
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '1.2.1'
compile group: 'com.squareup.retrofit', name: 'retrofit', version: '1.2.2'
compile group: 'com.squareup.picasso', name: 'picasso', version: '2.1.+'
compile group: 'org.twitter4j', name: 'twitter4j-core', version: '3.0.3'
compile 'com.android.support:support-v4:18.0.+'
compile 'com.android.support:appcompat-v7:18.0.+'
compile 'com.android.support:support-v13:13.0.+'
compile 'de.greenrobot:eventbus:2.0.2'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.8.+'
compile project(':libraries:facebook')
compile project(':libraries:android_maps_extensions')
compile project(':libraries:viewpagerindicator')
compile files('libs/ActiveAndroid.jar')
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '1.2.1'
compile group: 'com.squareup.retrofit', name: 'retrofit', version: '1.2.2'
compile group: 'com.squareup.picasso', name: 'picasso', version: '2.1.+'
compile group: 'org.twitter4j', name: 'twitter4j-core', version: '3.0.3'
compile 'com.android.support:support-v4:18.0.+'
compile 'com.android.support:appcompat-v7:18.0.+'
compile 'com.android.support:support-v13:13.0.+'
compile 'de.greenrobot:eventbus:2.0.2'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.8.+'
compile project(':libraries:facebook')
compile project(':libraries:android_maps_extensions')
compile project(':libraries:viewpagerindicator')
compile files('libs/ActiveAndroid.jar')
Description
Android Plugin Version: 2.1.0
Android Studio Build number: AI-143.2821654
Builds in Android Studio often take longer with instant run enabled than without.
Prior to Instant Run, my clean builds would take ~1min30sec, and then ~25sec or `40sec after that depending on the change.
After upgrading to 2.1.1 for instant run, incremental, and dexInProcess, my team and I are finding that my builds are sometimes small short quick 6-10 second builds as Instant Run promises, but are mostly 40+ seconds, and sometimes can even be 8-13 minutes long (!!!). My team and I feel that instant run has dramatically decreased our overall productivity, because are builds seem to be consistently taking longer than normal, with the occasional faster build.
Here are our build settings:
multiDexEnabled true
dexOptions {
preDexLibraries true
javaMaxHeapSize "4g"
maxProcessCount 4
incremental true
dexInProcess true
}
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx6g -XX:MaxPermSize=512m