Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manifest merger failed / ActivityNotFoundException on CameraActivity #55

Open
joknu1 opened this issue Sep 30, 2016 · 6 comments
Open

Comments

@joknu1
Copy link

joknu1 commented Sep 30, 2016

Hi,

I get

Error:Execution failed for task ':hospitalitix:processDebugManifest'.
Manifest merger failed : Attribute application@theme value=(@style/AppBaseTheme) from AndroidManifest.xml:17:9-44
is also present at [com.github.boxme:squarecamera:1.1.0] AndroidManifest.xml:11:18-76 value=(@style/squarecamera__CameraFullScreenTheme).
Suggestion: add 'tools:replace="android:theme"' to element at AndroidManifest.xml:14:5-33:19 to override.

when trying to use your lib. If I override as suggested I get

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.assaabloyhospitality.hospitalitix/com.desmond.squarecamera.CameraActivity}; have you declared this activity in your AndroidManifest.xml?

when trying to start your activity via Intent. Not sure the problems are related though.

Is there a reason you have a theme set on application level? Since you only have one Activity, and it has a theme set, the application level theme is never used.

Br.
Jonas

@opg7371
Copy link

opg7371 commented Oct 6, 2016

I got the same problem...please provide us a solution for it

@bmbariah
Copy link

"android.content.ActivityNotFoundException: Unable to find explicit activity class {com.assaabloyhospitality.hospitalitix/com.desmond.squarecamera.CameraActivity}; have you declared this activity in your AndroidManifest.xml?"

Have you tried declaring it in your manifest file? Seems pretty basic..As for the first error, you may have conflicting themes. Try updating your project to the latest build tools 25 e.t.c

@joknu1
Copy link
Author

joknu1 commented Nov 21, 2016

"Seems pretty basic.."
Okay, I guess I can declare your activity in my Manifest. One could argue that you could declare your own activity in your own Manifest in your own module. Seems pretty basic.. :)

As for the theme squarecamera__CameraFullScreenTheme declared on application level, it seems pointless.

Thank you for your reply.

@bmbariah
Copy link

bmbariah commented Nov 21, 2016

Actually I had this issue sometime back and took me a while to remember how I solved this but as the log says all you need to do is add "tools:replace="android:theme" to your MAIN PROJECT level manifest file..under application...and it's not my module :). Just removed this line in my code and got the same error. This assumes you are using the module and not the .jar

@finalight
Copy link

may I know is it resolved?

@SoyArpad
Copy link

@finalight just in your AndroidManifest file add
tools:replace="android:theme"
in the application tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants