Questions tagged build.gradle

Explore the latest questions and answers asked by our top developers.

Publish multi module library to maven

I have a small library that I publish to Gitlab Package Registery using the maven-publish Gradle plugin. I decided to split it into 2 modules, one named core (published as com.mycompany.core:core) and the other view (published as com.mycompany.core:view). Since the view module rely on the core module, I added implementation project(":core") to its build.gradle Now […]

By Bencri
Published
Categorized as android, build.gradle, gradle, maven

Unable to load class ‘org.jetbrains.kotlin.config.LanguageVersion’

When I bought the new laptop, to copy my android studio projects from old laptop to new laptop, I just copied all the projects from the folder AndroidStudioProjects to respective folder in new laptop. Usually it used to work. But this time, I am getting a new error while gradle sync. When I try to […]

By skafle
Published
Categorized as android, android-studio, build.gradle, gradle, kotlin

Android Studio Design editor is not appear. (Apply almost all the solutions in google. but not appear. please help me…)

I’m a beginner developer who is developing an Android studio. While I was working on the xml file, the design editor suddenly doesn’t look black like the picture below. enter image description here So I found several solutions through googling and applied nine solutions, but the design editor still doesn’t appear black. Similarly, there was […]

By BYEONGJUN KANG
Published
Categorized as android-layout, android-studio, build.gradle, sdk, xml

Android Studio Design editor does not appear

I’m a beginner developer who is developing an Android app. While I was working on the xml file, the design editor suddenly doesn’t look black like the picture below: So I found several solutions through googling and applied nine solutions, but the design editor still doesn’t appear black. Similarly, there was an invisible error in […]

By BYEONGJUN KANG
Published
Categorized as android-layout, android-studio, build.gradle, sdk, xml

Gradle Build failing with kotlin exception in flutter

While running a flutter app I am facing failure while gradle build. This issue was not there earlier and seems to have randomly occured. I am not sure what I must do to resolve it! FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project ‘android’. > Could not […]

By Aditya Singh
Published
Categorized as android, build.gradle, flutter, gradle, kotlin

I can not sync my gradle files with the hilt dependency(latest version) and jCenter() as repositories

I have those dependencies(which I need both of them): //Dagger – Hilt implementation ‘com.google.dagger:hilt-android:2.40.5’ kapt ‘com.google.dagger:hilt-compiler:2.40.5’` // Shimmer implementation ‘com.facebook.shimmer:shimmer:0.5.0’ implementation ‘com.todkars:shimmer-recyclerview:0.4.0’` When I have jCenter() as repository: repositories { google() jcenter() mavenCentral() } It generates an error: ""Could not GET ‘https://jcenter.bintray.com/com/google/dagger/hilt-android-gradle-plugin/2.40.5/hilt-android-gradle-plugin-2.40.5.pom’. Received status code 502 from server: Bad Gateway"" When I remove it, it […]

By Olsi Hoxha
Published
Categorized as android, build.gradle, gradle, kotlin

Duplicate class and gradle build failed

I can’t build and run the project to my Android. CommandInvokationFailure: Gradle build failed. C:Program FilesJavajdk1.8.0_77binjava.exe -classpath "C:gradlegradle-6.9.1libgradle-launcher-6.9.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease" stderr[ Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to […]

By Michael Koch
Published
Categorized as android, build.gradle, duplicates, jar, unity3d

Run a command line with Gradle and Save the output result

I want to run a command line with Gradle that this command has an output. I run this command in windows powershell: ./mybat.bat myArgs when I hit enter, it will print some digit, like this: 123456 I want to run this command with gradle and save this result(123456) here is some code that I written […]

By OneDev
Published
Categorized as android, build.gradle, gradle

The project ‘android’ is not a Gradle-based project when use Sync Project with Gradle Files

I learned about object detection and tried to download a source code from GitHub https://github.com/googlecodelabs/odml-pathways/tree/main/object-detection/codelab2/android but when I run Sync Gradle, it gives me this error. Please help me how to fix it, thanks Project Sync The project ‘android’ is not a Gradle-based project Source: Android Studio Questions

By Nguy n Khang
Published
Categorized as android-studio, build.gradle

how to specify the local path of gradle permanently in android studios

HI Here I explain I installed the gradle version 7.3.3 locally on my machine: I also configure the system environment variables. -in GRADLE_HOMME: C: Programme Files gradle version downloaded gradle-7.3.3 -in the path: C: Program Files gradle version downloaded gradle-7.3.3 bin (in the CMD with gradle –version it proves that it is installed). And I […]

By code studio
Published
Categorized as android-studio, build.gradle, gradle, gradle-wrapper, gradlew
1 2 3 101

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq