1

I have fields which declared in build.gradle like:

defaultConfig {
        resValue "string", "reg_id", "111111111111"
        resValue "string", "os", "2"
    }

Then I use them in code like:

msg = "project id from "  + context.getString(R.string.reg_id) + " ... " + context.getString(R.string.os);

But in logs I getting:

project id from -558038585 ... 2

gradle:

classpath 'com.android.tools.build:gradle:1.0.0'

Should I fire issue to google or there is something which I'm not understand?

EDIT:

I fired issue, please give a star to speed up fix

ar-g
  • 3,417
  • 2
  • 28
  • 39

1 Answers1

0

This solution worked for me:

defaultConfig {
        resValue "string", "reg_id", '"1111111111111"'
        resValue "string", "os", '"2"'
    }

https://stackoverflow.com/a/29519661/4074312

Community
  • 1
  • 1
Orcun Sevsay
  • 1,310
  • 1
  • 14
  • 44