Nakul Kumar
03/05/2024, 7:53 AMA problem occurred configuring root project 'OPAR'.
Could not determine the dependencies of null.
> Could not resolve all dependencies for configuration ':classpath'.
> The new Java toolchain feature cannot be used at the project level in combination with source and/or target compatibility
Dimitar
03/06/2024, 12:41 PMproject()
).
I've opened an issue with Google team yesterday, but there is no activity.
And this is a bit of a rush on our side.
Can anyone who is familiar with composite builds take a look at the problem?
It might be a dummy mistake on my side.
However, I can't figure out what is wrong.
Here is the Google issue:
https://issuetracker.google.com/issues/328115462
And then the one closed from the Gradle team:
https://github.com/gradle/gradle/issues/28357Audrius
03/06/2024, 4:06 PMtest
task is executed in an Android Gradle module when executing check
task? And how I can remove it?
1. I have a module with applied Android Plugin.
2. I am adding this config snippet
afterEvaluate {
tasks.named("check") {
dependsOn.clear()
}
}
3. and execute ./gradlew :module:check
My expectation that :module:test
should not be executed, but it is. Though other dependencies of the check
(lint
, etc) is removed correctly.Ivan Alvarado
03/07/2024, 4:13 AMidea.paths.selector
property, but that also is omitted for terminal builds. I'm curious if anyone has figured out another way to do this? I'm wondering if this even makes sense since, in theory, someone can build an android project without Android Studio. 🤷♂️Colton Idle
03/08/2024, 6:17 PMflags.properties
FEATURE_X=true
FEATURE_Y=false
app/build.gradle
buildTypes {
def featureFlagProps = new Properties()
file("flags.properties").withInputStream { featureFlagProps.load(it) }
def featureX = featureFlagProps["FEATURE_X"]
...
buildConfigField 'Boolean', 'FEATURE_X', "$featureX"
}
So the code is sorta minimal and it gives me props based feature flagging, but I feel like it starts to fall apart when I need to write FEATURE_Y in 4 places the next time I add a new flag. Open to comments. ThanksRaphael Talento
03/10/2024, 9:07 PM[1:42 PM] * What went wrong:
Execution failed for task ':react-native-ble-manager:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':react-native-ble-manager:androidJdkImage'.
> Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Pretty new to react native, using it for my capstone project and developing an android bluetooth appColton Idle
03/12/2024, 4:07 PMandroid {
packagingOptions {
pickFirst 'jni/arm64-v8a/libxyz.so'
}
}
which works... but is there any way to keep my two 3rd party libraries with their own respective versions of libxyz?JulianHSC
03/14/2024, 8:21 AMJulianHSC
03/14/2024, 8:22 AMHarsh .63
03/18/2024, 3:59 PMHarsh .63
03/18/2024, 4:00 PMAbe
03/19/2024, 7:42 AMsourceSets
via the convention plugin Kotlin DSL the following error occurs:
> > Failed to apply plugin 'company.android.application'.
> > AndroidSourceSet with name 'demo' not found.
The currently selected build variant is devDebug
.
Here is the relevant code:
sourceSets {
getByName("main") {
java.srcDirs(
"src/main/kotlin",
)
}
getByName("demo") {
java.srcDirs(
"src/demo/kotlin",
)
}
getByName("test") {
java.srcDirs(
"src/test/kotlin",
)
}
getByName("androidTest") {
java.srcDirs(
"src/androidTest/kotlin",
)
}
}
What is the recommended way to configure product flavors and the associated productFlavors
, signingConfigs
, buildTypes
, sourceSets
?Júlio Cesar Bueno
03/19/2024, 1:41 PMCaused by: java.lang.NoSuchMethodError: 'com.google.common.collect.ImmutableMap com.google.common.collect.ImmutableMap$Builder.buildOrThrow()'
at com.android.tools.build.bundletool.model.BundleMetadata$Builder.build(BundleMetadata.java:140)
at com.android.tools.build.bundletool.commands.AutoValue_BuildBundleCommand$Builder.build(AutoValue_BuildBundleCommand.java:170)
at com.android.build.gradle.internal.tasks.PackageBundleTask$BundleToolWorkAction.run(PackageBundleTask.kt:432)
at com.android.build.gradle.internal.profile.ProfileAwareWorkAction.execute(ProfileAwareWorkAction.kt:74)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
I tried to force a version of guava in my plugins project and also in the app project, but it didn't help. Any ideas ?Vicken Mavlian
03/21/2024, 7:25 PMMazhar Hussain
03/25/2024, 10:41 AMSupplied String module notation 'com.google.gms.google-services 4.4.1' is invalid. Example notations: 'org.gradlegradle core2.2', 'org.mockitomockito core1.9.5:javadoc'.
Mazhar Hussain
03/25/2024, 10:42 AMMazhar Hussain
03/25/2024, 11:30 AMMazhar Hussain
03/25/2024, 11:30 AMJRF IBITF
03/26/2024, 7:38 AMRun with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.* Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '8.3.1', apply: false] was not found in any of the following sources: can u help me?
Djuro Radusinovic
04/02/2024, 11:02 AMinclude(":submodule_name:module_i_want_to_use_name")
Now, when I do this, I get the following error
* Where:
Script '/myrepo/submodule_name/repositories.gradle.kts' line: 7
* What went wrong:
Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by script 'submodule_name/repositories.gradle.kts'
...
* Exception is:
org.gradle.api.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by script 'submnodule_name/repositories.gradle.kts'
My project is just an ordinary project, how do i resolve this please?Deonta McCluney
04/11/2024, 10:55 PMDeonta McCluney
04/11/2024, 10:56 PMDjuro Radusinovic
04/12/2024, 7:40 AMdesugarDebugFileDependencies
task fails constantly. How can I debug and solve this issue
Stacktrace in 🧵Colton Idle
04/12/2024, 5:12 PMbecause
isn't allowed here?
api(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar")))){
because("adf")
}
vs this
implementation(libs.core.ktx){because("asdf")}
Mohammed Mahmood Ahmed
04/13/2024, 7:33 AMShailesh
04/13/2024, 7:12 PMPham Tú
04/16/2024, 2:28 AMChristopher Vesterby
04/16/2024, 9:12 AMmajid eskandarian
04/28/2024, 3:01 AMRun with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.* Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '8.3.2', apply: false] was not found in any of the following sources: can u help me?
Elielson Sousa
04/29/2024, 11:47 AM