Questions tagged [android-buildconfig]

58 questions
2
votes
0 answers

system error! on binary upload on Samung Seller Portal

I am trying to upload an APK file on Samsung Seller Portal as an update to already existing app. I built the app using "Generate Signed Bundle/APK" option on Android Studio. I am getting "system error" after the apk file is uploaded, what are the…
Shubham
  • 3,071
  • 3
  • 29
  • 46
2
votes
1 answer

How to set buildConfigField for module from outside for android?

I am developing in Android, and I have a submodule in my project. I have set buildConfigField like the following in build.gradle of Module buildTypes { release { minifyEnabled false buildConfigField "String", "TestId", '"48"' …
Wun
  • 6,211
  • 11
  • 56
  • 101
2
votes
0 answers

Task :transformClassesAndResourcesWithR8ForRelease FAILED Program type already present *.BuildConfig

I have an Android Studio (3.4.1) cocos2d-x project with multiple modules. My settings.gradle file defines the 3 modules: include ':libcocos2dx' project(':libcocos2dx').projectDir = new File(settingsDir,…
2
votes
2 answers

BuildConfigField to decide how to define the member (enum)

build.gradle(Module): productFlavors { mytest { ... buildConfigField "boolean", "SHORT_ENUM", "false" } mysecondtest { buildConfigField "boolean", "SHORT_ENUM", "true" } In MyClass I want to define the enum…
Alon Shmiel
  • 6,753
  • 23
  • 90
  • 138
2
votes
1 answer

How to get proguard errors at android studio

I enable proguard for release and got the following error: Execution failed for task ':app:transformClassesAndResourcesWithProguardForFlavorQuaRelease'. [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Job failed, see logs for…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
2
votes
1 answer

While updating compileSdkVersion & targetSdkVersion to 26 - duplicate value for resource 'attr/fontFamily' with config

I'm updating my apps compile & target SDK version from 23 to 26 (Android 8.0). But after update, getting following error: error: duplicate value for resource 'attr/fontFamily' with config '. Having following support libraries now in…
2
votes
2 answers

Build Error: Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug

I have a gradle build error in my android application. I tried to update NDK and all modules, but it still appears. Does anybody know what can cause it and how to fix it? Below is my gradle file: Execution failed for task…
yozhik
  • 4,644
  • 14
  • 65
  • 98
2
votes
2 answers

Flutter: Android build for deployment

How can I create/prepare Android build for deployment on Appstore, using Android Studio? (I've developer account singed app and keys/credential) What are step and checklist, required to create Android deployment build for flutter project
Krunal
  • 77,632
  • 48
  • 245
  • 261
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
1 answer

productFlavors application Id

I'm trying to make two types of builds in Android Studio usung productFlavors. I need to have unique applicationId for each buld type. And here is an issue: First of all I add this code to my gradle file productFlavors { base { …
2
votes
2 answers

How to determine selected `configuration` in Android?

In Android Studio I created two configurations: How can I determine in code which configuration I selected? I know that there is buildConfigField in /app/build.gradle but the names of the buildTypes do not correspond to the configuration names, so…
Manuel
  • 14,274
  • 6
  • 57
  • 130
2
votes
1 answer

illegal escape character on BuildConfig.java, Android Studio

I Clone a project using Android studio 2.2.2 on windows, when I run the project there is an error illegal escape character on the BuildConfing.java file The original development might be used IntelliJ IDEA on linux ubutu. I did clean the project…
1
vote
0 answers

Replacement for BUILD_BROKEN_PHONY and phony-rebuild in android R

I am trying to build Android R but getting the following error in the kernel makefile: > kernel/exynos/AndroidKernel.mk:155: error: writing to readonly > directory: >…
1
vote
1 answer

How to build APK file from Flutter project?

Here I want build apk file for my flutter project. But a problem occurred when I build APK file with flutter build apk command. I already define flutter SDK path, android SDK path, JDK path in environment variable, but still this problem occurred.…
J M Bhikadiya
  • 129
  • 2
  • 14
1
vote
0 answers

Automate android multi flavour app build generation

I want to automate build generation[apk/aab] of my application which having multiple flavours assume I have at least 10 flavours. Since taking debug build or release build is time-consuming process I would like to automate or write a build script in…