Android: Firebase remoteConfig getString() method is removing quotes from string inside default.xml

后端 未结 4 2045
萌比男神i
萌比男神i 2021-02-19 04:56

i have the following remote config_default.xml file



       
         


        
4条回答
  •  天命终不由人
    2021-02-19 05:16

    There are multiple solutions for this problem

    1. Use firebaseConfig.setDefaults(Map); for setting up the default configuration.

    2. Use backslash (\) before Double Quotes(") in your String in .xml file.

    3. Replace classpath 'com.android.tools.build:gradle:3.0.1' with

    *classpath 'com.android.tools.build:gradle:2.3.3'* 
    
    and Relpace google() with
    maven { url 'https://maven.google.com' }
    

    4. Add android.enableAapt2 = false in gradle.properties

提交回复
热议问题