<p dir="auto">Running the following command<br>
<code class="notranslate">flutter create -akotlin --org="in.company.domain" flutter_app</code><br>
is problematic.</p>
<p dir="auto">MainActivity.kt is created with the following package<br>
package in.company.domain<br>
instead of<br>
package `in`.company.domain</p>
<p dir="auto">Which results in failed compilation</p>
<p dir="auto"><code class="notranslate">in</code> is a reserved keyword in kotlin, and thus we have to write package names like this -</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pagkage `in`.championswimmer.myapp"><pre class="notranslate"><code class="notranslate">pagkage `in`.championswimmer.myapp
</code></pre></div>
<p dir="auto">(Taking my example here, as I usually use 'in.championswimmer' as company domain.</p>
<p dir="auto">Android Studio escapes it when generating default project. Flutter does not.</p>
<p dir="auto">I believe other kotlin keywords need to be escaped similarly from the package name</p>
<p dir="auto">List of keywords to escape by language</p>
<h3 dir="auto">Kotlin</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">in</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">when</code></li>
</ul>