Skip to main content

All Questions

Tagged with
-1 votes
0 answers
42 views

flutter/packages/flutter_tools/gradle/src/main/groovy/app_plugin_loader.groovy' Unsupported class file major version 66

All of sudden android build keeps failed .. I don't touch any build configuration, so I am embarrassed for 2 days, please help me.. when I type java -version it shows as below. openjdk version "...
Hyejung's user avatar
  • 1,180
0 votes
0 answers
32 views

Is it possible to make a build flavor "non-combinable" dimension-wise in Android build.gradle configuration?

I have encountered a problem while configuring an Android app build.gradle's build variants. As a rule, all build flavors are being combined to all other build flavors with different dimensions in M:M ...
Andrey Ryzhak's user avatar
0 votes
1 answer
49 views

Adding AAR with flatDirs repository is not working anymore

Please note, this is not a duplicate of this question from 10 years ago: Adding local .aar files to Gradle build using "flatDirs" is not working, because this once used to work, with the ...
Martin Zeitler's user avatar
1 vote
0 answers
105 views

Android Studio - AGP 8.5.1 - Rebuild project runs Tests as well

In the latest AGP 8.5.1, when we try the option "Rebuild Project" under the "Build" section, Android Studio also performs test tasks. In the previous version of the AGP and Gradle ...
mmmatey's user avatar
  • 686
4 votes
3 answers
5k views

Could not find method exec() for arguments. Android Build Error

react-native project randomly started failing with Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method exec() for arguments [...
Christopher V. Young's user avatar
0 votes
1 answer
35 views

Why does the buildscript block have to be at the top of the build configuration file?

buildscript { dependencies { def nav_version = "2.7.7" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version" } } plugins { ...
bingsu's user avatar
  • 1
0 votes
1 answer
368 views

Can I create a gradle file with Kotlin to have all my dependencies?

I'm migrating a multi-module project from Groovy to Kotlin Gradle on Android. Before I had several gradle files dedicated to different common things, for example I had in a gradle file those ...
Ludiras's user avatar
  • 434
-1 votes
1 answer
65 views

Duplicate class error when using debug and release library in Android

I have a library in which I have debug and main packages like so: debug - Android/implementation/src/debug/kotlin/myclass/DebugClass.kt main - Android/implementation/src/main/java/some/other/folders/...
Paul Sizon's user avatar
2 votes
1 answer
254 views

Android Gradle/Groovy, how to copy files to APK

I have a bunch of files on my applications source folder that I need to package in my app's bundle. Unfortunately, I'm a Gradle/Groovy noob. My idea would be to modify the apps build.gradle to run an ...
Oscar Franco's user avatar
  • 6,090
0 votes
1 answer
518 views

How to use SnakeYaml or YamlSlurper in an Android Gradle Groovy build script

I want to read a Yaml file in a Gradle Groovy script in my Android application during the build process. My script name is script1.gradle, and it is applied in app/build.gradle file. I run tasks from ...
mike's user avatar
  • 1,710
0 votes
0 answers
19 views

Android Gradle: change the output name during the execution phase

The project consists of the several aar modules and the apk modules The app module is configured before the library module, but app has a compilation dependency on the library modules. One of the ...
Ihor Bordun's user avatar
2 votes
1 answer
465 views

Custom Gradle task to execute all unit tests in all modules

I would like to write a custom task for an Android application project with multiple Gradle modules which executes the unit tests in the following modules so I can run all of them with one Gradle task ...
JJD's user avatar
  • 51.3k
0 votes
1 answer
55 views

If I was given an Android App to start working on. Would that mean I also need a key to go along with it?

I was given a completed app to publish to the android store... I created an key for it... When trying to upload it to a closed testing on the android store I get this error: "Your Android App ...
aaronpachesa's user avatar
2 votes
2 answers
256 views

Getting error after upgrading Android Gradle Plugin to 8.2.0: Gradle DSL method not found: 'archivesBaseName()'

After I updated Android Gradle Plugin from version 8.1.4 to 8.2.0 I am getting this error: Gradle DSL method not found: 'archivesBaseName()' I use this method for specifying the output apk filename, ...
Isak The Hacker's user avatar
0 votes
0 answers
33 views

Compile Only implmentation of external lib is still required in end app

I have an external library that wraps some implementations of a third party library that we want to make interchangeable when I bring the features the third party does in-house. This is then published ...
BilalMH's user avatar
  • 175

15 30 50 per page
1
2 3 4 5
27