[Android] Runtime Environment variable exception in BuildConfig

Shashi 1 Reputation point
2021-09-29T04:22:24.527+00:00

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.

136133-screenshot-2021-09-28-at-94726-pm.png

136070-screenshot-2021-09-28-at-94653-pm.png

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
    2021-09-30T07:35:22.61+00:00

    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
    2021-09-30T07:42:31.403+00:00

    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