2

I need to add an activity tag for an external library I'm using, per their documentation, but when I do that using this code

<activity
            android:name="com.adityaanand.morphdialog.MorphDialogActivity"
            android:theme="@style/MorphDialog.Custom.Light">
</activity>

in my application tag, I get the error

Unable to find explicit activity class {com.jggdevelopment.simpleweather/in.adityaanand.morphdialog.MorphDialogActivity}; have you declared this activity in your AndroidManifest.xml?

How can I include an external library's activity in my manifest file?

This is the library.

Cameron
  • 1,281
  • 1
  • 19
  • 40
  • 3
    Your error says `in.adityaanand.morphdialog.MorphDialogActivity` - that doesn't match the `com.` start of the class. Where is the `in.` prefix coming from? – ianhanniballake Jul 12 '19 at 04:39
  • Not a clue, I thought the same thing. I'm just implementing it in my apps gradle file like any other library. Where should I be looking for that package? – Cameron Jul 12 '19 at 14:53
  • When I go to Packages view, under Libraries, it is listed as `in.adityaanand.morphdialog` – Cameron Jul 12 '19 at 15:55

1 Answers1

0

All I had to do was change the activity name to in.adityaanand.morphdialog.MorphDialogActivity and it worked. I thought I had tried that already, but I guess not.

Cameron
  • 1,281
  • 1
  • 19
  • 40
  • Can you take a look at this https://stackoverflow.com/questions/62792660/exporting-cocos2d-android-application-as-aar-and-calling-its-activity-from-anoth I have the same issue but a little weird. Please help – Kuldeep Bhimte Jul 09 '20 at 04:02