Android Studio – Auto complete and other features not working

#1 From Build menu (of your Android Studio), click Rebuild Project option. #2 Then once rebuild completes, go to File > Invalidate Caches / Restart… and Click on Invalidate an Restart button. This really works for me. Source: https://code.google.com/p/android/issues/detail?id=61844#c4 #1 Rebuild is required, because Android-Studio does simply rely solely on Gradle’s build-result (without static-analysis support, … Read more

Android Studio is slow (how to speed up)?

to sum it up 1) in AndroidStudio’s settings > compile enable checkbox named Compile independent modules in parallel. 2) Under Help> Edit Custom VM Options I have: -Xms1024m -Xmx4096m # <—— increase this to most of your RAM -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=440m -XX:+UseCompressedOops -XX:-HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 P.S. – Some people say Note, instead of VM options, it’s better … Read more

Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath’: Could not resolve project :animators

With Android Studio 2.3(AS) the project works fine and i can able to run the App. After updating the AS to Android Studio 3.0. i too got the error as below for libraries and build types. Unable to resolve dependency for ‘:app@dexOptions/compileClasspath’: Could not resolve project : library_Name. Unable to resolve dependency for ‘:app@release/compileClasspath’: Could … Read more

How to create a library project in Android Studio and an application project that uses the library project

I wonder why there is no example of stand alone jar project. In eclipse, we just check “Is Library” box in project setting dialog. In Android studio, I followed this steps and got a jar file. Create a project. open file in the left project menu.(app/build.gradle): Gradle Scripts > build.gradle(Module: XXX) change one line: apply … Read more