[Android] Runtime Environment variable exception in BuildConfig

Shashi 1 Reputation point

I created Custom Variables which are required for runtime build variables in Gradle, PFA image for Environment variables.

Issue : When the build runs the variables are picked as expected but BuildConfig variables are throwing the error with the syntax is incorrect after assigning runtime variable in BuildConfig. However this is running fine with local build.



Am I missing anything here ?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,555 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Shashi 1 Reputation point

    Hello Jarvan Zang,

    Thanks for the response, app is Native and written in Kotlin. Not sure how is it related to Xamarin ?

    0 comments No comments

  2. Shashi 1 Reputation point

    As far as I understand the generated BuildConfig variables should be assigned with as String type (quotes " "). It seems they are not in this case, the local builds are working as expected. 136549-screenshot-2021-09-30-at-10927-pm.png

    0 comments No comments