String type build config fields should be declared like this:
buildConfigField "String", "SERVER_URL", "\"http://dev.myserver.com\""
the field name in quotes, the field value in escaped quotes additionally.
More Related Contents:
- Android Studio: Add jar as library?
- Failed to resolve: com.android.support:cardview-v7:26.0.0 android
- Automatically accept all SDK licences
- java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex
- How to configure gradle to work “offline” (using cached dependencies)
- Error:Execution failed for task ‘:android:transformClassesAndResourcesWithProguardForRelease’
- Tools: replace not replacing in Android manifest
- Is there any way to integrate Eclipse with Gradle in Android project?
- Duplicate files copied (Android Studio 0.4.0) [duplicate]
- Android Studio – Failed to apply plugin [id ‘com.android.application’]
- File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020016 [duplicate]
- Error:Execution failed for task ‘:app:transformResourcesWithMergeJavaResForDebug’
- Build errors after Android Studio 3.2.1 upgrade
- How to set different applicationId for each flavor combination using flavorDimensions?
- no cached version available for offline mode
- Gradle Duplicate Entry: java.util.zip.ZipException
- Add pre-built .so files in project using Android Gradle plugin 0.7.3
- How to include a library module dependency in an Android Studio project?
- Unable to get dependencies from jcenter with a new project [closed]
- commons-logging defines classes that conflict with classes now provided by Android after Android Studio Update
- Error:(26, 0) Gradle DSL method not found: ‘runProguard()’
- Android Studio: how to generate signed APK using Gradle?
- Build flavors for different version of same class
- Where is a “Sync project with gradle files” button in Android Studio 3?
- How to use a library project in android studio
- Use an aar library cause missing dependencies using api in Gradle 4.x
- how to build an APK and separate libraries that the app loads dynamically
- Using com.bea.xml.stream package on android
- Can an AAR include transitive dependencies? [duplicate]
- Class file for com.google.android.gms.internal.zzaja not found