buildconfig Questions

1

I'm experiencing an issue with BuildConfig.VERSION_NAME in my code. When I change the version name in the build.gradle file and sync the project, the change isn't reflected in my code. Instead, the...
Guyguyana asked 2/7 at 15:6

33

I am using Gradle to build my Android application. I am trying to use some flags based on the build type (release or debug). My Gradle file looks like this: android { buildTypes { debug { buil...
Mi asked 24/3, 2014 at 8:47

13

So I started a new android application, here is my Android Studio info Android Studio 3.6.1 Build #AI-192.7142.36.36.6241897, built on February 27, 2020 Runtime version: 1.8.0_212-release-1586-b04...
Prison asked 31/3, 2020 at 2:35

22

Solved

I am trying to convert our Android application to a gradle build. I have the project and it's libraries building successfully. I am now trying to create separate apks for our various environments (...
Inseverable asked 20/12, 2013 at 15:2

39

I need to figure out how to get or make a build number for my Android application. I need the build number to display in the UI. Do I have to do something with AndroidManifest.xml?
Girth asked 6/1, 2011 at 14:43

3

Solved

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...
Cloudcapped asked 27/4, 2015 at 0:55

3

Solved

When looking at the BuildConfig class generated by Android Studio and the Gradle plugin one can see that the BuildConfig.DEBUG field is initialized using the Boolean.parseBoolean(String) call inste...
Willmert asked 27/4, 2015 at 6:56

0

I'm trying to add DeepLinkDispatch library (by airbnb) in my project in order to handle deeplinks. The project has different modules and some links needs to be handled by Activity's in this modules...

5

Solved

I would like to define a build config filed where I can use a variable defined in the gradle script it self: def someVar = 512 android { ... buildConfigField 'int', 'SOME_INT_FIELD', someVar } ...

3

Solved

I've met several proguard examples with these lines: # Keep the BuildConfig -keep class com.example.BuildConfig { *; } I've run app with and without this line (of course, with my package) and ha...
Syrup asked 25/4, 2016 at 11:46

4

Solved

This is a simple gradle with three flavors : apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.apipas.app.l...
Weixel asked 18/2, 2016 at 9:57

2

Solved

Please take a look at the following two images from Analyze APK on Android Studio. First one is with minifyEnabled = false, and another one is with minifyEnabled = true (after decoding with map...
Bavardage asked 27/5, 2019 at 1:4

7

Solved

My (gradle 1.10 and gradle plugin 0.8)-based android project consists of a big android-library that is a dependency for 3 different android-apps In my library, I would love to be able to use a str...
Bolection asked 26/1, 2014 at 16:17

2

Solved

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 ur...
Gaucho asked 16/4, 2018 at 7:36

3

Solved

is there a way in Visual Studio to use a custom Configuration like "#if DEBUG" I need a "#if OFFLINE" as my Build-Config's name is "Offline" (only for further debug-purposes too)... Thanks!
Tankersley asked 26/8, 2013 at 9:50

1

I have parts of my app that I don't want to run if we're running Android unit tests, so I want to surround them with something like if (!BuildConfig.TESTING) { // Code here that I don't want to r...
Racer asked 10/3, 2014 at 21:58

7

Solved

I am programming Android applications, and the best way here may or may not be the same as Java in general. I simply want to be able to set a debug flag that will only execute certain portions of ...
Pol asked 27/4, 2010 at 3:43

1

Solved

I am modifying current android project so it can be installed on same device for multiple flavors and build configs. build.gradle: { // ... defaultConfig { applicationId "com.myapp" manifestP...

2

Solved

I am a new developer exploring the world of Android. I am currently working through the Udacity tutorials for creating the Sunshine app. In the fragment activity class in order to get data from ope...
Roussillon asked 27/10, 2015 at 10:37

1

Our app is split into a main application and a few plugins. We're using inline plugins via the BuildConfig.groovy file. When it is time to WAR the whole thing up for production I'm getting the foll...
Abstractionism asked 23/6, 2011 at 18:15
1

© 2022 - 2024 — McMap. All rights reserved.