Questions tagged [gradle-plugin]

Gradle is a project build automation tool. A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you to implement your own custom plugins, so you can reuse your build logic, and share it with others.

Gradle is a project build automation tool. A Gradle plugin packages up reusable pieces of build logic, which can be used across many different projects and builds. Gradle allows you to implement your own custom plugins, so you can reuse your build logic, and share it with others.

1562 questions
1280
votes
12 answers

What's the difference between implementation, api and compile in Gradle?

After updating to Android Studio 3.0 and creating a new project, I noticed that in build.gradle there is a new way to add new dependencies instead of compile there is implementation and instead of testCompile there is testImplementation. Example: …
392
votes
7 answers

What the difference in applying gradle plugin

I don't understand gradle plugins block apply plugin: 'someplugin1' apply plugin: 'maven' and other one: plugins { id 'org.hidetake.ssh' version '1.1.2' } In first block We have some plugin name. in second one package and version. I don't…
Yevgen Kulik
  • 5,713
  • 2
  • 22
  • 44
241
votes
35 answers

Android Material and appcompat Manifest merger failed

I have next grade dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.android.support.constraint:constraint-layout:1.1.2' …
113
votes
41 answers

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

I am getting this kind of error, how to fix it. Error:Unable to load class 'org.gradle.tooling.internal.protocol.test.InternalTestExecutionConnection'. Possible causes for this unexpected error Gradle's dependency cache may be corrupt (this…
Vatsal Harde
  • 1,538
  • 3
  • 15
  • 17
101
votes
11 answers

org.gradle.api.InvalidUserCodeException: Querying the mapped value of provider (java.util.Set) before task ... has completed is not supported

I upgraded my project to Android Studio Arctic Fox, so I have to upgrade gradle to 7.0.2 and gradle build tool to 7.0.0-beta04. After synchronizing, I got this warning message in Sync tab: org.gradle.api.InvalidUserCodeException: Querying the mapped…
user1373996
95
votes
6 answers

cvc-complex-type.2.4.a: Invalid content was found starting with element 'base-extension'. One of '{layoutlib}' is expected

I am facing this issue many times when i download project from github i am using new Android studio(bumble bee) please help me if any body knows https://github.com/fjbatresv/arcore_solar_system.git (this is the project which i am downloading in…
80
votes
8 answers

Gradle version 1.10 is required. Current version is 2.0

I am trying to use latest Gradle version (2.0), however I keep getting this message when hitting gradle build in terminal. Why is it asking for 1.10 version? I am new to Gradle, so I'm trying to get my head around it. Gradle version 1.10 is…
Nabdreas
  • 3,327
  • 4
  • 27
  • 30
79
votes
8 answers

How do I create an executable fat JAR with Gradle with implementation dependencies?

I've got a simple project in Gradle 4.6 and would like to make an executable JAR of it. I've tried shadow, gradle-fatjar-plugin, gradle-one-jar, spring-boot-gradle-plugin plugins but neither of them adds my dependencies declared as implementation (I…
Dmitry Senkovich
  • 5,521
  • 8
  • 37
  • 74
78
votes
7 answers

Not able to copy configurations dependencies after upgrading Gradle plugin for Android Studio to 3.0.1 and Gradle to 4.1

I used to copy 'compile' dependencies to a specific folder using this simple gradle task : task copyLibs(type: Copy) { from configurations.compile into "$project.rootDir/reports/libs/" } But it stopped working just after upgrading my…
76
votes
12 answers

Update Gradle in Flutter project

I have this project in Flutter, but I haven't been able to build an apk for a couple of weeks, because of the Gradle version. I've tried everything, but Flutter always returns the error below: I already install every update I found, even though, it…
Israeldev
  • 868
  • 1
  • 5
  • 7
57
votes
4 answers

How can the gradle plugin repository be changed?

I work at a big company with a strict policy forbidding the unfiltered use of outside libraries. We have to pull everything from blessed corporate repositories, and not the bare internet, including gradle.org. Using gradle's original apply plugin…
Tony Pierce
  • 788
  • 1
  • 6
  • 11
45
votes
11 answers

How to fix "plugin was not found in any of the following sources"

I created a Spring MVC project ion Intellij IDEA. When I build my project, following message is displayed, how can I resolve it? Plugin [id: 'org.springframework.boot', version: '2.1.7.RELEASE'] was not found in any of the following sources: -…
steven nguyen
  • 571
  • 1
  • 4
  • 7
42
votes
12 answers

Android-studio 3.4.0-3.4.2 Gradle ERROR: No value has been specified for property 'manifestOutputDirectory'

when upgrading to android-studio 3.4.x/gradle build plugin 3.4.x /gradle 5.3 ... wondering if its an issue with the android plugin. ERROR: No value has been specified for property 'manifestOutputDirectory'. My gradle script does not use manifest…
Bingerz
  • 1,027
  • 1
  • 11
  • 15
42
votes
2 answers

Difference apply from vs apply plugin

Is there a difference except that: apply from: - gets the (plugin).gradle from a URL apply plugin: - gets the (plugin).gradle from the gradle plugin server
Ari
  • 1,361
  • 1
  • 15
  • 23
40
votes
13 answers

build failing during merge resources with Android Gradle plugin 3.3.0

I have a lot of different flavors for my build that have specific resources and I don't want to clutter my src directory in my project with a bunch of flavor-specific directories, so I add the source sets from another folder in my project prior to…
akong9759
  • 413
  • 1
  • 4
  • 7
1
2 3
99 100