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
0
votes
0 answers

Android cannot find symbol BuildConfig

I have two modules, A and B. A added B as dependency. BuildConfig is generated in B, while being used in both A and B. No error shows in Android Studio, and the app can be installed successfully. But when making the whole project from command line,…
android
  • 1
  • 1
0
votes
1 answer

java lib using BuildConfig plugin failed to compile using gradle 7.0.2 (Configuration not found)

Since I upgraded Gradle, my java lib won't compile with buildconfig plugin. Here is the build.gradle(:driver-java) plugins { id 'java-library' // Pure Java id 'de.fuerstenau.buildconfig' version '1.1.8' // BuildConfig } repositories { …
olivier
  • 183
  • 1
  • 11
0
votes
0 answers

copy mutiple directories using oc new-build with source-image-path flag

when writing a build config in openshift, i can copy multiple directories from one container to another like this source: images: - from: kind: ImageStreamTag name: 'builder:latest' paths: -…
alixander
  • 426
  • 1
  • 7
  • 18
0
votes
1 answer

Unable to generate signed apk using proguard

I have generated two libraries(aar) with same package name as they are in different flavors. Now i'm integrating both into one another application, as both aar files have same packagename buildConfig.class got conflict. I fixed this by given…
Pandiri Deepak
  • 176
  • 3
  • 15
0
votes
3 answers

When can BuildConfig.VERSION_CODE return wrong int

When i set the versionCode to 2 the app still report it to be 1. When I set the versionCode to 3 the app detect that. alo 5, 6 but not setting: defaultConfig { versionCode 2 Is not working with the number 2, I have cleaned the project and…
Tord Larsen
  • 2,670
  • 8
  • 33
  • 76
0
votes
1 answer

Android how handle console Logs in release

I want to make calls to Log in debug but not make these Logs in release build, how should this be handled? checking for BuildConfig.DEBUG flag every time seems awkward. Even making a util method to call and checking there will result in multiple…
ir2pid
  • 5,604
  • 12
  • 63
  • 107
0
votes
1 answer

How to exclude the default lib coming from $GRAILS_HOME/libs/ in Grails 2.4.3

I am using Grails 2.4.3 I have com.google.guava:guava:10.0.1 lib included in $GRAILS_HOME/libs/ and all dependencies in $GRAILS_HOME/libs/ are included in my app by following code in my BuildConfig.groovy grails.project.dependency.resolution =…
Aamir Ali
  • 145
  • 2
  • 16
0
votes
1 answer

Access Build Config from parent project in Android

I got an Android Studio project with some subprojects. From one subproject I need to access the Build Config of the parent project for checking if a new verison is available at the Google Play Store (comparing the local version number with the one…
dju
  • 129
  • 4
  • 18
0
votes
1 answer

What is Grails Build Config Transitive = false

I've noticed that in our build config there's a transitive = false in the plugins what is the meaning of this? what's the difference when doing an excludes i.e excludes 'code-coverage', 'maven-publisher', 'codenarc'
SpongebobJunior
  • 601
  • 1
  • 9
  • 24
0
votes
2 answers

Output file C++ build VS 2010

For a C++ project in Visual Studio 2010, that I have took back recently, I don't remember why I have two locations to define the output of the build: first in project's Properties > Configuration Properties > General > Output Directory + Target…
Ginger Opariti
  • 1,282
  • 5
  • 23
  • 41
0
votes
1 answer

How to define a function at android.defaultConfig level?

In my Android project in build.gradle use the following instructions to create build config fields. android { defaultConfig { if (project.hasProperty('serverOnePath')) { buildConfigField "String", "SERVER_ONE_PATH", …
JJD
  • 50,076
  • 60
  • 203
  • 339
0
votes
1 answer

Where are default fields in BuildConfig generated by gradle defined?

By default my gradle (via Android Studio) generates BuildConfig with some fields inside: public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String PACKAGE_NAME =…
0
votes
1 answer

What happens when Grails BuildConfig scope doesn't specify organization?

In a Grails app's BuildConfig.groovy you can specify repos to find dependencies/plugins in: repositories { mavenRepo: "http://path/to/my/repo" } plugins { compile: "fizz:buzz:0.4.3" } In the above example, Grails will look for a…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

Is there a way to set a build config field for Espresso tests (or something similar)?

I'm working on automated testing in Android, and I'm trying to figure out a way to determine - in code - if it's being executed via Espresso or not. I've come across the following: ActivityManager.isRunningInTestHarness() but that doesn't work. Is…
loeschg
  • 29,961
  • 26
  • 97
  • 150
0
votes
2 answers

Groovy DataSource/BuildConfig can't find class

I know this is a really basic question but I'm stuck here and i don't know why. So this is the situation: I am trying to connect My Grails application. I put the .jar in the lib-directory and put this code in the BuildConfig.groovy: dependencies { …
olkoza
  • 715
  • 2
  • 17
  • 35