Android Studio 2.x - Building Symbols... Forever -


i have problem android studio. after updating 2.2 takes long (~30 min) time process indicating "building symbols..." project reasonably large , includes ndk components.

building using gradle quite fast:

build successful time: 12.089 secs 

my gradle_wrapper settings:

distributionbase=gradle_user_home distributionpath=wrapper/dists zipstorebase=gradle_user_home zipstorepath=wrapper/dists distributionurl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip android.usedeprecatedndk=true org.gradle.daemon=true org.gradle.parallel=true #android.dexoptions.predexlibraries=true #android.enablebuildcache=true org.gradle.jvmargs=-xmx4096m -xx:maxpermsize=1024m- heapdumponoutofmemoryerror -dfile.encoding=utf-8 

whats wrong android studio? how can speed it?

try changing vm options?

it possible vm running out memory or you're under memory pressure. can try increasing amount of memory available android studio under help can choose edit custom vm options.

-xms256m -xmx8192m -xx:reservedcodecachesize=2048m -xx:+usecompressedoops -xx:maxpermsize=4096m 

delete .idea directories , re-import project

close android studio , in project directory , delete .idea folders. on macos or linux might accomplished find command.

find . -name .idea -type d -exec rm -rf {} + 

then launch android studio , re-import project.

switch cmake

android studio's ndk support based upon clion uses cmake project file format. found switching large project pure cmake put permanent end building symbols problem. makes sense, since more thoroughly tested jetbrains , easier support android.mk projects.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -