Questions tagged [android-buildconfig]

58 questions
1
vote
0 answers

Android generated BuildConfig is in submodule package, not in app module

I created some submodules for project, which has been imported from git. And I'm getting error when I import BuildConfig for app like, com.app.BuildConfig. Only I can import is BuildConfig of one of my submodules like,com.submodule.BuildConfig. I…
1
vote
3 answers

Don't generate BuildConfig - Gradle Kotlin DSL

To disable generating BuildConfig with the Groovy DSL, one could do the following: afterEvaluate { generateReleaseBuildConfig.enabled = false generateDebugBuildConfig.enabled = false } I am trying to find the equivalent when using Gradle's…
1
vote
0 answers

Android BuildConfig String with Json

I'd like to have a JSON formatted String in the buildConfig but the build process messes the string up and I'm not sure how to fix it. This is the JSON: { "testkey1": "someValue1", "testkey2": 3, "testkey3": { "innerKey1":…
1
vote
1 answer

Android Gradle: call buildConfigield inside gradle task or method

I'm trying to add BuildConfig variable using gradle. I see that buildConfigField is valid when I call it on gradle buildTypes: release/debug and also on defaultConfig but I'm trying to create this inside gradle task. for example: task myTask{ …
Elior
  • 3,178
  • 6
  • 37
  • 67
1
vote
1 answer

how can I fix UnsupportedOperationException: Can't convert value at index 12 to dimension: type=0x3

so We recently updated our buildToolsVersion to 26.0.2 And now our code crashes in the CircularProgressButton library that we are using when trying to create a CircularProgressButton (see library I know we get what we deserve using a non supported…
Dan Anderson
  • 1,062
  • 13
  • 26
1
vote
1 answer

Confused with the android build target settings terminologies

I went through the different explanations of different terms for android settings, but still am confused for my particular case. I have a specific query for my case. Earlier I had following settings for my android library eclipse project: …
Akshay Shah
  • 1,120
  • 6
  • 13
0
votes
1 answer

Is there any chance to keep global variable in global gradle which value can be updated in App modules and utilised in lib modules

I have created multi module project in android studio. which is having 3 app modules and 5 library modules. I want a constant variable DB_VERSION_CODE in one of library module. and that value should be updated based on the current running…
shobhan
  • 1,460
  • 2
  • 14
  • 28
0
votes
1 answer

Can't set targetSdkVersion = 29

I am developing an Android application which use a native library and native library supports targetSDKVersion = 29 only. I created a new Android project has default targetSDKVersion =31, I tried to set targetSDKVersion as 29, but I got the error…
0
votes
0 answers

Android - What is the Build.MANUFACTURER name for Transsion

Transsion has two brand names infinix and techno I am trying to filter in Android using Build.MANUFACTURER devices that belong to those brand names in the following list https://developers.google.com/zero-touch/resources/manufacturer-names. I can…
BennyP
  • 1,737
  • 1
  • 18
  • 24
0
votes
0 answers

Flutter cannot find build tools

Flutter cannot find any build tools for any version given to it. I've been through this for 3 weeks and search anywhere still not find any solution. Here is the error message Here is my zshrc Here is flutter doctor results I have tried for…
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

How to set applicationid for different flavor and buildtype?

I have 2 flavors flavor1 flavor2 and 5 buildtypes dev debug uat preprod release I would like to set full applicationId to…
0
votes
1 answer

How disable dynatrace for debug builds android

I want to disable dynatrace to collect debug builds In my build.gradle (android): dynatrace { configurations { debug { enabled false } release { enabled true autoStart { …
0
votes
1 answer

Android: Are there any methods to share a resource betwwen different falvors and sourceset?

I have an application with below source sets and flavors: flavorDimensions "brand" productFlavors { flavor1 { dimension "brand" sourceSets { main { manifest.srcFile "src/main/flavor1/AndroidManifest.xml" …
VSB
  • 9,825
  • 16
  • 72
  • 145
0
votes
1 answer

D8: Program type already present: androidx.renderscript.Allocation$1

I have a react-native application, using RN 0.62.2, that is working properly. When trying to use hermes instead of JSC, I am getting the following error during build: D8: Program type already present:…
Yossi
  • 5,577
  • 7
  • 41
  • 76