Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Gradle new "apply plugin"

All of the tutorials I've read for Gradle explain that the build.gradle file should contain either:

apply plugin: 'android'

or

apply plugin: 'android-library'

However, I've just built a new project with Android Studio 0.8.6 and my build.gradle now has:

apply plugin: 'com.android.application'

  1. Is it purely a syntax change or is there some deeper purpose?
  2. What is the new syntax for creating an android library?
like image 988
bcorso Avatar asked Aug 18 '14 16:08

bcorso


1 Answers

  1. pure syntax change ( I think to avoid collisions / use a 'protected' namespace )
  2. com.android.library

this talk from the 2014 gradle summit sheds some more light on it: https://www.youtube.com/watch?v=A9Fn3ehhU-o from ~ min 15

like image 141
ligi Avatar answered Sep 22 '22 23:09

ligi