Questions tagged [buildconfig]

A class created automatically by the Android Development Tools (ADT) plugin for Eclipse, with information about how the project build was configured.

94 questions
2
votes
1 answer

buildConfigField not working after updating gradle to 7.0.3

I updated gradle 4.0.1 to 7.0.3 because I need the support of new gradle. I let the auto updater run and after it was done, when I run the code I get the following…
2
votes
1 answer

How can I get BuildConfig.VERSION_NAME from another module in Android?

I want to get VERSION_NAME from domain module. My config is in the main gradle (build.gradle (app)) and I don't know how to get this config. I try to get version name with: package com.example.domain (domain) val versionName =…
Aitor
  • 23
  • 1
  • 3
2
votes
1 answer

TFS2010: Build Configuration Issues

I have customized the build configurations in my solution by deleting the Debug and Release configurations and creating "Dev" and "Test". Everything builds fine locally but I get the following error (and others like it) when building one of the new…
chief7
  • 14,263
  • 14
  • 47
  • 80
2
votes
0 answers

Determine build variant of app from inside an SDK library code

My question: How to get the build variant of an app hosting my AAR library code? Background: - A method that returns an apps build variant should use: BuildConfig.BUILD_TYPE I'm writing an SDK library. I want to know the build variant of the…
Eitan Schwartz
  • 463
  • 6
  • 19
2
votes
1 answer

Put property from parameters into a android build config with a default value using gradle?

I would like to grab a parameter from gradle command line -Pfruit=Apple And then put this parameter into a BuildConfig for every buildType. I'm trying to achieve using: buildConfigField("String", "env", "\"${project.fruit}\"") Unfortunately I don't…
pixel
  • 24,905
  • 36
  • 149
  • 251
2
votes
0 answers

gradle substitute string of another module

In my build.config I can add some text markers which get replaced in xml: resValue "string", "id", text this works within one android module. Now I want to substitute text for a xml file in one module with a build.config of another module. How is…
Naveen
  • 109
  • 8
2
votes
3 answers

How do I use a node selector with a build config in openshift?

I am running a large world spanning openshift cluster. When I run a build from a BuildConfig it will randomly assign the build to any node in the entire cluster. This is problematic as many regions have higher latency which dramatically slows down…
2
votes
1 answer

What does formString(System.getenv("...")) mean?

In build.gradle, the following is under a product flavor: buildConfigField 'String', 'API_URL', formString(System.getenv("DEV_API_URL")) What does formString(System.getenv("DEV_API_URL")) mean? I am used to seeing the formString as a static value…
Daiwik Daarun
  • 3,804
  • 7
  • 33
  • 60
2
votes
2 answers

Phonegap blackberry unknown option buildConfig?

OK. This may sound like I'm overly frustrated, because I am. I'm trying to build a Blackberry app for release for the guy I'm working for. I built the Android one just fine after adding a build config and adding the keystore. But then, well, even if…
Jay V
  • 121
  • 11
2
votes
1 answer

BuildConfig.class for all flavors

I'm trying to run Robolectric with constant BuildConfig.class but it looks like it is not available for all flavors that are generated by gradle. is there a command to have gradle make this file for all of them?
2
votes
1 answer

Where do I get the configure script for PHP source?

I am currently trying to build an extension for PHP via PECL. /Applications/MAMP/bin/php/php5.4.39/bin/pecl install memcached I am using OS X and MAMP, so I got this error. /Applications/MAMP/bin/php/php5.4.39/include/php/Zend/zend.h:51:11: fatal…
func0der
  • 2,192
  • 1
  • 19
  • 29
2
votes
1 answer

IntelliJ IDEA Phonegap ! duplicate class: org.apache.cordova.BuildConfig

I'm runing IntelliJ IDEA 13.1.2 on Ubuntu machine. I'm facing with a file generated wrong structure I think. Some one already asked about this problem(), but is not solved. :~/workspace$ phonegap create mobileApp1 ... done.. :~/workspace$ cd…
CristiC777
  • 481
  • 11
  • 20
2
votes
1 answer

HTTPBuilder library

I want to use the HTTPBuilder class to send json Data to my server, I have imported the following namespaces, But my intelliJ IDEA is not recognizing the the "groovyx" saying can not resolve symbol. import groovyx.net.http.ContentType import…
2
votes
3 answers

Grails OpenId Plugin Error

I am trying to do the tutorial of the Grails openId plugin. I created a test app and followed exactly the steps from the tutorial of Burt Beckwith…
noob
  • 300
  • 5
  • 16
1
vote
3 answers

MainActivity.java - cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED)

I've upgraded react-native to latest version (0.68) through react-native CLI, and now every time I'm trying to build for android I get this error: error: cannot find symbol reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); I tried…
MasterPiece
  • 445
  • 7
  • 13