Google Cloud Endpoints in Android Studio: how to generate Endpoints class in a different package
<p>One of the Google examples for building a java backend on Google App Engine which is accessed through Cloud Endpoints is to be found here: <a href="https://github.com/GoogleCloudPlatform/MobileShoppingAssistant-sample" rel="nofollow">https://github.com/GoogleCloudPlatform/MobileShoppingAssistant-sample</a></p>

<p>The backend module in the sample app is organized with the following packages: </p>

<p>com.google.sample.mobileassistantbackend.models —> Includes the Entity files</p>

<p>com.google.sample.mobileassistantbackend.apis —> Contains Endpoint files that expose REST APIs</p>

<p>In Android Studio you can automatically generate the Endpoints from the Entity classes. But by default an Endpoint class is generated in the SAME package than the Entity class.</p>

<p>QUESTION:</p>

<p>How can I configure Android Studio in such a way that from a class in the "models" packages the Endpoint class is generated in the "apis" package.</p>