Code example
dependencies { compile project (':aProject') compile name: 'somefile' compile files('libs/something_local.jar') compile 'com.google.code.gson:gson:2.3.1' }
My questions
What is the difference between compile projectand compile namehere?
compile project
compile name
Is it compile namethe same as compile files?
compile files
When you use compiledirectly, as shown in the 5th line of code
compile
What is doing here compile? Is this a compilation of files inside brackets / single quotes? Can I use something like "build", etc.?
Compile means, it compiles the library into others to be used in your project
compilation project (': aProject')
('libs/something_local.jar')
: "something_local"
compile (: 'something_local', ext: 'jar')
'com.google.code.gson: gson: 2.3.1'
Source: https://habr.com/ru/post/1609889/More articles:Will the C / C ++ compiler reorder for commutative operators (for example: +, *) to optimize constants - c ++Android Device Monitor не может получить доступ к SDK - androidThe name CollapsingToolbarLayout disappears - androidHow to change the color of the focus style? (watchOS 2) - watchkitAllow identical empty methods in ReSharper - c #JWT keys - asymmetric and symmetric - signatureCall kernel32 ReadProcessMemory in Go - goSet the color of WKInterfacePicker (text or outline) - iosRunning NUnit tests in an ASP.NET 5 project (in VS Test Explorer) - asp.net-coreWhat does the sendBroadcast method of the LocalBroadcastManager class return? - androidAll Articles