52,937 questions
0
votes
0
answers
9
views
Refactoring a Spring Boot Application from Java to Kotlin: Unit Test Errors
I am working on refactoring a Spring Boot application from Java to Kotlin. I have made the necessary updates to the build.gradle file.
Firstly, I refactored the Application class from Java to Kotlin. ...
1
vote
1
answer
14
views
Flutter Gradle Build Fails: Namespace not specified for ':flutter_tflite'
I am encountering an issue while trying to build my Flutter project. The app fails to compile, and I receive the following error:
Error Message:
FAILURE: Build failed with an exception.
* What went ...
0
votes
0
answers
14
views
NeoForge: Mod's item models are not found
I have a mod for NeoForge version 21.4.38-beta which has some items:
public static final class _Items {
private _Items() {
throw new AssertionError();
}
private ...
0
votes
1
answer
19
views
Error with ffmpeg_kit_flutter_https_gpl in Flutter: "Namespace not specified. Specify a namespace in the module's build file"
I'm using the render: ^0.0.8 library in my Flutter project. I've added this dependency to my pubspec.yaml file. However, whenever I run my project, I encounter the following error:
A problem occurred ...
0
votes
0
answers
14
views
(React Native): Task :app:generateAutolinkingNewArchitectureFiles FAILED
This is my first React Native project, so please bear with me :)
I have been having TONS of build issues with Gradle, not being able to run ./gradlew clean, but now that works correctly.
I'm on react-...
2
votes
1
answer
16
views
buildSrc plugins conflict in Android multi-module project using libs.versions.toml
I need a few dependencies in my buildSrc Module to write an extension for project config with, using versions.toml btw
I added buildSrc/settings.gradle.kts:
dependencyResolutionManagement {
...
0
votes
2
answers
26
views
How to make IntelliJ show Kotlin exception messages when using Gradle?
I have a kotlin App that throws an IllegalArgumentException at some point, and I'd like to see that exception in the console (I'm using IntelliJ). However, the IntelliJ terminal just prints the ...
0
votes
1
answer
27
views
Received Status Code 403 When Downloading Dependencies After Updating to Android Studio Iguana | 2023.2.1
I recently updated my Android Studio from Hedgehog | 2023.1.1 to Iguana | 2023.2.1. After the update, I tried to build one of my projects, but I started encountering dependency resolution errors.
The ...
0
votes
1
answer
20
views
Gradle 8.x upgrade : How to fix "JUnitXmlReport.getDestination()" error in build
I have upgraded a repo from Gradle 7.5 to Java 8.5 (running on Java 17 for now)
After the upgrade, the repo still builds fine locally, but started to fail in the deployed build (AWS CodeBuild) with ...
1
vote
1
answer
23
views
Gradle build fails to resolve Google Sheets API dependency in Android Studio
I'm trying to build an Android app using Android Studio, and I'm having issues resolving the Google Sheets API dependency during Gradle sync.
What I've tried:
Added the required dependencies to build....
1
vote
0
answers
25
views
Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
D:\Reactnative\myapp> npm run android
[email protected] android
react-native run-android
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
Starting a Gradle ...
0
votes
0
answers
20
views
Build Failure and App Crash After Adding @react-native-voice/voice in React Native 0.75 During Version Upgrade
I am currently upgrading a React Native project from version 0.68 to 0.75. While I have successfully updated all other packages, I am facing issues with the @react-native-voice/voice.
The app works ...
0
votes
0
answers
11
views
Gradle Error: Could not find com.github.jiangdongguo.AndroidUSBCamera:libausbc:3.3.3 Dependency
I am making an android app using java where I want to show the video stream coming form an Webcam connected via USB cable to my android phone. I'm encountering an issue with resolving the following ...
1
vote
1
answer
65
views
Android studio app doesn't work after gradle update
I imported an app I'm trying to edit to my android studio (latest version), the latter required me to update the Gradle, so I did and even then I get the follow error(s):
Errors page is too long: ...
0
votes
0
answers
24
views
React Native Gradle Build failure: Cannot sync project due to Kotlin binary version metadata
I am getting this error when trying to sync my android studio project built with react native
/Users/ronaldjones/.gradle/caches/8.12/generated-gradle-jars/gradle-api-8.12.jar!/META-INF/declarative-dsl-...
0
votes
0
answers
25
views
no se me construye en el telefono mi aplicación de flutter [closed]
trabajando en flutter mi proyecto funcionaba bien y se construía a movil, pero trabajando con el secure_storage en el proceso del login, si se construye en web pero no en el movil como lo hacía antes
...
1
vote
0
answers
24
views
Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (17) and 'compileReleaseKotlin' (21) flutter 3.27
As of other available questions, I have tried all the solutions but doesn't work. I have update Kotlin to latest version 2.20. My JDK version is 21 and I have also tried with 17. I have tried to ...
-1
votes
3
answers
56
views
I have an issue with the gradle files
Current java version is 17 and the gradle version downloaded is 8.11.1 Error message and the files are below:
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK ...
0
votes
1
answer
15
views
Build failed: Could not get unknown property 'android' for project ':firebase_core' in Flutter project
I'm trying to build a Flutter application for Android using the flutter build apk command, but the build fails with the following error:
FAILURE: Build failed with an exception.
* What went wrong:
A ...
0
votes
0
answers
20
views
Why do all tasks related to test fail. such as compileDebugAndroidTestJavaWithJavac
All tasks related to test fail when I run./gradlew installDebug.
I tried to change the jdk version and the gradle version, but nothing worked
compileDebugAndroidTestJavaWithJavac
...
0
votes
0
answers
11
views
Android Unit Test Fails in Cloned android architecture-template Project
In Android Studio, I run a unit test on unmodified code which has been cloned from the Android Developer Github repository. The project and test class build without errors, the test and subject class ...
0
votes
0
answers
18
views
io.grpc.StatusRuntimeException: UNIMPLEMENTED: Method not found: chat.example.ChatService/chat
I have reviewed other posts where the subject line's error is mentioned, but none of these have helped. I have the server in one project and the client in another.
This is my Chat.proto file for both, ...
0
votes
0
answers
28
views
Script 'C:\flutter_windows_3.27.1-stable\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1347
i cloned a repo from git to see if i can use its ui template , i changed the gradle wrapper to the version 8.5 because android studio gave me an error of incompatibility between the flutter version ...
0
votes
0
answers
14
views
Spring Cloud Netflix Eureka Client triggers 'mutating configuration' deprecation warnings in Gradle 8.11.1
Description:
I'm in the process of upgrading my project to Gradle 8.11.1 and have started seeing deprecation warnings like this:
Mutating the dependency attributes of configuration ':compileOnly' ...
1
vote
0
answers
17
views
React-native Gradle upgrade incompatible kotlin version / where does build.gradle.kts version come from
I keep getting this error while trying to build my react native android app
The class is loaded from /{homeDir}/.gradle/wrapper/dists/gradle-8.5-bin/5t9huq95ubn472n8rpzujfbqh/gradle-8.5/lib/kotlin-...
0
votes
1
answer
18
views
Expo React Native App Gradle assembleRelease Fails ( expo-modules-core:compileReleaseKotlin FAILED )
when i try to ./gradlew app:bundleRelease in android folder i get following error :
[androidx.versionedparcelable:versionedparcelable:1.1.1] C:\Users\PC\.gradle\caches\8.10.2\transforms\...
0
votes
1
answer
27
views
Resolving the "Could not find com.kezong:fat-aar:1.2.15" Error
When I tried to build an android project with gradle dependencies, building failed with "Could not find com.kezong:fat-aar:1.2.15" error. How can I resolve the issue?
I tried to find the ...
1
vote
0
answers
30
views
Why do I get the error "java.lang.SecurityException: Unknown calling package name 'com.google.android.gms'"? [duplicate]
Ps. Stop closing the question and marking it as duplicate pointing at a random solution. IT DOES NOT WORK.
Its been almost a month since i can not find an answer to my issue.
Building the APK will ...
0
votes
0
answers
33
views
Android Kotlin Error .gradle\caches\8.9\transforms [closed]
C:\Users\.gradle\caches\8.9\transforms\d0bbece9acf2c4457b7baea4d079461c-c6efac70-73c5-422c-8e09-5f9e96495de0 -> C:\Users\.gradle\caches\8.9\transforms\d0bbece9acf2c4457b7baea4d079461c
I've tried ...
0
votes
0
answers
7
views
Remove uikit components from gradle in compose multiplatform app running on windows
Running a compose multiplatform app on windows, is there a way to stop gradle from downloading all the uikit components, since they won't be used anyways.
Padding to make stackoverflow happy
Gradle ...
2
votes
1
answer
1k
views
Building flutter apk failed after upgrading to Flutter 3.27.1
I've recently upgraded my Flutter version to the newest one (3.27.1). Everything works fine when I run the app directly through IDE. But when I tried to build my app's APK for deployment, it doesn't ...
0
votes
0
answers
125
views
"warning: [options] target value 8 is obsolete and will be removed in a future release" when building Flutter app
EDIT: There is a similarly titled question but it is not asking the same thing (for the root cause) and it actually makes things more confusing because it is happing to them (they say) with Gradle ...
0
votes
0
answers
29
views
How to make Flutter recognize alternate Java location for Android build?
I have a situation (on Mac) where a Flutter project refuses to build for Android apparently because it is trying to use Android Studio Lady Bug bundled version of Java (which is version 21). It says ...
0
votes
0
answers
30
views
NoClassDefFoundError in kotlin app inside docker image
I have the following Dockerfile, where I set APP_CLASSPATH explicit in purpose of debug:
FROM gradle:8.11.1-jdk17-graal AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
...
0
votes
0
answers
20
views
libGDX construo packaging crashes if I add log4j or logback
As soon as I add log4j or logback to my libGDX project, the construo build crashes at createRuntimeImage. It is reproducible with a fresh libGDX project (all default configs) by just adding the log4j ...
0
votes
1
answer
47
views
gradle version incompatible or java version error [duplicate]
im creating flutter project and i found this error in android studio that is gradel Issu error is showing this
Launching lib\main.dart on RMX2151 in debug mode...
Running Gradle task 'assembleDebug'......
0
votes
0
answers
46
views
Dependecies build gradle duplicate
I'm creating a spring boot project with API soap and I'm using two dependencies that have a duplication conflict with each other.
Error log message:
Execution failed for task ':war'.
Entry WEB-INF/...
1
vote
1
answer
48
views
Unable to sync the project in Lady Bug Android studio when create the new Project
I am facing an issue in Android Studio (version: Ladybug) while syncing my project. The problem occurs when I either create a new project or add a new library to the build.gradle file. The sync fails ...
0
votes
0
answers
24
views
Gradle Project Sync Failed. Cause: zip END header not found
My android project was working fine until I started an emulator for android tablet.
Since then I was not able sync my project. I tried uninstalling android studio and pulled my working github ...
1
vote
0
answers
39
views
+250
Gradle cannot find plugin in Nexus repository despite proper configuration
I'm trying to configure my Gradle project to download the com.android.application plugin (version 8.7.2) from my private Nexus repository. I can only use this Nexus repository
(https://nexus.com.br/my-...
0
votes
1
answer
31
views
Flyway Gradle plugin to run manually using the postgres connection string
I am trying to use https://documentation.red-gate.com/fd/gradle-task-184127407.html to run the flyway migration manually.
In the micronaut application.properties files I have already have a postgres ...
0
votes
1
answer
47
views
Trigger custom generator when file is saved
I am using the Quarkus with Gradle (without Kotlin) as a build tool.
In my project there are classes that contain some information that my custom generator uses to generate some custom classes. With ...
0
votes
0
answers
88
views
Flutter version 3.27.0 throws exception - MissingPluginexception and PlatformException for Android
I am facing a few errors with the latest version of Flutter(3.27.0). A lot of the packages that I have used within the app, arre working fine on iOS but not on Android. They usually throw exceptions ...
-1
votes
0
answers
42
views
How to determine correct Gradle Wrapper version from Java Version in Flutter?
Lets say, as a Flutter developer, we have (arbitrarily chosen) Java version 20 installed on our machine.
So we want to know what version of the Gradle Wrapper to set in android/app/gradle/wrapper/...
1
vote
1
answer
51
views
Interpreting The Gradle Compatibility Matrix (Java) for Android Development
On the Gradle Compatibility Matrix for Java Runtime, there is only one single Java version associated with a given Gradle Wrapper version (I'm assuming "Grade Version" can mean "Gradle ...
0
votes
0
answers
26
views
<nulltype> cannot be represented as a Class<?> SDK 35 in Android
I was using compile 34 as the target SDK in my project and it gave me a warning that I should now make it 35. So I made the compile SDK 35 and then when I did the rebuild it gave me an error like this....
1
vote
0
answers
17
views
A new Android Studio project - "Plugin [id: 'com.android.application'] was not found in any of the following sources:"
Normally, there would be a list of sources below the error message, but there's empty on my log.
Some answers mentioned the google() repository, but it's been in the list.
Here is a portion of the ...
0
votes
1
answer
29
views
I can't connect the library from github
Failed to resolve: com.jcodecraeer:xrecyclerview:1.6.0
Failed to resolve: com.github.smarteist:autoimageslider:1.1.1
Failed to resolve: com.android.volley:volley:1.1.1
Failed to resolve: com....
0
votes
0
answers
20
views
gradle error Could not resolve all artifacts for configuration ':classpath'
Android studio: Koala Feature Drop | 2024.1.2
JDK: 17.0.11
gradle version; 8.7
gradle plugin version: 8.5.2
these are my settings
i dont know what wrong with android studio. it can't even sync and ...
0
votes
0
answers
16
views
VSC gradle environment variables
Do you know why environment variables doesn't work with Gradle for java extension ? There is no way to set them in e.g. launch.json or settings.json files. Gradle Version: 8.10.2. VSC Version: 1.96.0 (...