A class created automatically by the Android Development Tools (ADT) plugin for Eclipse, with information about how the project build was configured.
Questions tagged [buildconfig]
94 questions
6
votes
3 answers
BuildConfig Failure error ';' expected
I am importing the project: https://github.com/Kennyc1012/OpenImgur
and after receiving Imgurs Client ID and API Client Secret, bulding the project is fine, but then attempting to run the app notes the errors:
Within the BuildConfig.java…

Sauron
- 6,399
- 14
- 71
- 136
5
votes
2 answers
android BuildConfig.BUILD_TYPE always in release status
I am implementing a new functionality that depending on whether the application is running, debug or release, choose between two url.
This is the code that I use insidel gradle to choose which url use ->
In the line below, is where I want to get…

Liru
- 311
- 1
- 4
- 10
4
votes
1 answer
Android Studio gives me BuildConfig Error
If i tap the Debug Icon, Android Studio sometimes automatically creates new BuildConfig files and then complains that it should be only one named Buildconfig.java...
A Clean Project fixes it but it is so annoying that there must be a reliable…

SwiftiSwift
- 7,528
- 9
- 56
- 96
4
votes
1 answer
BuildConfig (or alternative) in Flutter
I'm new in Flutter and I'm looking for something similar to generated BuildConfig class I know from classic Android development.
I'm using Gradle to generated some of the constants I need in my code.
I could find 2 BuildConfig files in my project,…

Tony Danilov
- 430
- 3
- 11
- 22
4
votes
1 answer
How can I provide multiple source inputs for a build config in Openshift
I want to create a builder image app_name:latest which would take multiple source inputs, e.g, another image and a binary source, then create output into app_name:latest.
Example -
{
"kind": "BuildConfig",
"apiVersion": "v1",
"metadata":…

Swagatika Mahapatra
- 41
- 2
4
votes
1 answer
How can I get the VERSION_NAME of an application in a method included in a library common to several applications?
I have developed a library to share code that is common to two applications. One of the shared methods is intended to display the VERSION_NAME of the application. This VERSION_NAME is set in the build.gradle file of each application. When I Use…

ema3272
- 1,021
- 2
- 13
- 28
4
votes
1 answer
Externalized BuildConfig in Grails
We can load different configuration files for Config.groovy by specifying a class that is a config script. Externalized Configuration:
grails.config.locations = [com.my.app.MyConfig]
Is it possible to do something similar for BuildConfig.groovy?
I…

Arturo Herrero
- 12,772
- 11
- 42
- 73
3
votes
3 answers
BuildConfig.java is not configuring properly in flutter
When I run my flutter project, I get the following error:
C:\Users\Sourav Kannantha B\Documents\AndroidProjects\ecommercestore\build\app\generated\source\buildConfig\debug\com\skbsmk\ecommercestore\BuildConfig.java:14: error: illegal escape…

Sourav Kannantha B
- 2,860
- 1
- 11
- 35
3
votes
0 answers
Exclude class from cross-project dependency via Gradle
I've recently upgraded to Unity 5.6 in hopes of utilizing the Gradle build pipeline (to workaround the nasty dex limit).
After some days of configuring it, I ran into this head-cracking issue. Here is the error as displayed in the Unity Editor…

Lee Lim
- 31
- 1
3
votes
2 answers
adding url to BuildConfig file from Gradle
My BuildConfig is generated by Gradle. One of my strings is a URL. When I try to create an apk, I get an error about the : in the url. Any ideas what I should tell gradle so this works fine?
Here is what I told Gradle:
buildConfigField…

Nouvel Travay
- 6,292
- 13
- 40
- 65
3
votes
0 answers
Duplicate BuildConfig.class in android modules
I have two android modules that one of them has a dependency to other one, and both have same package name.
this error occurs building the project:
Error:Execution failed for task…

Payam Hesami
- 97
- 1
- 11
3
votes
3 answers
Package BuildConfig does not exist while building on jenkins
I'm using jenkins to build my Android app. My app makes use of HockeyApp for crashlogging. I have serveral buildTypes but I want to prevent crashes being logged on the buildType I use for development.
I solved it this…

MrJM
- 1,214
- 1
- 12
- 26
3
votes
0 answers
BuildConfig prop for each buildType / productFlavor combination
I have free and paid versions of an app. I need to configure with gradle a prop on BuildConfig that is different for each buildType / productFlavor combination.
free-debug -> prop1=value1
free-release -> prop1=value2
paid-debug ->…

Maxi Rosson
- 101
- 5
3
votes
0 answers
Grails change Environment from Development to Test
Is there any way to change current environment from DEVELOPMENT to TEST?
I have tried,
if(Environment.getCurrent().equals(Environment.DEVELOPMENT)){
Environment.currentEnvironment = Environment.TEST
println("Current Environment :…

JiniKJohny
- 1,172
- 13
- 29
2
votes
2 answers
Grails 2.0: Invalid SHA1
Often I get and invalid SHA1 error when executing run-app in Grails 2.0.0.RC1, especially with depedencies to our pwn products/modules.
I have found the following Jira case:
http://jira.grails.org/browse/GRAILS-7313
Unfortunately the following line…

Jonas
- 854
- 13
- 33