Category "build.gradle"

IntelliJ IDEA not showing subproject

A stupid problem happened to me, but I don't understand where I went wrong. I have a project with subprojects. In the IDE I see this picture My root build.gra

JCenter deprecation; impact on Gradle and Android

Should I be worried about JCenter being deprecated? Why should I migrate my libraries from JCenter to other Maven repositories? Can I continue to use jcenter()

Setting AndroidManifest's activity screenRotation different per flavor

Is there a way to dynamically set the activity screenOrientation in AndroidManifest from gradle's build.config? I need to have a flavor which allows rotation,

Flutter: Could not compile build file 'build.gradle', General error during semantic analysis: Unsupported class file major version 57

I try to develop an app using Flutter. Everything is OK when I initiate my app, it runs perfect for 2 days. But when I had an error writing my widgets, I restar

android gradle Received invalid response from the daemon

My project gradle is in building situation on the other hand i pushed the code on bitbucket after pushing when i come back to android studio this error comes

Gradle: Building a modularized library that is compatible with Java 8

So Java 9 is there, soon to be followed by Java 10. Time we should make our libraries ready for use in Java 9 projects. I did it in the following way: provide

Flutter: Execution failed for task ':location:compileDebugKotlin'

Execution failed for task ':location:compileDebugKotlin'. build:gradle(Module:app) ext.kotlin_version = '1.6.10' repositories { maven {

Changing .BuildConfig package

Is there a way to dynamically change the package of the generated file .BuildConfig? I want to use build.gradle file to use the applicationId and change the pa

Failed to resolve: com.github.barteksc:android-pdf-viewer:2.8.1

I am trying use this library in my Project. But i am unable to download it by adding it in gradle build. In fact i am even unable to download any library throug

How to run testng xml using gradle?

I am trying to run testng.xml using gradle task but looks like its not picking it. Can someone please help me in identifying what I am missing here? Do I need t

How can I disable a task in build.gradle

I want to skip some tasks when I run gradle build. I know that it can be done from command line with -x: gradle build -x unwantedTask My question is how can t

Could not resolve all files for configuration ':app:debugRuntimeClasspath'., flutter

I don't know whats causing this error in flutter, I just tried to create a new project and I am getting this error, I have upgraded and also downgraded my flutt

Android Studio gradle takes too long to build

My Android Studio project used to build faster but now it takes a long time to build. Any ideas what could be causing the delays? I have tried https://stackover

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 th

Gradle 4.0 Unable to find a matching configuration

I am trying to open my existing project in new Android Studio 3.0 canary 2. I updated Gradle according to instructions, changed names for dependency configurati

Gradle 4.0 Unable to find a matching configuration

I am trying to open my existing project in new Android Studio 3.0 canary 2. I updated Gradle according to instructions, changed names for dependency configurati

~/.gradle/gradle.properties file not being read

There is a similar question here: Gradle properties not being read from ~/.gradle/gradle.properties but it does not solve my problem. It seems to me that gradl

Gradle 6+ : compile groovy before kotlin

I'm working on a project combining groovy and kotlin. My Kotlin classes require objects from groovy part, how can i make gradle compile groovy before kotlin ?

How to create a fat JAR with Gradle Kotlin script?

As titled, I'd like to know how to modify the gradle.build.kts in order to have a task to create a unique jar with all the dependencies (kotlin lib included) in

In Gradle, how to print out a message in the console / Event Log?

I'm trying to verify that my source and target paths are properly setup when I execute a deploy command. See the example below: (copied from: http://eppz.eu/blo