How to modify BuildConfig.java on my Android project?
<p>I'm working on an online course and i had these lines of code:</p>

<pre><code>String baseUrl = "http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&amp;mode=json&amp;units=metric&amp;cnt=7";
String apiKey = "&amp;APPID=" + BuildConfig.OPEN_WEATHER_MAP_API_KEY;
URL url = new URL(baseUrl.concat(apiKey));
</code></pre>

<p>So, the API key apparently had to be set up on the BuildConfig.java file.</p>

<p>I tried to do that, by adding this line of code to the BuildConfig.java file:</p>

<pre><code>public static final String OPEN_WEATHER_MAP_API_KEY = 111111111111111111;
</code></pre>

<p>The first issue is that the string was saved without quotation marks and wouldn't let me compile.</p>

<p>The second, and main issue is that i can't modify that file anymore. Every time i delete the line or add those missing quotation marks, and then try to compile, the line reverts to it's flawed version and compilation stops.</p>

<p>I also get this message when i try to modify BuildConfig.java : "Generated source files should not be edited. The changes will be lost when sources are generated."</p>

<p>Any help will be welcome.</p>