How to use Android Service from other project?
<p>I want to use an external project that is implemented as Android service. The service is used by adding it to the manifest:</p>

<pre><code>&lt;service android:name="com.my.ext.service"/&gt;
</code></pre>

<p>But when I addthis line, I get the error:</p>

<pre><code>Unresolved class 'TimerService' less... (⌘F1)
Validates resource references inside Android XML files.
</code></pre>

<p>And when I add the layout in my project:</p>

<pre><code>&lt;com.my.ext.service
    android:id="@+id/myview"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/&gt;
</code></pre>

<p>I get the error that </p>

<pre><code>the class could not be found
</code></pre>

<p>I have imported the external service as an extra project into my Android Studio. How can I use the other project as a service for this project?</p>