novoda/merlin

Manifest Unresolved Class error on Service

PamposDev opened this issue · 4 comments

Hi,
I have added in Manifest Merlin's service, but an Unresolved Class error was showed:
2018-03-23 00_14_46-quoteoftheday - c__users_jank_pamposdevproject_quoteoftheday - app - _app

I use this version of Merlin:
2018-03-23 00_16_03-quoteoftheday - c__users_jank_pamposdevproject_quoteoftheday - app - android s

Did you sync your gradle files after adding the dependency?

Have you tried without adding the entry to your manifest? In my understanding, it should not be necessary.

As @ataulm says it should not be needed to declare explicitly the service in your own AndroidManifest.xml

There is an errata in README.md because some modifications have been made for a future release but this info should not be shown yet. The proper block for version 1.1.7 should be:

<service
    android:exported="false"
    android:name="com.novoda.merlin.service.MerlinService" />

thanks

I've updated the Readme to display the correct Service block as @niltsiar mentioned.