thingkda.blogg.se

Android studio gradle sync
Android studio gradle sync






android studio gradle sync

This will force the keyboard to be hidden in all situations.

android studio gradle sync

Imm.hideSoftInputFromWindow(view.getWindowToken(), 0) InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE) You can force Android to hide the virtual keyboard using the InputMethodManager, calling hideSoftInputFromWindow, passing in the token of the window containing your focused view. Jcenter() //least priority, when not found in all above repos Bintray, jcenter, maven repos may have missing or corrupt google play/ google services dependencies resulting in fetch delays Reorder your repositories and put google's repos first.

android studio gradle sync

increase Xmx and -XX:MaxPermSize accordingly

  • turn on gradle daemon, parallel daemons and increase heap size in gradle.properties.
  • replace all compile 'com.package.:+' with appropriate versions, check maven repos for the latest build, better practise to develop on a version than dynamic updates, it may introduce bugs or issues.
  • I'm using a mac with 16gb memory, ssd hdd and still Gradle sync takes 15mins+ every time I build, clean or open the project, are there any Android Studio optimisations possible to reduce this time.








    Android studio gradle sync